简体   繁体   English

Visual Studio负载测试-自动生成报告

[英]Visual studio load test - Automated report generation

I am working with Visual studio Load test. 我正在使用Visual Studio负载测试。 I want to prepare Excel report after successful Load test. 成功进行负载测试后,我想准备Excel报告。 I want to trigger a Exe or create custom C# class inside the Load test solution for the report generation. 我想触发Exe或在负载测试解决方案中创建自定义C#类以生成报告。 But for both i need the test ending event. 但对于两者,我都需要测试结束事件。 Is there anyway to find out Report completion? 反正有找到报告完成的信息吗?

Thanks in advance, Subbiah K 预先感谢Subbiah K

A load test plugin can run at the end of the test. 负载测试插件可以在测试结束时运行。 Its documentation is not clear on whether that means after the tests have executed or after all the results have been saved. 它的文档尚不清楚,这是否意味着执行测试之后或保存所有结果之后。 I am not aware of any way of "triggering" the Excel report generation by program. 我不知道通过程序“触发” Excel报表生成的任何方式。

If you run the load test by using mstest.exe or a similar program then you can follow that by a command by another that you write to do the reporting you require. 如果使用mstest.exe或类似程序运行负载测试,则可以通过编写另一个命令来执行该负载测试,以执行所需的报告。

The ".testsettings" file has an option for a command (batch or exe etc) to be run after a test completes. “ .testsettings”文件具有在测试完成后运行命令(批处理或exe等)的选项。 I have not tried using it with a load test but it may provide a place to call your reporting program. 我尚未尝试将其用于负载测试,但它可能提供了一个调用报告程序的地方。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM