Rational Rational Performance Tester Performance Tester ---------------------------- T. Sindhu Software Engineer Training Material on RPT 1 15-07-2014
Jun 23, 2015
Rational Rational Performance Performance
TesterTester
----------------------------
T. SindhuSoftware Engineer
Training Material on RPT1 15-07-2014
Training Material on RPT2 15-07-2014
ContentsContents1)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?
3 Training Material on RPT3 15-07-2014
Basics of RPTBasics of RPT
Training Material on RPT4 15-07-2014
What is RPT?What is RPT?
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.
Long-term GoalLong-term Goal
Training Material on RPT5 15-07-2014
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
Features of RPTFeatures of RPT
Training Material on RPT6 15-07-2014
Code-free testing Root cause analysis tool Real-time reporting Test data Load Testing
Training Material on RPT7 15-07-2014
ScriptinScriptingg
Training Material on RPT8 15-07-2014
How to do How to do ScriptingScripting ? ?
First Create “Performance Test Project”
File > New > Performance Test Project
Training Material on RPT9 15-07-2014
Select all Components required for your Project
Training Material on RPT10 15-07-2014
Choose the Recording Type as “Http Recording”
Training Material on RPT11 15-07-2014
Another window opens with Your Project and Components.
Select Your Project and in that Tests Component.
Training Material on RPT12 15-07-2014
Select Browser
Training Material on RPT13 15-07-2014
And also related to the Browser Options
Training Material on RPT14 15-07-2014
Recording window will open as follows:
Training Material on RPT15 15-07-2014
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 Material on RPT16 15-07-2014
Elements of RPTElements of RPT
Major Elements of RPT are :Major Elements of RPT are :
CorrelationData-poolingError HandlingVerification
PointsTransaction
PointsLoopsCustom Codes
Training Material on RPT17 15-07-2014
What is What is Correlation?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.
Training Material on RPT18 15-07-2014
CorrelationCorrelation
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 Material on RPT19 15-07-2014
What is What is Datapool?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.
Training Material on RPT20 15-07-2014
Procedure for Creating DatapoolProcedure 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.
Training Material on RPT21 15-07-2014
Creating a new Datapool
Training Material on RPT22 15-07-2014
Training Material on RPT23 15-07-2014
If you want to Import a Datapool as a .csv file you can do as follows :
Training Material on RPT24 15-07-2014
Example for Correlation & DatapoolExample for Correlation & Datapool
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 Material on RPT25 15-07-2014
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 Material on RPT26 15-07-2014
Training Material on RPT27 15-07-2014
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 Material on RPT28 15-07-2014
Verification PointsVerification 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?
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.
29 Training Material on RPT29 15-07-2014
ExecutioExecutionn
Training Material on RPT30 15-07-2014
Executing ScriptExecuting 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
Note : we can select only 5 users for Trial Version of RPT
Creating a new Schedule
Training Material on RPT31 15-07-2014
Training Material on RPT32 15-07-2014
Training Material on RPT33 15-07-2014
Training Material on RPT34 15-07-2014
Training Material on RPT35 15-07-2014
Training Material on RPT36 15-07-2014
How to Run Script?How to Run Script?
Its very Simple to run a Script. Just save the changes that you have done previously and Click on Run”.
Training Material on RPT37 15-07-2014
How to Execute Multiple Scripts in How to Execute Multiple Scripts in Different Remote Machines?Different Remote Machines?
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 Material on RPT38 15-07-2014
Configure the test schedule to run tests Configure the test schedule to run tests remotelyremotely
Add Two more User Groups to the Previously Created One like as follows :
Training Material on RPT39 15-07-2014
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 Material on RPT40 15-07-2014
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 Material on RPT41 15-07-2014
Training Material on RPT42 15-07-2014
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 Material on RPT43 15-07-2014
Training Material on RPT44 15-07-2014
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.
45 Training Material on RPT45 15-07-2014
AnalysiAnalysiss&&
ReportsReports
Training Material on RPT46 15-07-2014
ReportsReports
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 Material on RPT47 15-07-2014
ReportReport DisplayDisplay
OptionsOptions
Training Material on RPT48 15-07-2014
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 Material on RPT49 15-07-2014
Overall Report
Training Material on RPT50 15-07-2014
Summary Report
Training Material on RPT51 15-07-2014
Page Performance Report
Training Material on RPT52 15-07-2014
Response Vs Time Summary Report
Training Material on RPT53 15-07-2014
Response Vs Time Detail Report
Training Material on RPT54 15-07-2014
Page Throughput Report
Training Material on RPT55 15-07-2014
Server Health Summary Report
Training Material on RPT56 15-07-2014
Server Health Detail Report
Training Material on RPT57 15-07-2014