+

Search Tips   |   Advanced Search

 

Create performance test example


Contents

  1. Create a new project
  2. Create a new test to record the test scenario
  3. Record the test scenario
  4. Create a data pool to replace the user ID and password value in the test
  5. Reference PortalTest to use the data pool value
  6. Associate the user ID and password values with the data pool column
  7. Create performance schedules
  8. Add PortalTest to PortalSched
  9. Configure response time breakdown for data collection
  10. Run the Portal test and review the reports
  11. Resources


Create a new project

  1. Start web app

  2. Start RPT, and click OK in the default workspace location to store the test projects

  3. In the Test Navigator, right-click to display the menu.

  4. Select...

      New | Performance Test Project

  5. Enter the Project Name as PortalProject, and check Use default location.

  6. Click Finish to create the project.



Create a new test to record the test scenario

  1. After the project is created, the Create New Test from Recording window will open.

  2. Check Create Test from New Recording and select HTTP Recording. Click Next.

  3. For location of test suite, select the PortalProject. In the Test file name field, enter PortalTest.

  4. Click Finish to start initializing the recorder.


Record the test scenario

  1. The RPT recorder will open a new browser after it is initialized.

  2. In the browser, pull up portal

  3. Log on to the portal and click around..

  4. Click Logoff and then close the browser.

  5. The control will return to RPT to process the recording

  6. When the KBytes record panel stops incrementing...

    ...you will be asked to open the Test Editor


Create a data pool to replace the user ID and password value in the test

  1. Right-click project name in Test Navigator and select...

      New | Datapool

  2. In parent folder field, enter PortalProject.

    In the Name field, enter PortalDatapool.

  3. Click Next.

  4. For Description, enter...

      Datapool for the login credentials

    For Initial Table Dimension | Number of Variables, enter 2 column.

  5. Click Finish.

  6. Next, click the Variable1 column, and the Edit Variable window will open.

  7. Name the column LoginID and, for Type, enter String. Then click OK.

    The data pool will contain five different user login IDs, numbered uid0 through uid4

    User ID Password
    uid0 xxxxx
    uid1 xxxxx
    uid2 xxxxx
    uid3 xxxxx
    uid4 xxxxx

    To add a line for the next record, press Enter or right-click on the last record and select Add Record.

    Use CRTL-S to save the data pool.

  8. For each of the above IDs, create an account in Portal using same credentials.


Reference PortalTest to use the data pool value

  1. In the Test Navigator, click PortalTest to open the property page.

  2. Right-click PortalTest and select...

      Add | Datapool

  3. When the Import Datapool window opens, select the following:

      Matching resources: PortalDatapool.datapool.
      Open mode Shared (per machine)
      Wrap when the last row is reached checked

  4. Click Select to accept the PortalDatapool.data pool for the PortalTest. The Test Element Details will be updated with the data pool information.

  5. To save the changes, use CTRL+S.


Associate the user ID and password values with the data pool column

  1. In the Test Navigator, click PortalTest to open the property page.

  2. Select test page with login credentials...

  3. Click the uid value...

  4. ...and then select...

      Substitute | Select Data Source

  5. Select "LoginID".

  6. Do the same for the password, selecting the "Password" variable.

  7. The userid and password value will be highlighted in green to indicate the association

  8. Save changes.


Create performance schedules

  1. In the Test Navigator, right-click PortalProject to display the menu, and then select...

  2. In the Performance Schedule window, enter PortalSched as the name for the schedule.

    The Schedule Options property window shows one user group.


Add PortalTest to PortalSched

  1. In the Performance Schedule property window, right-click on User Group 1, and select...

      Add > Test

  2. In the Select Performance Tests window, expand the PortalSched and select PortalTest.

  3. The test is added to the schedule under User Group 1.

  4. Save changes.


Configure response time breakdown for data collection

Response time breakdown is configured in a the schedule, and is used to collect statistics on a captured page element when the test runs. Response time breakdown shows how much time was spent on each page that was captured in the test.

  1. Verify Agent Controller service is running

  2. Instrument portal server

  3. This will take a few minutes to complete...

  4. In Schedule Element Details, click >>, go to Response Time Breakdown tab, and select...

    • Enable collection of response time data
    • PortalTest

  5. Scroll down, and in Options section, select High as the detail level

  6. Select...

      Only sample information from a subset of users | Fixed number of users

    ...and enter 2 for per User Group.

  7. Save the changes (CTRL+S).

  8. Open the test and set reasonable think times for each page...

  9. Save the changes (CTRL+S).


Run the Portal test and review the reports

  1. Start DCI monitoring

  2. Click PortalSchedule and click the Run button

    RPT will launch the schedule, collect the data, and display the results in reports when the collection is finished.

  3. Scroll through the different tabs to view the reports.

  4. In the Performance Test Runs view, right-click a report and select...

      Export

      To HTML

    For other reports, right-click PortalSchedule and select Display Report from the menu

  5. Enter location of report...

  6. Here is example output...


Resources

  1. IBM RPT InfoCenter
  2. RT523: Essentials of IBM RPT V7.0
  3. Performance Tester area on developerWorks Rational
  4. developerWorks Rational zone newsletter
  5. Technology bookstore
  6. IBM Rational Software Development Platform V7.0 - Desktop Product Activation
  7. IBM Partner World Software Access Catalog
  8. developerWorks blogs
  9. developerWorks community

 

Next - Run remote test with increased user loads