- Click Find Next or Find Previous on the Step through TrueLog dialog box to browse through all WebPageSubmit calls in the TrueLog (these are the calls that are candidates for user-data customization).
- Note: Highlighted HTML controls in Post Data view identify form fields that can be customized.
- On the Post Data page, right-click the form control that you want to customize and choose Customize Value. You can replace the recorded values with various types of input data (including predefined values from files and generic random values) and generate code into your test script that substitutes recorded input data with your customizations. The Parameter Wizard opens.
- With the Parameter Wizard you can modify script values in two 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.
- After you create a new parameter, that parameter is added to the existing parameters and is available for further customizations.
- Click the Create new parameter option button and then click Next to create a new parameter. The Create New Parameter page opens.
- Click the Parameter from Random Variable option button and then click Next. The Random Variable page opens.
- From the list box, select the type of random variable that you want to insert into your test script and then click Next. A brief description of the selected variable type appears in the lower window. The Name the variable and specify its attributes page opens.
- Enter a name for the variable in the Name text box.
- Specify whether the values should be called in Random or Sequential order. The Strings from file random variable type generates data strings that can either be selected randomly or sequentially from a specified file.
- In the File group box, select a preconfigured data source from the Name list box and then click next. The Choose the kind of usage page displays.
- Specify the new random value to use by selecting one of the following choices:
- Per usage
- Per transaction
- Per test
- Click Finish. Your test script now uses the random variable for the given form field in place of the recorded value. The new random variable function appears on the BDL page.
- Initiate a Try Script run with the random variable function in your test script to confirm that the script runs without error.
Categories