Forum Discussion
5 Replies
Sort By
- depecheContributorYou can use the following piece of code:
def testSuite = testRunner.testCase.testSuite.project.testSuites['Your_TestSuite_Name'];
for(int i=0; i
log.info testSuite.getTestCaseAt(i).getName();
}
Hope this might help you!
regards,
depeche - depecheContributorHi 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- These replies have been moved.
- AnandKiranFrequent ContributorHey depeche,
That worked!!! Thanks alot
Regards
Anand - sabereshcpContributorHi depeche,
Is it possible to fetch the names of the testcases which are enabled(Which are getting executed) in a testsuite...
Thanks in Advance,
Saberesh C P
Related Content
- 3 years ago
Recent Discussions
- 11 days ago