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...
תגובה אחת

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...
אין תגובות

Get ready 2008 – VSTS For Developers & Testers

יום שבת, יולי 7, 2007

Last week Microsoft and NESS organized a three days extreme learning. I was one of the lecturers and I talked about Unit testing, TDD, Load testing, Performance testing, Web testing in VSTS for Developers and Testers. For all of you who missed it or just want to take a look at it, you can download it from here. If you have any feedback about the lectures, let me know :-)

Advanced issues for VSTS testers – Cross posts

יום שני, יוני 4, 2007

Sarit Tamir previously submitted a post that introduces SRL's bloggers Guy Kolbis, Maor David and Leon Langleyben. I recently published in my blog several posts regarding advanced issues for a tester in the VSTS Testers edition. You can read more about them in these links: How to abort a web test on specific request Logon once and perform a number of tests Creating customized manual test templates Collecting performance counters from UNIX during VS load test Why the web test browser recorder doesn't capture AJAX calls?

3 blogs by our team members

יום שבת, מאי 12, 2007

First of all, an introduction - a new blog by Maor David . Maor is an experienced .NET architect, developer and ALM specialist. Maor has recently implemented DB Dude of 3 customers sites and I hope that he will find the time to blog about it. I believe hsi new blog will be a very intresting place to track. Another blog, by Guy Kolbis  is a mixture of .NET and advanced ALM Testing posts. Guy is a our web, load and stress specialist and has recently performed some complicated performance labs for our customers. Last, but by all means not least, is Leon...
אין תגובות

What's new for testers in Orcas?

יום חמישי, אפריל 12, 2007

Yesterday, I talked to Ed Glas from Microsoft. For those of you who don’t know, Ed is the group manager for VSTS load testing at Microsoft. One of my first questions was about  the new features that we will see in the next Orcas release? Here is a link to his blog that summaries those issues. I think that the list of features is very exciting and I'm looking forward to using them.
אין תגובות