Forum Discussion

srinivas_das_l's avatar
srinivas_das_l
Contributor
16 years ago

Interface name?????

Hi all,

How to get the interface name of any project using groovy script???

Regards
Srinivas

2 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Srinivas,

    depends on your context, but if you are in a groovy script teststep you can use

    def project = testRunner.testCase.testSuite.project
    log.info "Interfaces in project " + project.name
    for( iface in project.interfaceList )
    {
        log.info "Interface: " + iface.name
    }

    regards!

    /Ole
    eviware.com
    /Ole
    eviware.com
  • Thanks a lot

    One more query ??

    How to add testStep from testSuite teardown script using groovy???