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

Random pause of 2 to 5 seconds between requests Jmeter

1  Asked on November 28, 2021 by denis-filatov

 

Script timeout in Protractor

2  Asked on November 21, 2021 by ingridd-brito

   

Find button class with Selenium on Python

2  Asked on November 19, 2021 by nizariansyah-agung

   

Should Testers be called QA?

4  Asked on October 25, 2021 by jainam

     

Problem implicit wait with wait.until

1  Asked on October 25, 2021 by markus-pallasch

   

Ask a Question

Get help from others!

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