Console.WriteLine does not work.

Christian Sverrhag's Avatar

Christian Sverrhag

11 Sep, 2015 09:34 AM


I saw a previous thread about the fact that Console.WriteLine should show the text in the console but I don't manage to get it working. Instead I get the output in the "Std OUT:" for the test when I click the test tab.

Is there some way to redirect this output so that it's shown directly in the console instead of under the test?

Best Regards


  1. Support Staff 1 Posted by Feodor Fitsner on 12 Sep, 2015 12:40 AM

    Feodor Fitsner's Avatar

    Could you please clarify what test runner/framework is that?

  2. 2 Posted by Christian Sverr... on 14 Sep, 2015 08:42 AM

    Christian Sverrhag's Avatar

    Hi Feodor,

    I'm running Selenium tests using VSTest. I e-mailed you the link to the private build

    Best Regards


  3. Support Staff 3 Posted by Feodor Fitsner on 14 Sep, 2015 04:54 PM

    Feodor Fitsner's Avatar

    OK, I see - it's VSTest.Console runner.

    Looks like it's default behaviour to redirect STDOUT/STDERR if custom logger is used.

    You can use a command line to run your tests and remove /logger:Appveyor parameter. You won't get any results on "Tests" tab of course, but you should see everything in a build console instead. Hope that helps.

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:00 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac