1
我需要在gebish測試中使用循環。 例gebish測試循環
def "refresh page with interval one min"() {
for (int i = 0; i < 30; i++) {
when:
sleep 1000
then:
println "=^_^="
}
}
可惜我沒有什麼
我需要在gebish測試中使用循環。 例gebish測試循環
def "refresh page with interval one min"() {
for (int i = 0; i < 30; i++) {
when:
sleep 1000
then:
println "=^_^="
}
}
可惜我沒有什麼
你的循環應該去斯波克塊內,
when:
30.times{
to MyPage
sleep 1000
}
謝謝!非常! – plsgogame