This blog post gives information about identifying, creating
performance testing strategy along with implementation using Visual
studio (VS) 2010. I would not be covering as “what is meant by” concepts
of performance testing but how to part of it.
First and foremost challenge you could face while starting performance testing is
- Identifying the goals/Scenarios for performance testing: For example it could be,
Performance testing for a website using VS would involve the following steps:
First and foremost challenge you could face while starting performance testing is
- Identifying the goals/Scenarios for performance testing: For example it could be,
- Concurrency test scenario: Monitor the performance of the website for total of 100 concurrent users performing operations New Enrolment, Change My Enrolment and Un-registration
- Scalability test scenario: Website should be scalable for 5000 users performing New Enrolment operation
- Response time of the web pages should be <= 5 sec
- For reports response time should be <= 15 sec
Performance testing for a website using VS would involve the following steps:
- Create web test
- Customize the web test (data binding, validation rules..,)
- Run the web test and fix errors if it has
- Create load test
- Configure web test and load test scripts
- Run the load test
- Analyze the results
- Create web test
- Open the Visual studio team system and create a test project
- Add web test
- Type the URL of the application
- Record the scenario which you want to load test. In the left pane you can see the URL’s being recorded
- Once you are done with recording the scenario stop the recording
- You can see the URL’s (get and post requests) it has recorded
- Customize the web test
- In this section you would data bind users, create validation rules, set the response time goal for each link, set the think time.,
- Run the web test and fix errors if it has any
- Create load test
- Add load test
- Give name of the scenario
- Click on next
- Select scenarios (scripts) click on next
- Select network type click on next
- Enter constant load of 100 (you can give ramp up if you want)
- Add IIS and DB server name
- Finish
- Configure web test and load test scripts
- Configuration for web test scripts:
- Response time goal of 5 seconds for each page
- Configuration of Load test scripts:
- Scenario1: 100 concurrent users
- Constant load pattern: 100 users
- Run duration: 20 minutes
- Web test connection model: Connection per user
- Web test: one row per data source
- Scenario2: Scalability
- Constant load pattern: 25 users
- Run duration: 480 minutes
- Web test connection model: Connection per user
- Web test: one row per data source
- Uncheck test time outs settings
- Scenario1: 100 concurrent users
- Configuration for web test scripts:
- Run the load test
- Analyze the results (samples summary result documents attached below)
- Important statistics for us:
- Response time for each page should be < 5 seconds
- Web Server Processor usage < 70%
- Web Server Available MB >128 MB
- DB Server Processor usage < 70%
- DB Server Available MB >128 MB
No comments:
Post a Comment