New in Orcas! Filtering Dependent Requests

One of the new Web Test features in Orcas is the ability to filter dependent requests.  If you have a request in your webtest that fetches a lot of content such as images, javascript files, css files, etc. you’ll be able to programatically determine which requests are allowed to execute during the course of the web test, and…

1

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

4

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…

2

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…

2

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…

1

QueryString Correlation: Custom Extraction Rule – Basic

  using System; using System.Collections.Generic; using System.ComponentModel; using System.Globalization; using Microsoft.VisualStudio.TestTools.WebTesting; using Microsoft.VisualStudio.TestTools.WebTesting.Rules;   namespace WhidbeyCorrelation {         public class DynamicQueryStringExtraction : ExtractionRule     {           public override string RuleName         {             get             {                 return “DynamicQueryStringExtraction”;             }         }           public override string RuleDescription         {             get…

2

QueryString Correlation: WebTest Plug-in

  using System; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Text; using System.Windows.Forms; using System.Xml;   using Microsoft.VisualStudio.TestTools.WebTesting; using Microsoft.VisualStudio.TestTools.WebTesting.Rules;   namespace WhidbeyCorrelation {     public class CorrelationPlugin : WebTestPlugin     {         public override void PreWebTest(object sender, PreWebTestEventArgs e)         {             webtest = new XmlDocument();             webtest.Load(e.WebTest.Name + “.webtest”);               //Wire up…

1

QueryString Correlation: Custom Extraction Rule – ResponseText

    using System; using System.Collections.Generic; using System.ComponentModel; using System.Globalization; using Microsoft.VisualStudio.TestTools.WebTesting; using Microsoft.VisualStudio.TestTools.WebTesting.Rules;   namespace WhidbeyCorrelation {     public class DynamicQueryStringExtraction_RawResponseText : ExtractionRule     {         public override string RuleName         {             get             {                 return “DynamicQueryStringExtraction_RawResponseText”;             }         }           public override string RuleDescription         {             get            …

1