Forum Discussion
Buschfunk
13 years agoFrequent Contributor
Henrik,
Thanks for the link. However I'm afraid that this won't work for my case. Here's some more information.
Initial situation
There are two test suites: TS_A, TS_B. Each of them contains around 20 test cases. Usually we don't execute complete test suites or even the complete project but single test cases as there is some manual work to do between executing the tests. After having executed all necessary test cases I want to manually start a Groovy script "getTestCaseResults" which collects all the results of each single test case. I don't want to get the results of all the test steps, just the test case result "FINISHED" or "FAILED". It is ok that test cases may appear which have not been run and thus don't have a result.
Given this information I cannot use a teardown script of a test case or a test suite. What I basically need is:
Iterating was achieved by using a code snippet like that:
However I cannot find a method which can be applied for getting the result.
Sincerely,
Robert
Thanks for the link. However I'm afraid that this won't work for my case. Here's some more information.
Initial situation
There are two test suites: TS_A, TS_B. Each of them contains around 20 test cases. Usually we don't execute complete test suites or even the complete project but single test cases as there is some manual work to do between executing the tests. After having executed all necessary test cases I want to manually start a Groovy script "getTestCaseResults" which collects all the results of each single test case. I don't want to get the results of all the test steps, just the test case result "FINISHED" or "FAILED". It is ok that test cases may appear which have not been run and thus don't have a result.
Given this information I cannot use a teardown script of a test case or a test suite. What I basically need is:
- Iterate over all test cases (I already have that)
- Get the test result of each test case
Iterating was achieved by using a code snippet like that:
testRunner.testCase.testSuite.project.getTestSuiteList().each {
it.getTestCaseList().each {
// Need something like:
// it.getResult()
}
}
However I cannot find a method which can be applied for getting the result.
Sincerely,
Robert
Related Content
- 9 years ago
- 4 years ago
Recent Discussions
- 6 days ago
- 10 days ago