RPT Tutorial
RPT Tutorial
Tester
Sindhu.T ( Glowtouch Technologies )
Rational Performance Tester
Long-term Goal
Correlation
Data-pooling
Error Handling
Verification Points
Transaction Points
Loops
Custom Codes
What is Correlation?
Correlation is nothing but Handling the Dynamic Data generated by Server.
We will Correlate the Values like Ids which are unique to each user.
Correlation
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
What is Datapool?
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.
Procedure for Creating Datapool
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.
If you want to Import a Datapool as a .csv file you can do as follows :
Verification Points
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?
Enforce an Service Level Agreement so that you can verify that each page in the transaction sequence to multiple
pages is correct
The following 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.
Custom is Java™ API available only when custom code is added to a test.
Contain Verification Point verifies the service message return object. The verification passes when the message
return object contains the specified XML data.
Equal Verification Point verifies the service message return object. The verification passes when the message
return object matches the specified XML data.
Query Verification Point verifies the number of nodes that are returned by an XPath query. The verification passes
when the number of nodes that are returned by an XPath query matches the expected number of nodes
specified in the verification point.
Attachment Verification Point verifies the service message return attachment. The verification passes when the
return attachment matches all of the criteria specified in the verification point.
Remember: The last four verification points only apply to Web Services/SOA scripts that are developed with
Rational Performance Tester version 8.0.
Executing Script
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