Recording Script for Web application:
- Click Model Script on the workflow bar. The Workflow – Model Script dialog box appears.
- Select one of the listed browsers from the Application Profile list, depending on the browser you want to use for recording.
- In the URL field, enter the URL that is to be recorded.
- Click Start recording. The Silk Performer Recorder dialog opens in minimized form, and the client application starts.
- To see a report of the actions that happen during recording, maximize the Recorder dialog by clicking the Change GUI size button. The maximized Recorder opens at the Actions page.
- Using the client application, conduct the kind of interaction with the target server that you want to simulate in your test. The interaction is captured and recorded by the Recorder. A report of your actions and of the data downloaded appears on the Actions page.
- To end recording, click the Stop Recording button. The test script is generated from the recorded traffic.
- In the ensuing dialog, name your test script and specify where to save it. In the Silk Performer Recorder message that appears, confirm that you want to close the Recorder.
Customize user data:
- Without user-input data customization, all simulated transactions are identical and do not account for the variables that are typically experienced in real world environments.
- For example, you can customize the user-input data that is entered into forms during testing using the Parameter Wizard. The Parameter Wizard lets you specify the values that are to be entered into form fields during testing. This enables test scripts to be more realistic by replacing recorded user-input data with randomized, parameterized user data.
Customize Session handling:
This task explains the process of creating a parameter based on a random variable.
- Click Customize User Data on the workflow bar. The Workflow – Customize User Data dialog box opens.
- Click the Customize user input data in HTML forms link. TrueLog Explorer then performs the following actions:
- Selects the first WebPageSubmit API call node in the menu tree.
- Opens the Step through TrueLog dialog box (with the Form submissions option button selected).
- Displays Post Data view
- Post Data view shows the page that contains the HTML form that was submitted by the selected WebPageSubmit call. The submitted form’s controls are highlighted; a green border around a control indicates that the submitted value is the same as the initial value (and was not changed by the user during recording). A red border indicates that the submitted value differs from the initial value (and was altered during recording). When your cursor passes over a form control, a tool tip shows the control’s name in addition to its initial and submitted values; an orange line indicates the corresponding BDL form field declaration in Form Data view below.