# Implementing concurrent Test Cases in Ruby and Watir

**URL:** <https://www.ruby-forum.com/t/implementing-concurrent-test-cases-in-ruby-and-watir/79540>\
**Category:** Ruby\
**Created:** [March 10, 2006, 5:30pm UTC](https://www.ruby-forum.com/t/implementing-concurrent-test-cases-in-ruby-and-watir/79540 "2006-03-10T17:30:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalensr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@kalensr](https://www.ruby-forum.com/u/kalensr)\
**Post date:** [March 10, 2006, 5:30pm UTC](https://www.ruby-forum.com/t/implementing-concurrent-test-cases-in-ruby-and-watir/79540/1 "2006-03-10T17:30:18Z")

</div>

Can anyone point me to an example of executing a test case in multiple  
threads concurrently?

There are 10 instances of the application under tests running on 4  
different boxes.

I am attempting to build a release night test that will use the url and  
verify what instance of the web app we have accessed (by checking a  
developer inserted tag in the source). If the instance of the app has  
not been encountered a series of tests will be executed, other wise the  
script will log off, close the browser, launch a new browser and try  
again.

I would like this process to run from multiple threads concurrently in  
hopes of hitting all app servers quicker.

This test has been simulated manually, but I am not sure how to  
implement in Ruby and Watir.

Any suggestions would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![kalensr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@kalensr](https://www.ruby-forum.com/u/kalensr)\
**Post date:** [March 13, 2006, 6:05am UTC](https://www.ruby-forum.com/t/implementing-concurrent-test-cases-in-ruby-and-watir/79540/2 "2006-03-13T06:05:58Z")

</div>

Look at SW Explorer Automation  
([http://home.comcast.net/~furmana/SWIEAutomation.htm](http://home.comcast.net/~furmana/SWIEAutomation.htm)). The program  
creates automation API for any Web application based on HTML and DHTML  
The API is used to visually record the test scripts.

The number of test instances is limited only by Windows limitation on  
number of IE instances.

---

<div class="post-metadata">

**Author:** ![kalensr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@kalensr](https://www.ruby-forum.com/u/kalensr)\
**Post date:** [March 14, 2006, 8:54pm UTC](https://www.ruby-forum.com/t/implementing-concurrent-test-cases-in-ruby-and-watir/79540/3 "2006-03-14T20:54:13Z")

</div>

Thanks Alex!

I will take a look at this when I get some down time.

Kalen
