AnswerBun.com

Get Visual Studio (2013 Community) unit test execution messages

Software Quality Assurance & Testing Asked by Slava Klevchenia on August 25, 2020

Test error message screenshot

Hi, I’m trying to make a "nice" test execution report and get the following elements:

  1. Message
  2. StackTrace
  3. Elapsed time

Test name and Test Outcome are easily taken as TestContext parameters, for output I’m using Console.SetOut(StreamWriter). List of attachments are also known (because they are created during report generated).

I’d try to use:

  • Console.SetError (returns null)
  • System.Envoirement.StackTrace (return some another message),
  • System.Diagnostic.StackTrace

Add your own answers!

Related Questions

Proper way to use throwaway email addresses for testing

7  Asked on December 13, 2020 by nikhita-jalan

 

Issue with switching / clicking an iFrame jmeter selenium

1  Asked on September 5, 2020 by chathud

       

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP