Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.0-beta-3
-
Fix Version/s: 1.0-beta-3
-
Labels:None
-
Environment:WinXP SP2 with jdk 1.4.2-10
Dell Latitude D600 using Intel M processor with 1gb of ram
-
Testcase included:yes
Description
The SystemTestCase class uses the passed TestResult to determine if the current system test case was successful or not.
It does not take into account that the SystemTestCase can be part of a set of tests for a given run. It is possible that a previous test generated a failure. This will cause the runTest performRun and performAssertValid methods not be to be called.
The suggested fix is that we use a boolean attribute that is set whenever the system test fails. This can be done by using a TestListener. This listener is added before the test is started and is remove when the test was completed. The boolean attribute is then used to determine if the performRun and performAssertValid is called or not.
Attached a suggested fix and a test case that was added to the SystemTestCaseTest test.
The previous attachment included some print statements that should not have been their. I have attached an updated version that do not include the print statements.