Use the New Script command to create a script by manually organizing actions instead of by recording. Creating a script manually requires detailed knowledge of the script actions' settings and criteria. For more information, see the Advanced Scripting Guide.
From the File menu, select New Script. The script settings window appears, with the Profile tab displayed.
If the profile is not displayed, click the Script button to display the script settings tabs.
If you have defined global preferences, the default profile is automatically applied.
Define such details as whether the script is for a browser or a mobile device, headers, any parameters the script requires, whether the script includes Flash or Silverlight, any client certificates required, and host or IP mapping for the target hosts.
The default name New Transaction is displayed above the Profile tab. Click edit name to assign a unique name to the script.
Add actions to the timeline at the top of the Recorder window.
Click the action separator line to the right of the Script button to add an action.
It is recommended that you add a test at the end of the script whenever possible to make sure the script ends correctly. Add a Validate action for each page to ensure that the script executes correctly and without content errors.
If the script includes interactions with Flash objects, see Recording and playing back Flash for more information.
During the recording of a script, if the agent encounters an HTTP authentication request and prompts you for the username and password, these credentials are inserted in the step.
You can also add this information manually to the step after you finish recording:
- Click the step name in the timeline.
- If necessary, click the small right-pointing arrow next to the step name below the timeline to display the HTTP Authentication fields.
- Enter the Username and Password for basic or digest HTTP authentication. For NT LAN Manager (NTLM), also enter the Machine Name and the Domain Name.
The information is saved automatically.