51Testing软件测试论坛

标题: selenium连续执行用例的时候报session id is null错误 [打印本页]

作者: wuxi88    时间: 2016-3-23 14:45
标题: selenium连续执行用例的时候报session id is null错误
有多个测试脚本,连续跑下去的过程中,时不时的就会出现如下错误,请问下该如何解决呢?
org.openqa.selenium.remote.SessionNotFoundException: Session ID is null. Using WebDriver after calling quit()?Build info: version: '2.43.1', revision: '5163bce', time: '2014-09-10 16:27:58'System info: host: 'Windows2012R2', ip: '10.10.126.158', os.name: 'Windows Server 2012 R2', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_25'Driver info: driver.version: RemoteWebDriver        at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)        at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:66)        at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:572)        at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:304)        at envchange.NormalAndTestEnvPub.isTestEnvAct(Unknown Source)        at listmanagement.ImportUser.importUser(Unknown Source)... Removed 23 stack frames

作者: seagull1985    时间: 2016-3-24 10:52
难道selenium服务中间断开了?看下进程号跟最开始是不是同一个?




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2