Forum Discussion
PrakashKannan
Contributor
Thanks but when I run it says 'can not get property 'testSuite' on null object.
groovyguy
7 years agoCommunity Hero
Where are you running the script from?
- PrakashKannan7 years agoContributor
It is from Setup Script
- groovyguy7 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.
Related Content
- 3 years ago
- 5 years ago
Recent Discussions
- 14 days ago
- 22 days ago