对于每个测试,我都创建了一个Java类。现在我想知道如何运行所有这些测试一次。我的意思是如何执行回归测试并在WebDriver中查看结果。
Selenium WebDriver有可能吗?
谢谢Selenium WebDriver可以运行回归吗?
0
A
回答
3
Selenium无法执行测试,它只是为您提供了交互浏览器的方式。 既然你提到你使用的是Java,那么你需要使用像JUnit这样的单元测试框架。
这也将照顾你提到的其他东西,测试结果。
0
您可以直接运行的Java以及并通过一些单元测试框架一样Junit/TestNg
在Java中运行,写一个类具有main()
方法,调用所有你想主类中执行,并执行main
方法类作为Java执行者。它会执行所有的测试类。
相关问题
- 1. 我可以同时使用selenium-webdriver运行多个实例吗?
- 2. Dart可以运行jar归档吗?
- 3. 为.net selenium-webdriver运行htmlunit?
- 4. 递归循环Selenium Webdriver
- 5. WebDriver - 在运行webdriver/selenium测试时运行插件
- 6. 与NUnit3并行运行Selenium WebDriver测试
- 7. Selenium IDE 2.9.1 - 我可以从命令行运行测试吗?
- 8. 可以使用Selenium WebDriver进行自动化网页爬行会有危险吗?
- 9. Selenium Webdriver可以同时打开不同的浏览器并行执行吗?
- 10. 在4GB RAM的Latop上运行逻辑回归可行吗
- 11. 从Python CGI脚本运行Selenium webdriver
- 12. 无法运行TestNG Suite(Selenium Webdriver)
- 13. 用Selenium WebDriver运行TOR浏览器
- 14. eclips上selenium webdriver运行时错误
- 15. 在Jenkins中运行Selenium Webdriver时出错
- 16. Java中的Selenium Firefox Webdriver(运行参数)
- 17. 在ssh中运行Python Selenium webdriver
- 18. 测试用例未运行iin selenium webdriver
- 19. 在AWS EC2中运行selenium webdriver linux
- 20. 无法为Selenium/WebDriver运行Java示例
- 21. 使用Selenium Webdriver可以达到100%的合格率吗?
- 22. nightwatch.js可以使用selenium-webdriver中的usingServer吗?
- 23. 我们可以用selenium webdriver建立一个应用程序吗?
- 24. 我们可以在Selenium WebDriver和Cucumber上使用TestNG吗?
- 25. Selenium webDriver Python绑定可以测试Ruby on Rails网站吗?
- 26. 我可以使用Selenium Webdriver自动化Microsoft Dynamics AX吗?
- 27. 我可以使用selenium webdriver读取浏览器网址吗?
- 28. Selenium WebDriver可以访问Google云端硬盘上的文件吗?
- 29. 我们可以一起使用Mechanize和Selenium WebDriver吗?红宝石
- 30. Selenium 2 Webdriver可以同时处理两个webelements吗?
只需添加,就可以使用任何自动化测试框架。例如TestNG也可以使用 –
谢谢大家。他们对在JUnit测试套装中增加测试数量有什么限制?哪一个更适合使用JUnit或TestNG? – Pooja
对于可以进行多少测试没有限制,对于JUnit vs TestNG,我更喜欢使用TestNG,因为它提供了一些与JUnit相比的额外内容。 – Cosmin