编写自定义HTML日志 [英] Writing Custom HTML Logs

查看:192
本文介绍了编写自定义HTML日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我$ C $光盘UI测试被构造为使得在测试的输出自动地产生一个HTML日志文件,这样做的说明可以看出的这里

My Coded UI Test is configured so that the output of the test automatically produces an HTML log file, the instructions for doing this can be seen here.

有没有什么办法可以自定义此HTML日志或使自己的HTML记录器,使矿用于生产日志呢?例如默认的HTML日志只显示断言事件,如果他们失败。我想显示断言的事件,即使他们不会失败。

Is there any way to customize this HTML log or make my own HTML logger so that mine is used to produce the log instead? For instance the default HTML log only shows Assert events if they fail. I would like Assert events to be shown even if they don't fail.

我想用默认的HTML记录器作为基础,因为它已经做几乎正是我需要的,我不是在寻找一个解决方案,如在测试过程中创建自己的输出信息,然后创建具有这些HTML文件消息我自己。

I would like to use the default HTML logger as a base as it already does almost exactly what I need, I'm not looking for a solution such as create my own output messages during the test then create an HTML file with these messages myself.

更新:它看起来像.html文件最终写的 C:\ Program Files文件(x86)的\微软的Visual Studio 11.0 \ Common7 \ IDE \ QTAgent32_40.exe 如果这有助于在所有...

Update: It looks like the .html file is ultimately written by C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\QTAgent32_40.exe if that helps at all...

推荐答案

该指示说:

随着修改到位QTAgent32.exe.config文件,当您运行codeD UI测试,你会看到有在测试资源管理结果的输出环节。日志文件不仅产生在你的测试失败,也为当跟踪级别设置为冗长。

With the modifications to the QTAgent32.exe.config file in place, when you run a coded UI test you will see there is an output link in the Test Explorer results. Log files are produced not only when your test fails, but also for successful tests when the trace level is set to "verbose."

这篇关于编写自定义HTML日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆