unclebob / fitnesse

FitNesse -- The Acceptance Test Wiki
fitnesse.org
Other
2.05k stars 715 forks source link

Fitnesse result.xml contains results from wrong testcase #1122

Open Semard opened 6 years ago

Semard commented 6 years ago

Hi,

When running a suite in Jenkins, Fitnesse sometimes partially jumbles the test results from 2 test cases. The testcases are called BearingCommand and BearingTermination, where BearingCommand is run right before BearingTermination. In the Fitnesse_Result.xml file we can see that the result is partially logged ok, but that the “content” information is from the previous test case. Later on when the Fitnesse Jenkins plugin tries to decode the information, the information presented under details is wrong.

We have found that the result is corrupt even "before" the Jenkins plugin.

Below is the actual part of the Fitnesse_Result.xml file where the correct test case names are circled in blue and the wrong test case name is circled in red.

Best regards, Semard

jumbledresultfile

amolenaar commented 6 years ago

Hi, Your issue raises some questions. From what you show it's hard to digure out what's happening.

Is it possible to trim it down to test case to something you can share?

Semard commented 6 years ago

Hi, First of all, it only happens very rarely. So I doubt that sending you the two testcases would help. As you can see in the added Picture of a part of the file, result.xml, the very last line says BearingCommand even though 13 lines higher up it says BearingTermination, which is the name of the second testcase. After this last line the results from the first testcase, BearingCommand, come, instead of the correct results from BearingTermination.

As I said in the beginning, this only happens about every tenth time I run the suite.

Is there anything in particular you would like to see? i.e. If the testcases are very simular? A bigger part of the result.xml file?

Please tell me more specifically what information you need!