Menu

#22 RACE condition with 2+ TestRunners

open
nobody
None
5
2008-11-13
2008-11-13
Jens Engel
No

VERSION: Fitnesse 2008-08-12

A RACE condition exists when 2 or more TestRunners use the same Fitnesse server while running tests on different "TestBeds".
A "TestBed" provides the TEST_RUNNER variable and testbed-specific setup,
for example a set of testbed-specific constants that are defined via included page w/ variable definitions.

The syndrome occurs when a test page includes another page (as reuse),
which uses expanded variables that are inherited.
In this case, the variable values of another Testbed (used by second TestRunner) are provided for TestBed1.

A detailled problem description is attached.
I also have a Fitnesse project to show the problem.
Due to attachment size constraints, I may not be able to add it to this trouble ticket.
Contact me via Email if you need it.

NOTES:
I use a special "RepeatedTestRunner" that repeats a sequence of Fitnesse test pages.
Therefore, it easier to run into such a problem.
A normal TestRunner will normally not show this problem, only when you meet the timing constraints.

Discussion

  • Jens Engel

    Jens Engel - 2008-11-13

    Detailled problem description w/ screenshots

     
  • Jens Engel

    Jens Engel - 2008-11-13

    Fitnesse project without fitnesse.jar (due to attachment size constraints)

     
  • Jens Engel

    Jens Engel - 2008-11-13

    TestResults of a sample testrun with Testbeds Alice and Bob.

     
  • Jens Engel

    Jens Engel - 2008-11-29

    I verified that the problem still exists in the newest fitnesse release 2008-11-15.

     

Log in to post a comment.

MongoDB Logo MongoDB