Forum Discussion

mrdwprice's avatar
mrdwprice
Contributor
4 years ago
Solved

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
    4 years ago

    mrdwprice :

     

    You can take help from below code:

     

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