Customizing Oracle Forms User-Input Data

Under real world conditions, Web application users submit unpredictable combinations of data into forms. One goal of effective Web application testing is to emulate such irregular and diverse user behavior using test scripts.

You can customize the user-input data that is entered into forms during testing with the TrueLog Explorer Parameter Wizard. The Parameter Wizard lets you specify values to be entered into form fields, enabling your test scripts to be more realistic by replacing recorded user input data with randomized, parameterized user data.

  1. Select a node in the TrueLog menu tree that includes user-data input. You can customize the input values of controls that have yellow backgrounds.
  2. Right-click in the Value column of a control and choose Customize Value. With the Parameter Wizard, you can modify script values in either of the following ways:
    • Use an existing parameter that is defined in the dclparam or dclrand sections of your script.
    • Create a new parameter based on a new constant value, random variable, or values in a multi-column data file.
  3. Click the Create new parameter option button.
    1. Click Next
    The Create New Parameter dialog box opens.
  4. Click the Parameter from Random Variable option button.
    1. Click Next
    The Random Variable Wizard opens.
  5. Select the type of random variable you want to insert into your test script from the list box A brief description of the highlighted variable type appears in the lower pane.
    1. Click Next
    The Name the variable and specify its attributes page appears. The Strings from file random variable type generates data strings that can either be selected randomly or sequentially from a specified file.
  6. Type a name for the variable in the Name field.
    1. Select the order in which the values are to be called.
    • Random
    • Sequential
  7. Select a preconfigured datasource from the File/Name list box. Alternative: New random variable files can be created by clicking New.
  8. Select Per test random value generation.
    1. Click Finish.
    This modifies the BDL form declaration of your test script so that it uses the random variable for the given form field in place of the recorded value. The new random variable function appears below in BDL view.

Initiate a Try Script run with the random variable function in your test script to confirm that the script runs without error.