Locked How can I set the webtest.outcome

  • Friday, October 23, 2009 4:15 PM
     
     
    Hi,

    I am trying to set the webtest.outcome to Pass/Fail but it seems the outcome property is read-only.
    I found some oher threads discussing this issue but none of them actually explain how to really set it (or I just don't get it :) ).

    I created a test plug-in and tried to put it in PostRequest.
    My line of code is:

    e.Request.Outcome =

    Outcome.Pass;


    When I build I get the error that Outcome property is read-only and cannot assign to it.

    What am I doing wrong?

    Thank you,
    Camelia

All Replies