I have a test script created and I have a scenario where I have to run it for 3000 time. Can any one please write me a code to do this.
My Test Script Name is ‘reg.rb’
and the test case name inside that file to un is ‘test_case1 = @html.newTestName(‘TC1 – Registration through Net’)’
“Ruby -e X” is a quick and dirty way to execute an entire file X amount of times, but for just the lines you need X.times do is the proper Ruby way.