Forum Discussion
nmrao
8 years agoChampion Level 2
Is every test case independent in your case? Does the test cases share any data?
Kotaibaw
8 years agoOccasional Contributor
yes its independence , we have process which run all testCases and late publishing the report which TC failed and which passed.
sometimes TC which failed on second rerun its passed, so we want in case first failed to rerun the test Case again only once to retry.
can someone suggest how to do it in soapui?
- nmrao8 years agoChampion Level 2Ok, then it is possible, need to write code to find out all the failed cases automatically and run only those cases.
Can you specify how do you run your test cases? Using command line testrunner? or something else?- Kotaibaw8 years agoOccasional Contributor
yes using testrunner
- Kotaibaw8 years agoOccasional Contributor
what i did for now, as a WA added 1 step in the TestSuite which contain Grovvy Script
i need the follwing:
1) how to check if testCase is failed below code
2) if its failed how to run it again using below code
def testCaseList = testRunner.testCase.testSuite.getTestCaseList()
for ( testCase in testCaseList )
{
?? check if testCase is failed and then run it
}
Related Content
- 4 years ago
Recent Discussions
- 16 hours ago
- 12 days ago
- 13 days ago