http://itest2.com/articles/2009/11/03/data-driven-testing-in-itest/
You can put sleep and reload in the loop, like below
excel_sheet = Spreadsheet.open("C:\\user.xls").worksheet(0) # 1st
sheet
excel_sheet.each_with_index do |row, idx|
next if idx == 0 # ignore first row
username = row[1] # read username from second column
enter_text("userName", username) # enter username in your
application
sleep 10*60 # wait 10 minutes
refresh
# your assertion here ...
end
On Nov 3, 4:38 am, Soori <[email protected]> wrote:
> All,
>
> I would like to fetch the record from excel through watir in a regular
> interval of time. For example i have 400 user names which needs to be
> entered on a web application one by one. My web-app will stop
> responding after a certain time period/certain records. we need to
> close the script or wait for 10 mins then refresh the page and should
> continue loading the user name from the stopped location.
>
> Please help me in this front.
>
> thanks in advance,
> Soori
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---