Prizes & Awards
My Profile
Active Members
TodayLast 7 Days
more...
|
Resources » Articles » .NET Framework »
Application Center Test (ACT)
|
Microsoft Application Center Test
Often Web applications fail to meet their customers' needs and expectations. When a Web application generates errors, has poor response times, or is unavailable, customers can easily become frustrated. If your performance test procedure or methodology is not well thought out and properly planned, the odds of a successful Web application launch are significantly reduced. Microsoft has introduced Application Center Test (ACT) which ships along with Visual Studio .NET's Enterprise Developer and Architect editions which will help to stress test Web servers. It integrates with the Visual Studio .NET IDE.
Purpose of Application Center Test
Application Center Test (ACT) stress tests Web servers and analyze performance and scalability problems of Web applications.
ACT simulates a large group of users by opening multiple connections to the server and rapidly sending HTTP requests. It also supports several other authentication schemes and the SSL protocol, making it ideal for testing personalized and secure sites.
Application Center Test is compatible with all Web servers and Web applications that adhere to the HTTP protocol. ACT 's uses VBScript or Java Script macro recording feature and built-in graphing capability to record the tests and provide more clarity to the tester about the performance of the web site.
How to use ACT with Act.exe's browser recording feature:
I will take the example of testing a web page which will saves data to a database by calling a web service which in turn will call the Data access layer to save the data to the database.
1.Launch Act.exe from Programs | Microsoft Visual Studio .NET | Visual Studio .NET Enterprise Features | Microsoft Application Center Test to open the default ACT Samples project. 2. Right-click on the Tests node, select New Test to start the New Test Wizard, and click on Next to open the Test Source dialog. 3. Select the Record a New Test option, and click on Next twice to accept the VBScript language default, open the Browser Record dialog, and click on Start Recording to open an instance of IE. 4. Replace about: blank with your starting URL (eg: http://localhost/TestACT/AddTrain.aspx) in the Address textbox and record the sequence of operations to execute. (In this example, the sequence of operations are -> enter the values in the controls on the web form (AddTrain.aspx) and will click on the “Save” button which will call the web service to insert the value into the database. ) 5. Return to the Wizard, click on Stop Recording, close IE, and click on Next. 6. In the Test Properties dialog, type the name of the test, click on Next and Finish to dismiss the Wizard, and click on the test name item under the Tests node to display the VBScript code automatically recorded for the test (see Figure 1).
Figure:1
7. Right-click on the TestName item and choose Properties to open the General page of the TestName Properties dialog, where you set the number of simultaneous browser connections and duration or number of iterations of the test. Use a single connection and 100 iterations for the initial test (see Figure 2).
Figure 2
8. Press Ctrl+S to save the project and Ctrl+F5 to start the test. Clicking on the Show Details button displays a requests/second graph (see Figure 3). Click on Close to return to ACT when the test completes.
Figure 3
9.Click on the Results node, expand the TestName node, and mark the checkbox for the test to display a summary graph of requests/second. ACT provides detailed tabular test data below the graph.
Application Center Test
Overview: Summary
Test Name: ACTReal: Emptytest Test Run Name: Report-Emptytest-Sep 13, 2002 15-20-34 Test Started: 9/13/2002 3:15:32 PM Test Duration: 00:00:05:00 Test Iterations: 34,028 Test Notes: - Properties Test type: Dynamic Simultaneous browser connections: 5 Warm up time (secs): 0 Test duration: 00:00:05:00 Test iterations: 34,028 Detailed test results generated: Yes Summary Total number of requests: 34,029 Total number of connections: 34,028 Average requests per second: 113.43 Average time to first byte (msecs): 5.74 Average time to last byte (msecs): 5.94 Average time to last byte per iteration (msecs): 5.94 Number of unique requests made in test: 1 Number of unique response codes: 1
Errors Counts HTTP: 0 DNS: 0 Socket: 0
Additional Network Statistics
Average bandwidth (bytes/sec): 619,894.95 Number of bytes sent (bytes): 11,842,092 Number of bytes received (bytes): 174,126,393 Average rate of sent bytes (bytes/sec): 39,473.64 Average rate of received bytes (bytes/sec): 580,421.31 Number of connection errors: 0 Number of send errors: 0 Number of receive errors: 0 Number of timeout errors: 0 Response Codes Response Code: 200 - The request completed successfully. Count: 34,029 Percent (%): 100.00
Perform a series of tests with an increasing number of simultaneous browser connections to evaluate your site's scalability. I use one, two, three, five, and 10 simultaneous connections in my tests, because CPU usage pins at 100 percent for two to five connections, depending on the amount of C# code behind the page and the service being consumed.
Conclusions Microsoft application test center is a power tool for performing functional as well as performance testing of your web site. It makes your job easy- to mention a few, by simulating the number of connections made simultaneously to the server and by generating the graph automatically. It has also got lot of functionality, which provides an easy way to perform functional testing of your site.
Authors
Ravi Chander Gunishetti
I'm a Project Engineer working in Wipro Technologies since 2003.
I am a certified professional (MCSD.NET + MCAD.NET + MCP) with 3+ years of software development experience specializing in Web and Client/Server technologies…trained by Microsoft in the .NET Technologies. • Experience in using .NET technologies (C#, ASP.net and Web services) • Proficient in Back-end database programming (Stored Procedures, triggers) using SQL Server and Oracle. • Strong in Object Oriented methodologies and design. Experience in all phases of the software development project life cycle. • Proficient in web technologies like XML, HTML/DHTML, JavaScript and VBScript • Strong N-tier application development experience using Visual Basic, ASP, COM+, SQL Server.
Email id - ravichander.gunishetti@wipro.com
Harikishan Jayaraj
I had been working as a programmer since early 2000, primarily focused on intranet web applications using ASP, SQL 2000 and Oracle. Was part of the team to develop Enterprise Mobile applications in eVC++ and ATL COM using WindowsCE operating system and MS Pocket Access as the database. I transitioned to .NET in March 2002. I am an MCSD+ MCAD certified professional and currently working for WIPRO TECHNOLOGIES, Hyderabad, INDIA. Worked extensively on Microsoft.NET technologies which includes ASP.NET with C#…. Remoting and Web Services being the core areas.
Email id - harikishan.jayaraj@wipro.com
|
Responses
|
| Author: Thomas O'Connell 20 Oct 2004 | Member Level: Bronze Points : 0 | Hi,
Thanks for the article. I'm trying to test my asp.net application and also my servers. I'm having difficulty finding benchmarks to help me determine what my results should look like. Would you have a document that explains what I should be looking for in terms of performance for my app. Thanks a million.
Tom
| | Author: Nehru Arun kumar 03 Dec 2004 | Member Level: Bronze Points : 0 | Excellent ...Most of the developers dont concentrate in testing this article inspired me in doing so Hats of to both Authors Wish them a good and bright features
Arunkumar@ccubedindia.com
| | Author: Nehru Arun kumar 03 Dec 2004 | Member Level: Bronze Points : 0 | Excellent ...Most of the developers dont concentrate in Testing. This article inspired me in doing so Hats of to u guys Wish them a good and bright future
| | Author: Aju K Sebastian 21 May 2005 | Member Level: Bronze Points : 0 | I am getting a Javascript Error While cliking the summery results after a successful Test ! Any Idea Why
| | Author: Sudhir Sharma 27 Sep 2005 | Member Level: Bronze Points : 0 | Hello, I am using ACT Application Center Test to test my application. I want to test the HTTP request timeout feature. For this I need to configure this value in ACT Application Center Test. If my application does not giv eresponse in the specified time, it shoud give error.Please tell me how do i set this timeout value?
|
|