是否有任何过程来合并测试结果并将结果导出到文本或Excel文件中 [英] is there any procedure to merge the test result and export the result into text or excel file

查看:96
本文介绍了是否有任何过程来合并测试结果并将结果导出到文本或Excel文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我在一个班级中运行了4次测试,例如

suppose i have run the 4tests in one class like

[TestMethod]

         public void LogOn1

[TestMethod]
        public void LogOn1

[TestMethod]

        public void MAkeusers

[TestMethod]
        public void MAkeusers

[TestMethod]

        public void Createprofile

[TestMethod]
        public void Createprofile

[TestMethod]

        public void CreateIndexes

[TestMethod]
        public void CreateIndexes

 

假设我创建了列表......它失败了2个案例并通过了2个案例

Suppose i cretaed list ...it fails 2 cases and passed 2 cases

然后我再次从列表中执行失败的情况并且它们通过了。

then again i execute failed cases from list and they passed.

如何将这两个结果合并为4个案例运行和4个传递的组合结果,如果有文本文件或excel我们可以在哪里导出结果?

How to merge these two results for combine result that 4 cases run and 4 passed and if there is text file or excel where we can export that results?

推荐答案

没有内置功能可以合并两个测试结果(或TRX文件)。但是TRX文件是XML格式的,你可以编写自己的实用程序来合并它们。
There is no built in feature to merge two test results (or TRX files). But TRX file being in XML format, you can write your own utility to merge them.


这篇关于是否有任何过程来合并测试结果并将结果导出到文本或Excel文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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