早些时候我遇到了运行问题,并且intellij抛出了这个错误.Would you like to enable classpath file mode for all run configurations of your project?我点击了启用.这没有解决我的问题,但现在我似乎无法从intellij运行任何东西.设置中的此选项在哪里,以便我可以禁用它?
我希望能够在运行一些自动化测试时记录spock功能名称和子句标签.当使用无头浏览器进行自动化时,这有助于调试测试问题,特别是幻像.原因是,phantomjs的行为并不总是与使用chrome WebDriver时的行为相同.如果这是可能的话,那也很好.
def "Login logout test"(){
given: "Go to login page"
...
when: "Submit username and password"
...
then: "Dashboard page displayed"
...
when: "logout"
...
then: "Returned to login page"
...
}
Run Code Online (Sandbox Code Playgroud)
例如,如果我可以使用上面的示例spock功能方法来记录这样的标签,那将会很酷.
Login logout test
Go to login page
Submit username and password
logout
Returned to login page
Run Code Online (Sandbox Code Playgroud)