结合codeD的UI测试HTML日志? [英] Combine Coded UI Test HTML Logs?
问题描述
运行我的codeD UI测试在Visual Studio 2012后,我想测试结果记录到一个HTML文件。以下本教程中,我能做到这一点。
After running my Coded UI tests in Visual Studio 2012 I wanted the test results to be logged to an HTML file. After following this tutorial I was able to achieve this.
不幸的是,每一个测试都有自己的HTML报告 .. \ TestResults \<试验运行文件夹> \中\<单独测试日志文件夹> \<计算机名称> \ UITestActionLog。 HTML
,目前我有3个不同的独立测试,并在每一个都有自己的文件夹 .. \ TestResults \<试验运行文件夹> \中\
Unfortunately, every single test gets its own HTML report at ..\TestResults\<Test Run Folder>\In\<Individual Test Log Folder>\<PC Name>\UITestActionLog.html
, currently I have 3 different individual tests and each gets its own folder at ..\TestResults\<Test Run Folder>\In\
每个生成的HTML文件是这样的:
Each resulting HTML file looks like this:
我要的是所有3 HTML文件合并为一个,而不是仅仅
What I want is for all 3 HTML files to be combined into one, and instead of just
>测试1
它会像
>测试1
>测试2
>测试3
有没有办法用一些配置选项会自动做到这一点还是我卡住编写一个程序来合并所有的HTML文件的自己吗?
Is there a way to do this automatically with some configuration options or am I stuck writing a program to merge all of the HTML files myself?
推荐答案
想出了一个解决方案,由我自己,写了一个程序采取&LT; DIV CLASS =G&GT;
从每个HTML日志节点,将它们组合成一个单一的HTML文件。工程就像一个魅力。
Figured out a solution by myself, wrote a program to take the <div class="g">
nodes from each HTML log and combine them into a single HTML file. Works like a charm.
这篇关于结合codeD的UI测试HTML日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!