There is a race condition in my Drupal module, that can be reproduced like this:

  1. User A loads a form
  2. User B loads a form
  3. User B submits their form
  4. User A submits their form

Things go wrong at step 4. I would like to write a failing test for this before I fix the race condition. Is it possible to do this with Simpletest?

As far as I can see, Simpletest only simulates one browser. I would like to simulate multiple browsers, and manually specify how the actions performed on them are interleaved. If this isn't possible with Simpletest, what other testing frameworks can do this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.