Blue Theme Orange Theme Green Theme Red Theme
 
Home | Forums | ASP.NET 2.0 Tutorials | Web Services | How Do I...? | Class Browser | WPF Quick Starts | Advertise with Us
 | Consulting  
Submit an Article Submit a Blog 
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
Nevron Gauge for SharePoint
Search :       Advanced Search »
Home » Enterprise Development » Microsoft Application Center Test

Microsoft 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.

Page Views : 5581
Downloads : 0
Rating :
 Rate it
Level : Intermediate
   Print Read/Post comments Post a comment  Similar Articles  
   Email to a friend  Bookmark  Author's other articles  
 
Nevron Gauge for SharePoint
Become a Sponsor
 Tag Cloud
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 

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).

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).


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.

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.

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
Login to add your contents and source code to this article
 [Top] Rate this article
 
 About the author
 
Ravi Rama
Ravi Chander Gunishetti is a Sr. Project Engineer working in Wipro Technologies since 2003. I am a certified professional (MCSD.NET + MCAD.NET + MCP) with 4 years of software development experience specializing in Web and Client/Server technologies…trained by Microsoft in the .NET Technologies. Rama Nageshwara Rao is working as a Project Engineer since 2004, primarily focused on intranet web applications using ASP.Net , C# and SQL 2000. I am an MCAD certified professional and currently working for WIPRO TECHNOLOGIES, Hyderabad, INDIA. Worked extensively on Microsoft.NET technologies which includes ASP.NET with C#.
Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
 
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
 
 Post a Feedback, Comment, or Question about this article
Subject:
Comment:
Nevron Gauge for SharePoint
Become a Sponsor
 Comments

 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.