1
我有一个webdriver的测试情况如下用Ruby写的,我想,使其运行例如100倍:webdriver的在Ruby中,如何运行测试用例x次
require 'rubygems'
require 'selenium-webdriver'
$i = 0
$num = 100
while $i<$num do
driver = Selenium::WebDriver.for :firefox
driver.get "https://dev08-olb.nz.thenational.com/ib4b/app/login"
# some other test which require $i to be incremental as unique ID
driver.close
i++
end
它确实喜欢它。
你能告诉我如何执行它尽可能多的时间吗?
谢谢。
你说哪个代码块多次运行?你有什么尝试?你期望什么行为,你取得了什么? – Seanny123