Browse by Tags

Tagged Content List
  • Blog Post: Using a Base Class for your Unit Test Classes

    Overview: This post will go over some simple but effective ways to setup common initialization and cleanup for Unit Tests on a larger scale than [ClassInitialize] and [TestInitialize] methods can provide for. First, to establish a common starting point I’ll go over some of the basics, if you’re...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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 of a...
  • Blog Post: How to Databind Web Test Properties that don't have the Databinding Dropdown UI in the Property Grid

    Most of the time when you want to bind a web test, request, validation rule, or extraction rule property to a datasource you just click on the value in the properties grid and there is a dropdown that provides UI for selecting the datasource to bind to. Sometimes you'll find properties that don't provide...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: Dynamic QueryString Correlation: Custom Extraction Rules and WebTest Plug-in

    Overview: What in the world is Dynamic QueryString Correlation? Dynamic QueryString values change each time a web page is viewed, they may be a unique session id or some other variable in the web application that is unique to the current user or session. Creating a Web Test for this type of website...
Page 1 of 1 (10 items)