Forum Discussion

bknutson's avatar
bknutson
Contributor
10 years ago

Warning messages when using TC scripts in MTM

I have some TC scripts where I throw a warning if something I am watching for isn't correct.   It could be a count on objects on the screen or for any other reason.

When running the tests through TC, the test will finish and I will see the test icon showing the yellow warning symbol that lets me know to dig into the test and see what's up. 

I noticed that when running a test from Visual Studio (VS), if just a warning is in the test (no red errors) the test will complete and show a green check in VS.

I don't have many warnings ever getting thrown but, through VS, it is looking like if the tests run through fine but there are warnings (mine or, given from TC), the only way to know on the VS/MTM side is to open up the output .mht file each time.

 

For those integrating TC scripts into Microsoft Test Manager (MTM)/Visual Studio, do you have a way to have the icon change (I know, long shot but, would be cool) in VS to indicate something isn't quite right?  What workaround did you do?  Did you find any good alternatives?  Did you have to switch everything to error messages (don't really want to do that.)?  

 

Thanks for you feedback

Brad

2 Replies

  • Hi Bknutson,

     

    I don’t see an option to display warning messages on the Analyze Test Runs page. I suppose we have to use Visual Studio methods here and we may have nothing to do with this. Anyway, you can submit a feature request here, and, if this idea gets many votes, our R&D team will try to implement it.

     

    • bknutson's avatar
      bknutson
      Contributor

      Thanks Tanya.

       

      That's a bummer.  It looks like the only way to know if a warning came through is to open the .mht file after each test run.   Maybe there is a way to look for warnings in the file and then pass it on some different way?   I will have to try some things.  I don't really want to use Error messages but, that may be what will be needed.

      I will look into also putting in a new feature request.