【发布时间】:2013-06-07 08:47:53
【问题描述】:
我正在使用 Grails 2.2.1 和最新的 Geb 版本。我的 Spec 测试文件位于 功能/com.geb.mytest/
我的 GebConfig 与我的 Specs 在同一个包中..
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.firefox.FirefoxProfile
driver = {
FirefoxProfile firefoxProfile = new FirefoxProfile()
new FirefoxDriver(firefoxProfile)
}
reportsDir = "target/test-reports"
baseUrl = 'http://myserver.com'
waiting {
timeout = 5
retryInterval = 0.5
presets {
slow {
timeout = 20
retryInterval = 1
}
quick {
timeout = 1.5
retryInterval = 0.3
}
}
}
environments {
}
当我运行 grails test-app -functional 时,我的 baseUrl 没有被考虑在内......相反,我有一个 localhost url..
有没有办法避免将 baseUrl 作为参数放在 grails test-app 命令中?
有什么想法吗? 提前致谢
【问题讨论】:
-
试试 browser.config.baseUrl =