Performance Testing Exercises
Performance Testing Exercises
Record sample navigation in HTML mode and URL mode and find out the differences 2. From the above exercise, identify the request type (GET/POST) and the request header and request body (by navigating to the tree view, and looking at the recording snapshot, replay snapshot and both recording and replay snapshot)
3. Basic correlation Exercise Correlate the Session ID from the WebTours application
( Home Page Login Logout) 4. Parameterization Consider a file having values from data1 data100 and fill out the tables below: Sequential/Once Itr1 Itr2 Itr3 Itr4 User1 Occ1 Occ2 User2 Occ1 Occ2 User3 Occ1 Occ2 User 4 Occ1 Occ2
Occ1
User1 Occ2
Occ1
User2 Occ2
Occ1
User3 Occ2
Occ1
User 4 Occ2
Occ1
User1 Occ2
Occ1
User2 Occ2
Occ1
User3 Occ2
Occ1
User 4 Occ2
Random/Once Itr1 Itr2 Itr3 Itr4 Random/Each Itr Itr1 Itr2 Itr3 Itr4
Occ1
User1 Occ2
Occ1
User2 Occ2
Occ1
User3 Occ2
Occ1
User 4 Occ2
Rand/Each Occ Itr1 Itr2 Itr3 Itr4 Block Size: 15 Unique/Once Itr1 Itr2 Itr3 Itr4
Occ1
User1 Occ2
Occ1
User2 Occ2
Occ1
User3 Occ2
Occ1
User 4 Occ2
Occ1
User1 Occ2
Occ1
User2 Occ2
Occ1
User3 Occ2
Occ1
User 4 Occ2
Unique/Each Itr Itr1 Itr2 Itr3 Itr4 Unique/Each Occ Itr1 Itr2 Itr3 Itr4
Occ1
User1 Occ2
Occ1
User2 Occ2
Occ1
User3 Occ2
Occ1
User 4 Occ2
Occ1
User1 Occ2
Occ1
User2 Occ2
Occ1
User3 Occ2
Occ1
User 4 Occ2
5. Implement the parameterization into the script for the navigation Home Page Login
Click Flights Select Arrival and departure cities Continue Logout
6. Identifying the dynamic data Record two/three scripts and compare them using windiff
and identify the things to be parameterized and things to be correlated
7. Second Level of Correlation Randomize the City Selection (with and without using
lr_paramarr_random()). Navigation is as below: Home Page Login Click Flights Select Arrival and departure cities Continue Logout. 8. In the above exercise ensure that the Arrival and departure cities are different
9. Third level of correlation Eliminate the unwanted right part of the captured string.
Record the script for the below navigation and ensure that if the random flight selected is the first one, remove the Checked part from the dynamic data. Navigation is as below: Home Page Login click Flights Select Arrival and Departure cities Continue Select a flight (randomly) Continue Enter payment details Logout
10. Write a C program that takes three inputs which are the main Str, the Left substr and the right substr and returns a string which is between the left and right substr. For Ex: MainStr = Welcome to Performance testing @ our institute LeftStr = Welcome to RightStr = @ our Expected output = Performance testing 11. Implement the page verifications into the script (with and without using the SaveCount attribute)
12. Implement the lr_start_transaction and lr_end_transaction() and lr_think_time() into the
script (with and without using LR_AUTO Flag for lr_end_transaction)
13. Implement the Web_custom_request for the navigation Home Page Login Click on
Itinerary Cancel all Flights Logout. The script should verify if there are flights available to be cancelled. If the flights are not available, the user should simply logoff
14. Implement Web_custom_request for the below requirement. While booking the flights,
Round Trip should be enabled for every 5th Iteration. Implement all the customizations into the script