Forum Discussion

krogold's avatar
Regular Contributor
7 years ago

testRunner results not coherent


I encounter a problem with testRunner results.

I have a testCase with 15 steps, in the teardown script I list the result for each testStep with the following code:


for (testStep in testRunner.getResults()){ "step " + testStep.getTestStep().getName() + " : " + testStep.getStatus()

As a result I get information for the five last steps only. If I monitor testRunner.getResultCount() I get 47 testRunner.getResultCount() "nb steps : " + testRunner.getTestCase().getTestStepCount()

if I monitor the number of steps in the testCase, I get 15


This snippet used to work properly for some other testCases.


Any idea ?  :(

No RepliesBe the first to reply