2. CCoonntteennttss
1)Installation Of RPT
2)Basics Of RPT
i) What is RPT?
ii) Main Goals of RPT
iii) Features of RPT
3)Scripting
i) Correlation
ii) Creating Datapools
iii) Importing CSV File
iv) Example for Correlation and DataPool
v) Verification Points
vi) Transaction Points
vii) Error Handling
viii) Loops
ix) Custom Codes
4)Execution
i) What is Schedule?
ii) How to Create Schedule?
iii) How to Schedule for Multiple Users with Different Scripts and with Multiple
Agents with Rampup stages?
5)Analysis & Reports
i) Types of Reports
ii) Report Display Options
iii) How to Export Reports? And in which Format?
Training 2 Material on RPT 15-07-2014
4. WWhhaatt iiss RRPPTT??
IBM Rational Performance Tester is a performance testing tool that identifies
the presence and cause of system performance bottlenecks. Combining multiple
ease-of-use features with granular detail, Rational Performance Tester
simplifies the test-creation, load-generation and data-collection processes that
help teams ensure the ability of their applications to accommodate required
user loads.
Training 4 Material on RPT 15-07-2014
5. LLoonngg--tteerrmm GGooaall
Getting less Response time
Scalability
Reliability
Number of Concurrent Users Required for the System
Acceptable limits of System utilization CPU, Memory and Network etc.,
Threshold
5 Training Material on RPT 15-07-2014
6. FFeeaattuurreess ooff RRPPTT
Code-free testing
Root cause analysis tool
Real-time reporting
Test data
Load Testing
6 Training Material on RPT 15-07-2014
8. HHooww ttoo ddoo SSccrriippttiinngg ??
First Create “Performance Test Project”
File > New > Performance Test Project
Training 8 Material on RPT 15-07-2014
9. Select all Components required for your Project
Training 9 Material on RPT 15-07-2014
10. Choose the Recording Type as “Http Recording”
Training 10 Material on RPT 15-07-2014
11. Another window opens with Your Project and Components.
Select Your Project and in that Tests Component.
Training 11 Material on RPT 15-07-2014
15. While Recording we have to insert Transaction Points to get the Response time
for each and every Object of Web Application.
Mainly we will give Transactions for URL, Buttons, Hyperlinks etc.,
After Completion of whole navigation you have to simply close the Web
Application.
Then it generates the Code and Shows a window with “Open Test” if you are
recorded in a right way.
Click on Open Test.
It shows the Script in a Tree-like Structure.
Training 15 Material on RPT 15-07-2014
16. EElleemmeennttss ooff RRPPTT
MMaajjoorr EElleemmeennttss ooff RRPPTT aarree ::
Correlation
Data-pooling
Error Handling
Verification
Points
Transaction
Points
Loops
Custom Codes
Training 16 Material on RPT 15-07-2014
17. WWhhaatt iiss CCoorrrreellaattiioonn??
Correlation is nothing but Handling the Dynamic Data generated by Server.
We will Correlate the Values like Ids which are unique to each user.
Training 17 Material on RPT 15-07-2014
18. CCoorrrreellaattiioonn
Generally in RPT, Correlation can be done automatically by the Tool itself.
(Automatic Correlation)
We can also do Manual Correlation as follows :
Go to Substitution site > select the value > Go to Previous response >
Find that value in Previous Response > Right Click on that Value > Click on Create Reference >
Enter a Name that should be unique > Click on Check and then Continue > Opens a window
>Select values need to be correlated include Potential Matches >Finally Click on Substitute
Checked Option
Manual Correlation can be done only when the tool cannot find some
Correlated Values
Training 18 Material on RPT 15-07-2014
19. WWhhaatt iiss DDaattaappooooll??
A Datapool provides variable data during test runs. Rational Performance
Tester scripts use data from when the test was recorded. By associating a
datapool with a test at runtime, you can substitute the variable data in the
datapool for the data in the test.
Training 19 Material on RPT 15-07-2014
20. PPrroocceedduurree ffoorr CCrreeaattiinngg DDaattaappooooll
Click File →New →Datapool.
Specify a name and location for the datapool file.
Specify the number of variables (columns) that you want and click Next.
Specify the number of records (rows) that you want and click Next.
Specify the name, type of action, and the location of the datapool variable and click OK.
Associate the datapool with a test.
Click the Add datapool button in the common options tab of a test.
Select the datapool you want to use.
Associate a request in the test with a Datapool column
Select a request in the test. The candidates for datapool appear in green in Test Element Details.
Right-click the candidate and click Substitute From →Datapool Variable.
Select the Datapool column and click Use Column.
(Optional) Encrypt a datapool column.
Click on the column header for a variable and the Edit Variable window opens.
Select the Encrypt check box.
Click OK and the Set Password window opens.
Type password you want to use for the variable and click OK.
The datapool variable is now encrypted.
Training 20 Material on RPT 15-07-2014
21. Creating a new Datapool
Training 21 Material on RPT 15-07-2014
23. If you want to Import a Datapool as a .csv file you can do as follows :
Training 23 Material on RPT 15-07-2014
24. EExxaammppllee ffoorr CCoorrrreellaattiioonn && DDaattaappooooll
To help you work with correlated data, the test editor uses color coding and
provides navigational aids:
• When you click a page, you see a Test Data table for that page. By default,
related datapool candidates are shown in green text on a light green background,
values that are already associated with a datapool are shown in white text on a
green background, and references are shown in blue text.
Test data table
Training 24 Material on RPT 15-07-2014
25. If correlated data is not displayed, right-click the table and verify that Show
References is selected. To navigate directly to a page request containing
correlated data, double-click a table row. To associate correlated data from this
table with a datapool, click the row, click Substitute, and then click Select Data
Source to open the Select Data Source window. You can also use the Test Data
Sources view to make substitutions. In the test editor, right-click the Test Data
table, and then select Link with Test Data Sources View. When you click a row
in the Test Data table, the Test Data Sources view displays information about the
selected substitution site.
When you expand a page, green text indicates page requests that contain
datapool data or candidates. Blue text indicates page requests that contain
references.
Training 25 Material on RPT 15-07-2014
27. When you click a highlighted request, datapool candidates are highlighted in light
green, data that is associated with a datapool is highlighted in dark green, and
correlated data is highlighted in red. If you right-click a value for correlated data, as
shown in the example, you can then click Go To to see its reference:
Training 27 Material on RPT 15-07-2014
28. VVeerriiffiiccaattiioonn PPooiinnttss
Verification Points are a way to do the following things:
Detect problems in an application, such as: Does the Web page contain the
expected information? Is this the expected window?
The following are the Major verification points are included in Test Perspective:
Content Verification Point - searches for a specific string on a page.
Page Title Verification Point - compares the page title against the recorded title.
Response Code Verification Point - compares the HTTP code returned against the
recorded code.
Response Size Verification Point - compares the page size returned against the
recorded size.
Training 28 Material on RPT 15-07-2014
30. EExxeeccuuttiinngg SSccrriipptt
For this we need to create Schedule.
Schedules are more useful if you want to execute with more number of users.
How to Create a Schedule?
Path : File > Performance Schedule > Select Performance Test Project > Schedules > Enter a
Name for Schedule > Next > Select Number of Users > Finish
Note : we can select only 5 users for Trial Version of RPT
Creating a new Schedule
Training 30 Material on RPT 15-07-2014
36. HHooww ttoo RRuunn SSccrriipptt??
Its very Simple to run a Script.
Just save the changes that you have done previously and Click on
Run”.
Training 36 Material on RPT 15-07-2014
37. HHooww ttoo EExxeeccuuttee MMuullttiippllee SSccrriippttss iinn
DDiiffffeerreenntt RReemmoottee MMaacchhiinneess??
To delegate the test run to three remote machines, it is
preferable to create three user groups, with each assigned
to run on one remote machine.
Training 37 Material on RPT 15-07-2014
38. CCoonnffiigguurree tthhee tteesstt sscchheedduullee ttoo rruunn tteessttss
rreemmootteellyy
Add Two more User Groups to the Previously Created One like as follows
:
Training 38 Material on RPT 15-07-2014
39. Select User Group 1. From the Schedule Element Details > Group
size section, select Percentage, and enter 40 for the value. Repeat
this step for User Group 2 (value 30) and User Group 3 (value 30).
The combined size of all three groups should total 100%.
Training 39 Material on RPT 15-07-2014
40. Add a remote location to each user group:
Select User Group 1.
Under Schedule Element Details, click Run this group on the following
locations.
Click Add New below that to create a new remote location.
Training 40 Material on RPT 15-07-2014
42. Add the detailed information for the first remote machine, and then
click Finish. Each user group will be assigned to a different remote
machine. The Deployment Directory will be created on the remote
machine to store the runtime information
Training 42 Material on RPT 15-07-2014
44. After this information is added successfully, the remote machine will be
listed in the location table
Repeat these steps to add remote locations for User Group 2 and User
Group 3.
When you have finished, use CTRL+S to save all settings and changes.
Training 44 Material on RPT 15-07-2014
46. RReeppoorrttss
Major Types of Reports
The results of your performance test are easily accessible to you. With Performance Tester,
results are generated dynamically during a run. You can also regenerate the results for
viewing and analysis after a run. Performance has by default eight types of reports:
Overall Report--contains information on the progress of the state of the run and a bar chart
showing the overall success of the run
Summary Report--displays the most significant data to the test run and lets you analyze
the final or intermediate results
Page Performance--displays the average response of the slowest 10 pages in the test as the
test progresses
Response vs. Time Summary--displays the average response trend as graphed through
time
Response vs. Time Detail--displays the response trend as graphed through time
Page Throughput--presents an overview of the frequency of results being transferred per
interval
Server Health Summary--presents an overall indication of how well the server is
responding to the load
Server Health Detail--displays specific details for the 10 least successful pages
Training 46 Material on RPT 15-07-2014
48. There are also the Display Report and Display Transaction Report options.
For example, to display the Transaction Report, you can either select Display
Transaction Report directly or Display Report, which lists Transaction
Report as one of the report options. Display Report allows you to select from
all of the available reports, including your custom reports.
Training 48 Material on RPT 15-07-2014