Wednesday 18 September 2013

Unable to add comments to web performance logs

Continuing the topic of logging data from Visual Studio load tests. Previously I wrote about trying to extract all the web performance test logs from a load test. For this to be useful the logs needed to include more data about the test.

Both web performance tests and load tests support plugins. These allow user written code to be called at various points in the execution of a test. One of the routines that web test plugins can call is AddCommentToResult, so all we need to do is gather some data, format it into a string and write it out as a comment at the end of the web test. Unfortunately that did not work as expected. Comments are successfully written when the web performance test is run, but when run as part of a load test the comments are not written. See this MSDN forum topic for more details of the issue. This was found with Microsoft Visual Studio Ultimate 2012,  Version 11.0.60315.01 Update 2 with Microsoft .NET Framework Version 4.5.50709

No comments:

Post a Comment