13 Using the Hyperion Load Test Module

This chapter provides instructions on configuring and using the OpenScript Hyperion Load Test Module, which provides support for load testing of Hyperion applications.

13.1 About the Hyperion Load Test Module

The Hyperion Load Test Module is an extension module to the OpenScript HTTP Module that extends the Web testing with Hyperion-specific correlation rules.

13.1.1 Key Features of the Hyperion Load Test Module

  • The Hyperion Load Test Script Module. The New Project wizard (New from the File menu) includes an "Oracle Hyperion" option in the Load Test Group to use when creating Hyperion load testing projects in OpenScript.

  • Correlation Library. The Hyperion Load Test Module includes a Hyperion-specific library of correlation rules for parameterizing HTTP scripts.

13.2 Recording Hyperion Load Tests

The Hyperion Load Test Module records Hyperion-specific correlation rules into HTTP load testing scripts for automating testing of Hyperion EnterpriseOne applications.

13.2.1 Recording Hyperion Load Test Scripts

To record Hyperion Load Test scripts:

  1. Start OpenScript.

  2. Set the Hyperion Load Test Correlation preferences.

  3. Select New from the File menu.

  4. Expand the Load Testing group.

  5. Select Oracle Hyperion (The Hyperion script combines both HTTP and Hyperion technologies as part of the same script).

  6. Click Next.

  7. Select the Repository and Workspace.

  8. Enter a script name.

  9. Click Finish. A new Script tree is created in the Script View.

  10. Select Record from the Script menu. The browser automatically opens when you start recording.

  11. Load the web page where you want to start recording into the browser.

  12. Navigate the web site to record page objects, actions, and navigations. The page objects, actions, and navigations will be added to the node of the script tree specified by the Set Record Section setting (the Run node is the default).

  13. When finished navigating pages, close the browser.

  14. Select Stop from the Script menu or click the Stop button on the OpenScript toolbar.

  15. Expand the Run node of the script to view the page objects, actions, and navigation nodes in the script tree.

    You can customize the script using the menu options or the Code View for specific testing requirements.

    Note:

    Do not close the script editor view or script project while recording or playing back scripts. Doing so could result in unpredictable behavior in the OpenScript application.

13.3 Playing Back Scripts

OpenScript plays back recorded Hyperion actions. The actions used for playback will either be those that are recorded or specified manually in the Java Code view.

The Hyperion Load Test Module uses the OpenScript playback and iterate toolbar buttons which allows users to start the script playback for either a single playback through the script or multiple iterations using data from a databank file. Playback results for Hyperion Load scripts can be viewed in the Results and Console views.

13.3.1 Playing Back Hyperion Load Scripts

To play back Hyperion Load scripts:

  1. Start OpenScript.

  2. Open the Hyperion Load script to play back.

  3. Select Playback from the Script menu or click the toolbar button.

    You can view the progress of the script playback in the Console View. You can review the results of script playback in the Results View.

13.3.2 Playing Back Hyperion Load Scripts with Iterations

To play back Hyperion Load scripts with iterations:

  1. Start OpenScript.

  2. Open the Hyperion Load script to play back.

  3. Select Iterate from the Script menu or click the toolbar button.

  4. Select Use Databanks.

  5. Select which databank file to specify the settings for if more than one database is configured for the script.

  6. Specify the settings for the databank file.

  7. Select the Run no more than [ ] iterations option and set the iteration count to the desired number of playback iterations. See Section 4.2.4, "Playing Back Scripts With Iterations" for additional information about iteration settings.

  8. Click OK.

    You can view the progress of the script playback in the Console View. You can review the results of script playback in the Results View.

13.4 Setting Hyperion Load Test Correlation Preferences

To set Setting Hyperion Load Test Correlation preferences:

  1. Start OpenScript.

  2. Select OpenScript Preferences from the View menu.

  3. Expand the OpenScript node and the Correlation category.

  4. Select Hyperion Load Testing Module.

  5. Expand the Hyperion Load Test library.

  6. Select or clear the check boxes to enable or disable specific rules.

  7. Click the Add or Edit buttons to modify rules in the library.

  8. Click OK.

13.5 Hyperion Load Test Correlation Library

The Hyperion Load Test Module includes a correlation library that automatically recognizes and substitutes Hyperion parameters with OpenScript variables and functions during script recording. The script nodes show the Hyperion entities included in the page navigation. The HTTP recorder automatically recognizes and parameterizes Hyperion entities for Load testing.

Additional libraries and rules can be added using the OpenScript Correlation library Preferences for Hyperion Load Test.

The Hyperion correlation library defines the correlation rules for Hyperion-based applications. The correlation rules specify the variable names and regular expressions to use to replace dynamic data in Hyperion applications and navigations. The default Hyperion correlation library provided with the OpenScript Hyperion Load Test Module includes the following correlation rules:

  • ssoToken- Variable Substitution - this rule locates text in the HTML matching the Regular Expression pattern _multiline_<token><!\[CDATA\[(.+?)]]> </token> and replaces it with the variable name ssoToken in all locations.

  • repositoryToken- Variable Substitution - this rule locates text in the HTML matching the Regular Expression pattern _multiline_'sessionId':'(.+?)' and replaces it with the variable name repositoryToken in all locations.

  • ssnkey - Variable Substitution - this rule locates text in the HTML matching the Regular Expression pattern name="ssnkeystate" value="(.+?)" /> and replaces it with the variable name ssnkey in all locations.

  • viewState - Variable Substitution - this rule locates text in the HTML matching the Regular Expression pattern ViewState" value="(.+?)"> and replaces it with the variable name viewState in all locations.

  • afrLoop - Variable Substitution - this rule locates text in the HTML matching the Regular Expression pattern _afrLoop=(.+?)" and replaces it with the variable name afrLoop in all locations.

  • ctrlState - Variable Substitution - this rule locates text in the HTML matching the Regular Expression pattern _adf.ctrl-state=(.+?)"> and replaces it with the variable name ctrlState in all locations.

  • asserterToken - Variable Substitution - this rule locates text in the HTML matching the Regular Expression pattern _multiline_<assertertoken> <!\[CDATA\[(.+?)]]></assertertoken> and replaces it with the variable name asserterToken in all locations.

  • extraToken - Variable Substitution - this rule locates text in the HTML matching the Regular Expression pattern ExtraToken = "(.+?)" and replaces it with the variable name extraToken in all locations.

  • headers - Correlate Headers - this rule implements the default Correlate Headers correlation rules for Hyperion applications that use dynamic headers.

  • bpmui - Variable Substitution - this rule locates text in the Response Header matching the Regular Expression pattern X-ORACLE-BPMUI-CSRF: (.*)(?:\\r|$) and replaces it with the variable name bpmui in all locations.

  • reportId - Variable Substitution - this rule locates text in the HTML matching the Regular Expression pattern REPORTID="(.+?)" and replaces it with the variable name reportId in all locations.

  • SmartView sID - Variable Substitution - this rule locates text in the HTML matching the Regular Expression pattern <sID>(.+?)</sID> and replaces it with the variable name sID in all locations.

  • SmartView sso - Variable Substitution - this rule locates text in the HTML matching the Regular Expression pattern <sso>(.+?)</sso> and replaces it with the variable name sso in all locations.