Rusty Wizard
Rusty Wizard

Reputation: 541

Why doesn't the test result view on MTM show the error message field?

I've created a coded UI test to test a basic successful login scenario for a WPF application. I chose the coding approach over the recording approach and I've adopted the page object model. I've integrated this test with TFS and I'm able to execute the test via MTM without any problem. However in the scenario of the test failing I've noticed that the Error Message field in the summary section of the test result view (the one below the Resolution field) does not appear. The error message is available in the TRX file attached in the test run view.

Is there a way for me to get the error message to be displayed in the error message field in the test result view as well?

This is a screenshot of my test result view test result view screenshot

Upvotes: 1

Views: 347

Answers (2)

Ryanman
Ryanman

Reputation: 880

Rusty,

I wanted to double check with you. I'm currently unable to see errors in the results view either, however I am able to see the error clearly and cleanly once I look at the test run itself (without opening the .trx).

For what it's worth, I have assertions throughout my tests. In addition, I have an "Assert.Fail" within a catch block that covers all my tests which I have designed in such a way that it does not nest the assertion failures as they bubble up.

It seems this problem is common among users of MTM, and Microsoft refuses to acknowledge it. If you'll forgive some opinion, I believe that the MTM product is dead in the water as Microsoft continues to add functionality to TFS web access, with this feature still being unavailable through that.

Upvotes: 0

Rocky
Rocky

Reputation: 36

Usually Assert fail messages show up in the "Error Message" field in MTM. If you dont have one, add it to your testcase and run it again.

Upvotes: 1

Related Questions