Forum Discussion
PrakashKannan
Contributor
It is from Setup Script
groovyguy
7 years agoCommunity Hero
Try this:
testSuite.project.getTestSuiteList().each { def tcList=it.getTestCaseList() tcList.each { log.info(it.getName()); if(it.getName().contains("B")) { it.disabled=true; } } }
- PrakashKannan7 years agoContributor
It says 'No such property:testSuite for the class' and for your information I am running set up script at project level.
- PrakashKannan7 years agoContributor
Modified the script and worked. Thank you so much.
project.getTestSuiteList().each{
def testCaseList=it.getTestCaseList()
testCaseList.each{
if(it.getName().contains("_xsi"))
{
it.disabled=true
}
}
}- groovyguy7 years agoCommunity Hero
I am glad you got it working! I assumed it was at the test suite level which was bad on my part.
Related Content
- 3 years ago
- 5 years ago
- 4 years ago
Recent Discussions
- 9 hours ago
- 5 days ago