Forum Discussion
depeche
15 years agoContributor
Hi sabereshcp,
You can make use of the following method to achieve so:
def testSuite = testRunner.testCase.testSuite.project.testSuites['Your_TestSuite_Name'];
for(int i=0; i
// isDisabled() mehod returns boolean value (i.e true or false)
if(!testSuite.getTestCaseAt(i).isDisabled())
{
// Lists out the name of enabled testcases
log.info testSuite.getTestCaseAt(i).getName();
}
}
Hope this might help you!
regards,
depeche
You can make use of the following method to achieve so:
def testSuite = testRunner.testCase.testSuite.project.testSuites['Your_TestSuite_Name'];
for(int i=0; i
// isDisabled() mehod returns boolean value (i.e true or false)
if(!testSuite.getTestCaseAt(i).isDisabled())
{
// Lists out the name of enabled testcases
log.info testSuite.getTestCaseAt(i).getName();
}
}
Hope this might help you!
regards,
depeche
- These replies have been moved.
Related Content
- 3 years ago
Recent Discussions
- 15 years ago