【问题标题】:Error while running TestNG from command Prompt从命令提示符运行 TestNG 时出错
【发布时间】:2016-11-07 02:38:20
【问题描述】:

我创建了一个 Testng.xml 并尝试从命令 propmt 执行它,执行命令 D:\hg\projecttest>java org.testng.TestNG %ProjectPath%\TestNG.xml

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:    

相同的 TestNg.xml 在 Eclipse 中正常工作。谁能帮我解决这个问题?

【问题讨论】:

    标签: selenium-webdriver testng


    【解决方案1】:

    尝试将 selenium 升级到最新版本,或将 firefox 降级到旧版本。可能 selenium 不支持您使用的那个版本的 firefox。

    【讨论】:

    • 感谢您的回复。我已尝试从 eclipse 执行相同的 testNG.xml 文件,并且对于相同的 firefox 版本运行良好。
    猜你喜欢
    • 2011-06-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-24
    相关资源
    最近更新 更多