从命令提示符运行TestNG时出错

时间:2015-04-16 13:24:59

标签: selenium-webdriver testng

我创建了一个Testng.xml并尝试从命令propmt执行它,它在执行命令D:\ hg \ projecttest&gt; java org.testng.TestNG%ProjectPath%\ TestNG.xml <后给出了以下错误/ p>

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中正常工作。有人可以帮我这个吗?

1 个答案:

答案 0 :(得分:1)

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