[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How to run same test suite multiple times using watir

Vishwanath Uppala

11/19/2007 9:12:00 AM

Hi Friends,

I am using watir for testing our websites.
I have a test suite to run multiple times.

I'm using the following code to iterate test suite

require 'watir'
require 'test/unit/ui/console/testrunner'
include Test::Unit::UI::Console
require 'watir/MessageBox'
require 'watir/Sharekhan'

testcases = [TC_Sharekhan]

while 1 do

testcases.each {|testcase| TestRunner.run(testcase)}
end



This would run fine for first time then it gives out an error
Can u Please help me guys

thanks
vishwanath
--
Posted via http://www.ruby-....