The first run correctly reports that it failed. This happens because the output produced does not match the (empty) Output.xml file, and the file’s null content is replaced with the output of the first run.
Test results are shown in the JUnit test results window, which opens automatically when you run a test case.
If you run the test again without changing the input, second and subsequent runs report success, since the output matches the contents of Output.xml.
If you change the value in the Input.xml and re-run the test, then:
If the feature-status property is set to progress, then the test indicates success even though a mismatch occurred.
If the feature-status property is set to done, then the test indicates failure.
If you right-click the test case node and click Diff in the pop-up menu, the window displays the difference between the latest output and the contents of Output.xml.