我写了一个非常简单的测试自动化脚本,它只是执行了很好的日子。 今天我重新启动了相同的测试脚本而没有任何修改,它收到如下错误:
Caught: geb.driver.DriverCreationException: failed to create driver from callback 'script146839...
我的代码如下:
Browser.drive {
to TopPage
report "HomePage"
loginButton.click()
report "LoginButtonClicked"
at LoginPage
report "AtLoginPage"
username.value("mymail")
password.value("mypass")
signin.click()
at TopPage
report "AtHomePage"
myPage.click()
waitFor{at MyPage}
report "AtMyPage"
logout.click()
waitFor{at BackToTopPage}
report "AtAfterLogoutPage"
goBackToTopPage.click()
}
配置文件如下:
import org.openqa.selenium.firefox.FirefoxDriver
driver = { new FirefoxDriver() }
baseUrl = "http://www.xxx.co.jp"
reportsDir = "target/geb-reports"
waiting {
timeout = 20
retryInterval = 1.0
includeCauseInMessage = true
}
atCheckWaiting = true
baseNavigatorWaiting = true
encoding = 'SJIS'
我无法想象突然发生了什么?