Forum Discussion
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.
- kendemoor7 years agoOccasional Contributor
Thanks,
That is an interesting workaround and I could see how it could work, but for my specific use case it has some issues since I already disable/enable some testcases based on other factors.
I know the functionality to filter a test run specifically based on tags already exists, since it's available when I use it on a testsuite. I'd like to find a way to specifically use this functionality on a higher level when combining test suites in a regression, without enable/disable overwrites.
Screenshot of the functionality for clarity.- TanyaYatskovska7 years agoSmartBear Alumni (Retired)
Hi kendemoor,
At the moment, there is no way to run all TestCases with a specific tag from different Test Suites at once. I suggest that you submit a feature request here. Other community members will be able to vote for this request, and this will increase its rating.
Meantime, you can try using the suggestion given by ashu248 - it sounds reasonable.
Related Content
- 12 years ago
Recent Discussions
- 10 hours ago