Forum Discussion
ashu248
6 years agoContributor
as per my assumption you have to run bulk of testcases in testSuites those are tagged as "Known Defect"
if this is your scenario then by following below step you can achive the result:-
1) define a new custom property as 'key and the value as Known Defect'\
2) put setup script on testSuite level as below it will disable the remaining testcases :-
runner.testSuite.getTestCaseList().each{tc->
if(tc.getPropertyValue("key").equalsIgnoreCase("Known Defect"))
{
log.info tc.name
}else{
log.info "disabling "+tc.name
tc.disabled=true
}
}
3) run the testsuite it will only run the testcases which are property key defined as Known Defect
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.
Related Content
- 11 years agomike_lyons
Recent Discussions
- 4 days agominhng