Solved
Forum Discussion
9 Replies
Sort By
- groovyguyChampion Level 1
I took your script and cleaned it up a bit. I had to adjust it to use the context variable, and you have to test the name of the test case object and not the object itself. Otherwise you were close.
context.testCase.testSuite.project.getTestSuiteList().each { def tcList=it.getTestCaseList() tcList.each { log.info(it.getName()); if(it.getName().contains("B")) { it.disabled=true; } } }
- PrakashKannanContributor
Thanks but when I run it says 'can not get property 'testSuite' on null object.
- groovyguyChampion Level 1
Where are you running the script from?