51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1484|回复: 0
打印 上一主题 下一主题

用命令行执行selenium测试脚本时,报错,求助!!!

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2014-9-30 17:30:47 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
用命令行执行输入如下内容时报下面的错误,有知道哪里问题的不?多谢啦~~
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)
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-6 10:46 , Processed in 0.061021 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表