Search code examples
ruby-on-railscucumberintegration-testingwebrat

How to create integration level test for two user interaction?


How would you test multi user interaction with Cucumber/webrat?

Meaning that there must be more than one user logged in. Good example would be simple chat application, where I want to send message from one user to another and check if the other user received the message.

I'd like to test at integration level, without any stubbing or mocking.


Solution

  • I'd use Selenium RC with two separate instances controlling separate browsers. I imagine there may be other tools out there for web-based integration tests that are as useful as Selenium or even more, but, personally, I have never met one yet.