如何使用selenium Rc给出测试报告?

发布于 2024-08-23 13:40:21 字数 109 浏览 2 评论 0原文

通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

会发光的星星闪亮亮i 2024-08-30 13:40:22

您可以通过 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.

時窥 2024-08-30 13:40:22

如果您使用 Selenium IDE 生成的 TestSuite,您可以使用类似的命令启动 Selenium RC:

java -jar C:\SeleniumServer\selenium-server.jar "-Dfile.encoding=UTF-8" -htmlSuite "*chrome" "http://127.0.0.1" "C:\Path\To\TestSuite.html" "C:\Path\To\Results.html"

它将生成您正在查找的 HTML 报告。

If you use a TestSuite generated with Selenium IDE you can launch Selenium RC with a similar command :

java -jar C:\SeleniumServer\selenium-server.jar "-Dfile.encoding=UTF-8" -htmlSuite "*chrome" "http://127.0.0.1" "C:\Path\To\TestSuite.html" "C:\Path\To\Results.html"

It'll produce the HTML report you're looking for.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文