Ask a questionAsk a question
 

AnswerReporting and Failures

  • Wednesday, November 04, 2009 7:51 PMbrianstill Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I am creatign a Coded UI Test and I am using some assertions as checkpoints.

    What I would like to do is:
    1.  To be able  to insert into the log my own messages. Pass or Fail or Neither.
    2. Stop the test execution is there is a failure.
    3. Turn off the debug reporting when runnign the test and only report to the log what I choose top put in the log.

    Is any of this currently available?

Answers

  • Thursday, November 05, 2009 6:42 AMAnutthara - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Brian,

    1. You can insert your own messages by doing a simple testContextInstance.WriteLine() in your tests. However the test result is determined by the Assert statements you have in your test method. If you wish to control your test result, you can use Assert.Pass/Assert.Fail
    2. Put your CUIT methods in a single ordered test. By default, the test execution will stop if any test fails. There is a flag to continue test execution if a test fails that you can set if you dont wish to see this behavior
    3. Goto qtagent32.exe.config and set the eqttracelevel flag to 0 - that should remove the debug traces from your result

    Hope that helps,
    Anu

    http://blogs.msdn.com/anutthara

All Replies

  • Thursday, November 05, 2009 6:42 AMAnutthara - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Brian,

    1. You can insert your own messages by doing a simple testContextInstance.WriteLine() in your tests. However the test result is determined by the Assert statements you have in your test method. If you wish to control your test result, you can use Assert.Pass/Assert.Fail
    2. Put your CUIT methods in a single ordered test. By default, the test execution will stop if any test fails. There is a flag to continue test execution if a test fails that you can set if you dont wish to see this behavior
    3. Goto qtagent32.exe.config and set the eqttracelevel flag to 0 - that should remove the debug traces from your result

    Hope that helps,
    Anu

    http://blogs.msdn.com/anutthara
  • Thursday, November 05, 2009 1:35 PMbrianstill Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I don't see Asset.Pass as an option... ?

    Other stuff works great, thanks!