Is it possible to get more information in test results file?

2 posts, 0 answers
  1. Sandy
    Sandy avatar
    8 posts
    Member since:
    Jun 2011

    Posted 05 Aug 2011 Link to this post


    I'm interested in parsing into HTML the XML formatted results file that command line execution programs like mstest or artoftest.runner generates for test runs. I noticed, however, that some of the test information I put into Test Studio doesn't make it into the .trx or .aiiresults files.

    I'm specifically looking at the individual test descriptions and the owner properties. Is there a way to get this information into the results file? It's something that would be useful to me ASAP as my workaround would be to generate extra test steps to write information to the log.


  2. Stoich
    Stoich avatar
    1 posts

    Posted 09 Aug 2011 Link to this post

    Hello Sandy,
        configurable test results are currently logged as a Feature Request.

    Currently you can write the test Description/Owner to the results by using a simple coded solution (you've probably managed to come up with one already). In code you can access the Description/Owner like so:

    So a simple way to write this to the log would be the following coded step:
    Log.WriteLine("Test Owner:"         + ExecutionContext.Test.Owner);
    Log.WriteLine("Test Description:" + ExecutionContext.Test.Description);

    Alternatively you can put this code in OnAfterTestCompleted() or OnBeforeTestCompleted() as seen here:

    Let me know if you have any additional questions on this.

    All the best,
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Back to Top