How to get the name of the TestSuite where the executable TestCase

/

1 Like

also i need to get the name of the current Testsuite collection

use Listner

class TestStatus {

/**

* Executes after every test suite ends.

* @param testSuiteContext: related information of the executed test suite.

*/

@AfterTestSuite

def sampleAfterTestSuite(TestSuiteContext testSuiteContext) {

KeywordLogger log = new KeywordLogger()

def testSuiteId = testSuiteContext.getTestSuiteId()

def testStatus = testSuiteContext.getStatus()

log.logInfo(testSuiteId)

log.logInfo(testStatus)

}

1 Like