This is a migrated thread and some comments may be shown as answers.

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

1 Answer 84 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sandy
Top achievements
Rank 1
Sandy asked on 05 Aug 2011, 06:59 PM
Hi,

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.

Thanks,

Sandy

1 Answer, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 09 Aug 2011, 02:47 PM
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:
ExecutionContext.Test.Owner
ExecutionContext.Test.Description

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:
http://www.telerik.com/automated-testing-tools/support/kb/executing-custom-scripts-before-after-your-test-runs.aspx

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

All the best,
Stoich
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Tags
General Discussions
Asked by
Sandy
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Share this question
or