15 Using the JD Edwards Load Test Module

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

15.1 About the JD Edwards Load Test Module

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

15.1.1 Key Features of the JD Edwards Load Test Module

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

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

15.2 Recording JD Edwards Load Tests

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

15.2.1 Recording JD Edwards Load Test Scripts

To record JD Edwards Load Test scripts:

  1. Start OpenScript.

  2. Set the JD Edwards Load Test Correlation preferences.

  3. Select New from the File menu.

  4. Expand the Load Testing group.

  5. Select Oracle JD Edwards EnterpriseOne (The JD Edwards script combines both HTTP and JD Edwards 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.

15.3 Playing Back Scripts

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

The JD Edwards 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 JD Edwards Load scripts can be viewed in the Results and Console views.

15.3.1 Playing Back JD Edwards Load Scripts

To play back JD Edwards Load scripts:

  1. Start OpenScript.

  2. Open the JD Edwards 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.

15.3.2 Playing Back JD Edwards Load Scripts with Iterations

To play back JD Edwards Load scripts with iterations:

  1. Start OpenScript.

  2. Open the JD Edwards 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.

15.4 Setting JD Edwards Load Test Correlation Preferences

To set Setting JD Edwards 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 JD Edwards Load Testing Module.

  5. Expand the JD Edwards 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.

15.5 JD Edwards Load Test Correlation Library

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

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

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

  • Time Stamp - Function/Text Substitution - this rule locates text in the HTML matching the Regular Expression pattern timestamp=((\d{13,})) and replaces it with the function name {{@timestamp}} in the location specified by the Regular Expression timestamp=((\d{13,})).

  • GLOBAL_RI - Variable Substitution - this rule locates text in the HTML matching the Regular Expression pattern <input type=hidden name="globalRID" value="(.+?)"> and replaces it with the variable name GLOBAL_RID in the location matching the Regular Expression RID=((.+?))(&|$).

  • JdeMafJasLinkTarget - Variable Substitution - this rule locates text in the HTML matching the Regular Expression pattern &jdemafjasLinkTarget=E1MENUMAIN_(.+?)&RENDER_MAFLET and replaces it with the variable name JdeMafJasLinkTarget in the location matching the Regular Expression jdemafjasLinkTarget=E1MENUMAIN_((.+?))(&|$.

  • JdeMafJasCacheUid - Variable Substitution - this rule locates text in the HTML matching the Regular Expression pattern <input type=hidden name="jdemafjascacheUID" value="(.+?)"> and replaces it with the variable name JdeMafJasCacheUid in the location matching the Regular Expression jdemafjascacheUID=((.+?))(&|$).

  • JdeMafJasUID - Variable Substitution - this rule locates text in the HTML matching the Regular Expression pattern <input type=hidden name="jdemafjasUID" value="(.+?)"> and replaces it with the variable name JdeMafJasUID in the location matching the Regular Expression jdemafjasUID=((.+?))(&|$).