locked
Test Explorer window no longer showing "Output" for unit test runs RRS feed

  • Question

  • User-1436064724 posted

    In am using visual studio 2017 , I am not getting output link in the summary part -(in test explorer) after my unit tests ....

    Wednesday, July 25, 2018 10:27 PM

Answers

  • User-1436064724 posted

    hi ,

    I solved the issue.. i was trying to print from specflow feature steps file ... that was not working ...  .. 

    but when i tried from Nunit file ... i got ouput link ...

    When i tried below one - 

    class nunit
    {
    [Test]
    public void printing()
    {
    Console.Write("Testing output");

    }
    }

    i got output link under summary... but when i tried to do with specflow steps file .. it doesnt work .. below is my specflow code

    [Given(@"given scenario one and")]
    public void GivenGivenScenarioOneAnd()
    {
    Console.Write("Given scenario one and");

    }

    Does this output link will work only for Nunit ?

    Thanks for all  your suggestions...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, August 2, 2018 12:54 AM

All replies

  • User347430248 posted

    Hi sunithateste...,Please check that,"Solution Configurations dropdown set to Debug".

    If it is not set to 'debug' then you will not be able to see output for unit tests.

    If solution configuration option already set to Debug and then also you are not able to see the output then you can try to check for a latest update for Visual Studio.

    If you find any update is available then try to install it may help you to solve your issue.

    Regards

    Deepak

    Friday, July 27, 2018 7:28 AM
  • User-1436064724 posted

    Hi Deepak,

     Thanks for reply ..my solution configuration option is already in 'Debug ' option .....

    Will try to update and check it

    Sunday, July 29, 2018 9:59 PM
  • User347430248 posted

    Hi sunithateste...,

    Is your issue solved?

    Does installing the latest update helped to solve the issue?

    This thread is still open on our side.

    Try to update the status of this thread and let us know about it.

    Thanks for your understanding.

    Regards

    Deepak

    Wednesday, August 1, 2018 6:56 AM
  • User-1436064724 posted

    Hi ... not yet solved the issue... after updating also ... still  looking for solution..

    Thanks

    Wednesday, August 1, 2018 11:36 PM
  • User475983607 posted

    sunithatester

    In am using visual studio 2017 , I am not getting output link in the summary part -(in test explorer) after my unit tests ....

    The Output link is present as long as you wrote to the the output stream.  We cannot see how you docked the Test Explorer View in Visual Studio and you did not mention the test framework you are using.  You might have to scroll down or to the right in the Test Explorer window.  

    Thursday, August 2, 2018 12:10 AM
  • User-1436064724 posted

    hi ,

    I solved the issue.. i was trying to print from specflow feature steps file ... that was not working ...  .. 

    but when i tried from Nunit file ... i got ouput link ...

    When i tried below one - 

    class nunit
    {
    [Test]
    public void printing()
    {
    Console.Write("Testing output");

    }
    }

    i got output link under summary... but when i tried to do with specflow steps file .. it doesnt work .. below is my specflow code

    [Given(@"given scenario one and")]
    public void GivenGivenScenarioOneAnd()
    {
    Console.Write("Given scenario one and");

    }

    Does this output link will work only for Nunit ?

    Thanks for all  your suggestions...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, August 2, 2018 12:54 AM