如何记录 selenium RC 输出

发布于 2024-09-24 14:33:56 字数 252 浏览 2 评论 0原文

我有一个测试中心 .Net 应用程序,可以启动不同的硒测试。

我正在寻找一种好方法来记录特定测试的结果并告诉用户是否存在错误。

我添加了“-log selenium.log -browserSideLog line”,但是我可以通过编程方式访问日志吗?

这个想法是,在拆卸阶段,我可以查看条目并搜索“错误”并将其报告给用户。

我知道有“RetrieveLastRemoteControlLogs”命令,但它只获取日志的一部分。

I have a test hub .Net application which can fire off different selenium tests.

I'm looking for a good way to record the results of that specific test and tell the user if there has been an error.

I've added the "-log selenium.log -browserSideLog line" but, can I access the log programatically?

The idea being that at the tear down stage I can look at the entries and search for "Error" and report this to the user.

I know there is the "RetrieveLastRemoteControlLogs" command but that only gets part of log.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

凹づ凸ル 2024-10-01 14:33:56

如果您了解 PowerShell,那么您可以使用 cmdlet get-content。
在 .Net 中,您可以使用 File MSDN< 类中的方法/a>,但我不使用它。
你可以在每次测试后运行“get-content”,检查是否有错误,

如果我没有回答你的问题,那么你可以添加标签,因为这不仅仅是selenium-rc的问题。

if you know PowerShell, then you can to use cmdlet get-content.
In .Net you can to use methods from the class File MSDN, but i dont work with it.
you can run "get-content" after each test and check whether there are errors

if i have not answered your question, then you can add tags, because it is not only selenium-rc`s question.

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