Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在 gebish 测试中使用循环。例子
def "refresh page with interval one min"() { for (int i = 0; i < 30; i++) { when: sleep 1000 then: println "=^_^=" } }
但我什么都没有
Your loop should go inside the spock blocks,
when: 30.times{ to MyPage sleep 1000 }