|
|
YOUR FEEDBACK
|
TOP MICROSOFT .NET LINKS Visual Studio 2005
Visual Studio Team Test
The many test types and how to manage the many tests you generate
By: Jason Anderson; Tom Arnold
Digg This!
A common problem faced by companies looking to undertake software development is determining which tools to incorporate into their process. On the surface it sounds like an easy, perhaps even fun, task: to go shopping for cool new software that is going to make the project that much more productive. The challenge of selecting that tool, however, goes a little deeper than a quick visit to your favorite software Web site. It quickly becomes a question of how well those tools will integrate with other tools used on a project. An Example What many companies end up doing when faced with this dilemma is to write layers in between, to force the necessary integration. The problem is that this becomes an entirely new development project as developers write code to create the tools they will then use on their main development project. Visual Studio Team System In This Article It should be noted that although we will look specifically at the Web and Load testing types, there are many other types that come with VSTS (and even more created by third-party testing tool vendors). The Need for Web and Load Testing This problem can be avoided by taking the time to create some tests to exercise your site and simulate user load. The best part is that creating tests doesn't take a huge amount of effort. Web Test Type In Internet Explorer, a pane appears on the left side of the window. This pane tracks your progress as you surf your Web site, from tracking simple links to recording the posting of complex forms, as shown in Figure 1. Once you have completed your interaction and touched the areas of your site that need to be tested, saving your results takes you back into Visual Studio, where you can see the results of your interaction. After saving your results into Visual Studio, you are then able to step through your recorded Web test, set check points to verify that your site is behaving as expected, and tie your test to a database so that entries on a Web form can be parameterized and allow a data-driven approach to testing. One of the best parts is that you can also render your recorded Web test into source code: VB, C++, or C#. The Web test is included with your other test types and can be part of any test run you create, mixing it in with the other test types provided. Load Test Type Creating a Load test is the same as creating any new test in Visual Studio Team System. You may go to the new top-level Test menu and select Create New Test, or you can right-click on a Test Project and select Add New Test. After selecting the Load test from your varied list of test types, the Load Test Wizard walks you through the configuration of your test, as shown in Figure 2. It is in this wizard that one or more Web tests are selected and the distribution of the execution of those tests is set. In addition, this wizard allows the test author to select which browsers and bandwidths to simulate during the test run. This is also where the user specifies which machines to watch during the execution of the test (i.e., Database server, Web server, and any other machine for which you care to gather statistics). Finally, this wizard provides a way to control how to step up the test (i.e., have 1,000 simulated users for the entire test or step up the number of users over a given period of time), as well as the total duration of the test. When the test is executed, it appears in the Test Results window and shows the user that the test is in progress. At this point, the test can run to completion without any user interaction. What is more fun, however, is displaying the test details so that the progress of the load test can be observed, as shown in Figure 3. It is in this view that the machines specified in the wizard can be observed for any anomalies. Although the common counters are shown to the user by default, one can also select other measured parameters and place them on the real-time chart. If a problem is identified, the person running the tests can create a bug and assign it to a developer with the results automatically attached to the problem report. When the developer reviews the bug and opens the attached test results, he or she can see exactly what the tester saw when the test was originally executed. Test Management The Test Manager Window was specifically introduced to help facilitate the organization and use of a large number of test cases. The Test Manager displays all of the test cases loaded in Team Test. As shown in Figure 4, using Test Manager with Test Lists lets you select a set of test cases just by selecting the Test List. Other elements of the Test Manager window include the following:
Test Lists are exactly what the name implies: a list of test cases grouped together that can be easily managed as a single artifact. In previous drops of Visual Studio Team Test, Test Lists were called Categories. Test Lists have the following characteristics:
To define a new Test List, right-click on the location in the Test Manager tree where you want the new list to be created. For example, to make a root Test List, right-click on the "List of Tests" node and select "Create Test List." The result is the dialog shown in Figure 5. Now just fill out the Name and Description fields, click OK, and you have a new Test List. To add tests to the List, just select the test under an existing Test List or other node in the Test Manager Tree and drag, copy, or cut the test case into the new Test List. Conclusion In addition to helping you write various test types, Visual Studio Team Test can help you manage your test cases. Test Manager lets you control and organize a large number of tests cases in a quick and easy manner via Test Lists. Additional features included in Visual Studio Team Test that we did not cover include Remote\Distri-buted Execution, Test Results Management, and additional test types including Manual Tests and Ordered Tests. Visual Studio Team Test is a first-class testing tool integrated with the whole Test System product family. By leveraging Team Test, your test team is able to help provide an essential part of the overall software health picture of your product development project. MICROSOFT .NET LATEST STORIES
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
|
SYS-CON FEATURED WHITEPAPERS MOST READ THIS WEEK BREAKING NEWS FROM THE WIRES
|
||||||||||||||||||||||||||||||||||