【发布时间】:2013-03-11 00:53:42
【问题描述】:
我正在使用 selenium webdriver maven 设置。
所以如果我在代码中使用driver.close(),我会收到如下错误,为什么有人可以帮助解决这个问题。
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project MavenSelenium: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\D23450277\workspace\MavenSelenium\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
谢谢。
【问题讨论】:
-
日志中有什么内容?
-
您好,感谢您的回复。 ...日志与上面提到的相同。现在它工作正常..解决方案:从 excel 表中我得到空数据,这就是错误出现的原因。我保留了 if 条件 if(Stackcode!=null) driverclose() 那么它工作正常..
-
可能在 driver.close 之后,您希望驱动程序启动并运行。但我真的在猜测。我需要知道您尝试了什么、发生了什么、何时失败以及代码在失败时的样子...
-
嗨 Pavel,感谢您的回复。您能否发送您的 Skype id 以便分享 Selenium 经验。
标签: selenium maven-2 selenium-webdriver maven-surefire-plugin