Ask a Question

Groovy script to list all TestSuites

SOLVED
mrdwprice
Contributor

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!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
HimanshuTayal
Community Hero

Re: Groovy script to list all TestSuites

@mrdwprice :

 

You can take help from below code:

 

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

Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓



Thanks and Regards,
Himanshu Tayal

View solution in original post

2 REPLIES 2
HimanshuTayal
Community Hero

Re: Groovy script to list all TestSuites

@mrdwprice :

 

You can take help from below code:

 

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

Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓



Thanks and Regards,
Himanshu Tayal

View solution in original post

mrdwprice
Contributor

Re: Groovy script to list all TestSuites

Thanks very much!

 

I used this in the end within SetUp script

 

def testSuiteList = runner.project.getTestSuiteList()
testSuiteList.each{
log.info it.name
}

cancel
Showing results for 
Search instead for 
Did you mean: