Microsoft Test And Lab Management – Quick Guide

יום חמישי, יולי 23, 2009

I have started to work on a Quick Guide for the “Microsoft Test And Lab Management” after a lot of users that likes to understand and try the tool. The quick guide is posted in my personal blog here and will be spread on a few posts where the first one is published here. There is also an introduction post here that can give a good idea on what this tool can do. The quick guide will be published in the “Team System Guides” codeplex site here when finished, I will post on that too. Have Fun!!!

How To Create A Custom Extraction Rule In Team System Web Test

יום שני, אפריל 20, 2009

There are times when you need to write your own extraction rule, it is very simple to do that just follow these steps: Step 1: Create a new project, make it a “Class Library” type. Step 2: Add a reference to: Microsoft.VisualStudio.QualityTools.WebTestFramework.dll located in “Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies\”. Step 3: Add the following using: using Microsoft.VisualStudio.TestTools.WebTesting; using Microsoft.VisualStudio.TestTools.WebTesting.Rules; using System.ComponentModel; Note: The last using is not related to the Team System but it will let us the use of attributes in order to make the implementation simple. Step 4: Next step is to add the following: namespace CustomExtraction {         [Description("Rule...

How To Create A Team System Web Test Plug-in

יום ראשון, אפריל 5, 2009

I will start by explaining what is a test plug-in and than I will show how to create one. Web Test Plug-in is used to do the following: Run code that you write at the beginning or at the end of each Iteration. In order to use it in the beginning and the end of each iteration you will need to override the PreWebTest and PostWebTest methods. Run code at the beginning or the end of each Request. In order to use a Web Test Plug-in in the beginning and the end of each request you will need to override the...

How To Run A Recorded Web Test On Different Servers

יום חמישי, מרץ 26, 2009

Many times when I record a web test, I do that on my local machine, the result is all the requests are directed to my localhost. A very nice feature added in Team System 2008 is the “Parameterize Web Server” button added to my Web Test GUI. Clicking on it will open a new window with one new parameter with the default name of “WebServer1”. We can also see that the “Web Server” parameter is the server that the web test was recorded on.     Click OK and see that two things have happened a folder was added to your Web...

How To Extract A Web Test Out Of An Existing Web Test In Team System

יום ראשון, מרץ 22, 2009

There are times when you have a part of a scenario that needs to be repeated in other scenarios. There are two options available: Record the steps each time for each of the scenarios. Create a Web Test that includes these scenario steps and embed the Web Test in other web tests. Option 2 is obviously preferable because it saves valuable time, take in account that you are not just recording steps but you also adds roles to it and modify it, wouldn’t you prefer to do that one time only? In Team System 2008 there is a nice feature that allow...
תגובה אחת

How To Add More Browsers and Network Types To The Web Test List

יום חמישי, מרץ 19, 2009

I have asked by clients that use the Web Test and Load Test how to add more Browsers and Network Types in order to simulate them. First I will start with how can you get to these lists. Step 1: Go to your Test Config file that is located in a solution that contains test projects and open it. Step 2: Go to the Web Test tab This is where you can find the list of “Browser type” and “Network type”. Now lets add a new network, we will call it Demo. Step 1: Go to “Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Templates\LoadTest\Networks” Step 2: Copy...
תגובה אחת

What Are The Dynamic Parameters In Team System Web Test?

יום שני, מרץ 16, 2009

When you finish to record a web test tells you that it checks for dynamic parameters, in case it finds one or more it asks if you like to add them to your test, so what is that dynamic parameters and what Team System adds to your recorded test? Dynamic parameters are the parameters generated dynamically when running a web application and that are passed in the query string parameter values and form post parameter values. Team System runs the web test again in the background searching for such parameters, when found it generates a script that will gather the...
אין תגובות

Camano Presentation in the ALM User Group

יום שני, ספטמבר 15, 2008

On the 08/09/2008 the ALM User Group gathered in Microsoft Rahanana offices. I had the honor to lecture in that gathering about the "Camano" using my experience from the Team System implementation project in Microsoft were I participate has a senior consultant. The project is the first "Dogfooding" project of the Team System "Rosario" versionimplementation in the world. The presentation can be downloaded from here. Enjoy!!!
תגובה אחת

Team System 2009 codename “Rosario” QA Process – Elements Hierarchy

יום שני, מאי 12, 2008

  In my last post "Connect your test cases to work items in Team System 2008 Test Module" I have talked about how to connect between a test to other work items in team system 2008 we have seen that there is no real connection between a test and work items, the connection is made thru the properties of the test and there is no way of creating any report using this information (test coverage report for example). But... In "Rosario" it's an all different story, the concept was changed and a hierarchy of elements has been created to support the...
תגובה אחת

Screen cast: Transactions in unit tests & web tests

יום רביעי, אוגוסט 8, 2007

I posted a new screen cast that explain the usage of transactions in the scope of load testing. Transactions specifies one or more steps that are grouped together. Steps can be defined as a URL or as a line of code. In the context of a web test, a transaction is one or more URLs and in the context of unit test it is one or more lines of code. In the context of a load test, you can execute both web tests and unit tests. In the following screen cast I explain the usage of transactions for both. You...
אין תגובות