How can I set the webtest.outcome
-
Friday, October 23, 2009 4:15 PMHi,
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
-
Monday, October 26, 2009 1:34 PM
Hi Camelia,
What version of Visual Studio are you using. Make sure you upgrade to SP1 since Outcome was read-only prior to that.
See this thread for a similar problem and resolution:
http://social.msdn.microsoft.com/Forums/en-US/vstswebtest/thread/2a83ca2e-5c79-4e87-9085-f8fdb3ab5caf
Jonathan
Navantis- Marked As Answer by CameliaB Monday, October 26, 2009 10:00 PM
-
Monday, October 26, 2009 10:00 PMThank you very much - it worked!

