51Testing软件测试论坛

标题: 用命令行执行selenium测试脚本时,报错,求助!!! [打印本页]

作者: nydwp    时间: 2014-9-30 17:30
标题: 用命令行执行selenium测试脚本时,报错,求助!!!
用命令行执行输入如下内容时报下面的错误,有知道哪里问题的不?多谢啦~~
java -jar selenium-server-standalone-2.25.0.jar -htmlSuite "*firefox" "http://192.168.1.12:10151/login/login/" "/root/.jenkins/workspace/Agent-save.html" "/root/.jenkins/workspace/results.html"

报错内容:

16:14:34.189 INFO - Java: Sun Microsystems Inc. 20.7-b02
16:14:34.195 INFO - OS: Linux 2.6.18-371.3.1.el5xen amd64
16:14:34.226 INFO - v2.25.0, with Core v2.25.0. Built from revision 17482
16:14:34.517 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
16:14:34.519 INFO - Version Jetty/5.1.x
16:14:34.521 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
16:14:34.524 INFO - Started HttpContext[/selenium-server,/selenium-server]
16:14:34.524 INFO - Started HttpContext[/,/]
16:14:34.559 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@14d6a05e
16:14:34.560 INFO - Started HttpContext[/wd,/wd]
16:14:34.568 INFO - Started SocketListener on 0.0.0.0:4444
16:14:34.568 INFO - Started org.openqa.jetty.jetty.Server@5abb7465
jar:file:/root/.jenkins/workspace/Autotest-POS/Product_POS/selenium-server-standalone-2.25.0.jar!/customProfileDirCUSTFFCHROME
16:14:34.783 INFO - Preparing Firefox profile...
HTML suite exception seen:
java.lang.RuntimeException: Timed out waiting for profile to be created!
        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:308)
        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:120)
        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:90)
        at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchHTMLSuite(FirefoxChromeLauncher.java:340)
        at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchHTMLSuite(FirefoxLauncher.java:110)
        at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:145)
        at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:196)
        at org.openqa.selenium.server.SeleniumServer.runHtmlSuite(SeleniumServer.java:612)
        at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:286)
        at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:244)
        at org.openqa.grid.selenium.GridLauncher.main(GridLauncher.java:54)




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