Orcas WebTest API Enhancements

Several new API Enhancements have been made for WebTest’s in the Orcas release of Visual Studio Team System.  Here are some links to examples: DeclarativeWebTest & DeclarativeWebTestSerializer:  http://blogs.msdn.com/densto/pages/declarativewebtest-declarativewebtestserializer.aspx WebTestRequest.DependentRequests Collection: http://blogs.msdn.com/densto/pages/webtestrequest-dependentrequests-collection.aspx WebTest.Outcome & WebTestRequest.Outcome: http://blogs.msdn.com/densto/pages/webtest-outcome-webtestrequest-outcome.aspx To find out about more of the new additions to Orcas check out the links in this post: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1177487&SiteID=1


DeclarativeWebTest & DeclarativeWebTestSerializer

In Orcas, all of the API needed to programmatically create Declarative WebTests (non-coded webtests that show up in the webtest editor UI) has been exposed.  If you have a need to programmatically generate webtests you can now do this using the DeclarativeWebTest and DeclarativeWebTestSerializer classes.  Perhaps something in your web application has changed that affects…


WebTestRequest.DependentRequests Collection

Another new addition to the API is the DependentRequests collection which is a property of the WebTestRequest object.  This collection gives you complete access to all Dependent Requests of a top-level request.  You can use this access to attach PreRequest and PostRequest event handlers to your dependent requests, as well as add or remove dependent…


WebTest.Outcome & WebTestRequest.Outcome

You can now determine whether a Request or Test passed or failed from within a Coded WebTest or a WebTest Plug-in by using the Outcome property on the WebTest and WebTestRequest objects.  This can be used to do some branching based on whether or not a request passes, as well as detect at the end…