[英]How can I run a finished Selenium-RC project from command prompt?
I created a test case using selenium-RC with JAVA using Eclipse IDE and selenium jars. 我使用Eclipse IDE和硒罐,使用selenium-RC和JAVA创建了一个测试用例。
The project is finished and running fine. 该项目已完成并且运行良好。
My question: 我的问题:
What is next? 下一步是什么? do i have to run the test case from Eclipse every time?
每次都要从Eclipse运行测试用例吗? or there are next steps?
还是下一步?
I want to run this test on a scheduled manner every hour. 我想每小时安排一次测试。 I could do that if i could run it from a command prompt.
如果可以从命令提示符运行它,我可以这样做。 Is there a way better that command prompt or it is enough?!
有没有一种更好的命令提示符方法?
Use Jenkins with testng set after test to close the browser 在测试后将Jenkins与testng一起使用以关闭浏览器
@AfterSuite(alwaysRun = true)
public void closeBrowser(WebDriver driver) {
if (driver != null) {
driver.close();
driver.quit();
driver = null;
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.