Forum Discussion

mrdwprice's avatar
mrdwprice
Contributor
5 years ago

Groovy script to list all TestSuites

Please could someone help me with a Groovy script that can list all TestSuite names contained within a Project.   Thanks!    
  • HimanshuTayal's avatar
    5 years ago

    mrdwprice :

     

    You can take help from below code:

     

    testSuiteList = testRunner.testCase.testSuite.project.getTestSuiteList()
    testSuiteList.each{
    	log.info it.name
    }