Selenium - 运行测试套件的测试套件?
我正在运行一个 HTML 测试套件,如下所示:
java -jar /var/lib/selenium/selenium-server.jar -browserSessionReuse -htmlSuite *firefox http://$HOST ./test/selenium/html/TestSuite .html ./target/selenium/html/TestSuiteResults.html
有没有办法可以运行目录中的所有测试套件,或者创建测试套件的测试套件?
I'm running an HTML test suite as such:
java -jar /var/lib/selenium/selenium-server.jar -browserSessionReuse -htmlSuite *firefox http://$HOST ./test/selenium/html/TestSuite.html ./target/selenium/html/TestSuiteResults.html
Is there a way I can run all test suites in a directory, or create a test suite of test suites?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我对 Selenium 非常陌生,而且真的只知道 Selenium2。我使用“TestNG”作为我的测试框架,它确实支持使用 xml 文件的套件和套件套件,该 xml 文件指定哪些带有特定注释的测试是套件的一部分。
如果您正在寻找运行套件的套件,并且您专门使用 Java(据我所知,TestNG 不支持 Java 以外的任何内容),那么您可能会找到您正在寻找的东西。
I'm very new to Selenium and really only Selenium2. I'm using "TestNG" as my test framework, and it does support suites and suites of suites using an xml file that specifies which tests carrying a particular annotation are part of the suite.
If running suites of suites is what you are looking for, and you are using Java exclusively (TestNG does not, as I understand it, support anything other than Java), then you may find what you're looking for.
我创建了一个 grails 脚本来自动创建超级测试套件。需要修改测试套件是添加测试的又一步,每一级障碍都会增加开发人员拒绝编写测试的可能性。
I created a grails script to create a super-testsuite automatically. Needing to modify test suites is one more step in adding a test, and each level of barrier increases the likelihood of developers refusing to write tests.
查看 Selunit。它提供了一个 Maven 插件来批量执行 Selenese 套件并将报告转换为 Junit 格式。最后一个对于将测试执行集成到像 Jenkins 这样的 CI 服务器中非常有用,它会生成漂亮的图表并在出现测试错误时发出通知。
Look at Selunit. It provides a Maven plugin to execute Selenese suites in batch and transforms reports to Junit format. The last is very usefull for integration of test execution into a CI server like Jenkins, which generates nice charts and notifies in case of test errors.