Loops gebish循环试验
我需要在gebish测试中使用循环。 范例Loops gebish循环试验,loops,groovy,geb,Loops,Groovy,Geb,我需要在gebish测试中使用循环。 范例 def“每隔一分钟刷新页面”(){ 对于(int i=0;i
def“每隔一分钟刷新页面”(){
对于(int i=0;i<30;i++){
什么时候:
睡1000
然后:
println“=^u^=”
}
}
但我什么都没有你的循环应该进入斯波克区
when:
30.times{
to MyPage
sleep 1000
}
你的循环应该进入斯波克区
when:
30.times{
to MyPage
sleep 1000
}