如何使用selenium Rc给出测试报告?
通过 JUnit 格式化程序并使用 Java 平台导出测试用例(已使用 Selenium IDE 准备)时,浏览器和 Selenium 窗口将在运行测试用例时关闭。
如何跟踪测试用例结果?
On exporting the test cases (that have been prepared using Selenium IDE) by a JUnit formatter and using Java platform, browser and Selenium window closes on running the test case.
How can I track the test case result?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以通过 Junit 断言检查生成 HTML 报告,或使用 java 代码将结果写入 csv/html。 isElementPresent 等方法将返回布尔值。您可以将结果写入文件并生成报告。
You can generate HTML reports via Junit assert checks or write the results in a csv/html using java code. Methods such as isElementPresent will return boolean. You can write the results in a file and generate report.
如果您使用 Selenium IDE 生成的 TestSuite,您可以使用类似的命令启动 Selenium RC:
它将生成您正在查找的 HTML 报告。
If you use a TestSuite generated with Selenium IDE you can launch Selenium RC with a similar command :
It'll produce the HTML report you're looking for.