简体   繁体   English

针对不同域运行Visual Studio负载测试比较

[英]Running Visual Studio Load Test Comparisons Against Different Domains

I have several load tests set up each with a parameterized web test. 我有几个负载测试,每个负载测试都带有一个参数化的Web测试。 One for our baseline calculation and another for our comparison calculation. 一个用于我们的基准计算,另一个用于我们的比较计算。

These 2 sites point to 2 different IIS Sites set up with different sub-domains. 这两个站点指向设置了不同子域的2个不同的IIS站点。 I switch between these sites using 2 run settings with the domain name passed as a context parameter and run the tests in a batch script as it takes 3 hours to run all of our tests (5 sites * (10 min test run + 5 min warm up) * 2(baseline + comparison) )so I batch them over night as a scheduled task 我使用2个运行设置在这些站点之间进行切换,并且将域名作为上下文参数传递给该站点,并以批处理脚本运行测试,因为运行我们所有的测试都需要3个小时(5个站点*(10分钟测试运行+ 5分钟热身)向上)* 2(基线+比较)),所以我将它们整夜作为计划任务进行批处理

The problem I am now running into is that when I run our comparison report the baseline shows our baseline URLs but nothing comes up under the comparison side, which is I am assuming is because the domain is slightly different 我现在遇到的问题是,当我运行比较报告时,基准显示了我们的基准URL,但是在比较端下方没有出现任何情况,这是因为域有所不同

ie. 即。 loadtest.bl.{domain}/page.aspx vs loadtest.{domain}/page.aspx loadtest.bl。{domain} /page.aspx与loadtest。{domain} /page.aspx

I am testing page response time to assess that performance improvements implemented in our website are showing effective improvement in page load time 我正在测试页面响应时间,以评估我们网站上实现的性能改进显示页面加载时间的有效改善

Is there a way to set this up to ignore the domain name in the comparison or is there another option with out having to set the url the same for all tests and change the IP binding between test runs for baseline and comparison 有没有办法将其设置为忽略比较中的域名,还是有另一种选择而不必为所有测试设置相同的url并更改基线和比较的测试运行之间的IP绑定

Assuming the output format of the test results file is XML, after the first test, you could run a powershell script that changes the result URL to be the same as the URL in the second test. 假设测试结果文件的输出格式为XML,则在第一个测试之后,您可以运行一个powershell脚本,将结果URL更改为与第二个测试中的URL相同。 When you run the baseline, the result files should contain the same URL. 运行基准时,结果文件应包含相同的URL。

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

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