Recording scripts for an AUT with different user credentials

When an application under test (AUT) is configured with a different user credential by using a batch file on the Windows operating system, you can record scripts for the AUT.

Before you begin

You must have completed the following tasks:

About this task

You can either create a new test script or insert a recording in an existing script for an AUT that is configured with a different user.

To record the test scripts, you must ensure that you start HCL OneTest UI as an administrator. With the administrator privilege, you can record scripts for the AUT with different user credentials.

Procedure

  1. Start HCL OneTest UI as an administrator.
  2. Perform any of the following actions:
    • Go to Step 3 to create a new script.
    • Go to Step 4 to insert the recording into an existing script, if you have an existing script.
  3. Perform the following steps in the Functional Test perspective:
    1. Click File > New > Functional Test Script Using Recorder.
      The Record a Functional Test Script page is displayed.
    2. Select the project to which the script must be associated.
    3. Type a name for the script.
    4. Click Finish.
      The Recording Monitor toolbar is displayed.
    5. Go to step 5.
  4. Perform the following steps in the Functional Test perspective:
    1. Open the script.
    2. Place the cursor in the script where you want to insert the recording.
    3. Click Script > Insert Recording.
      The Recording Monitor toolbar is displayed.
    4. Go to step 5.
  5. Click Start Application on the Recording Monitor toolbar.
    The Start Application dialog box is displayed.
  6. Select the batch file that is configured to start the AUT, and then click OK.
    The AUT is started for recording.
  7. Perform the actions that you want to record.
  8. Close the AUT.
    Note: You can close the AUT, if you want to record the close action.
  9. Click Stop Recording when the recording is complete.

Results

You have recorded scripts for an AUT with different user credentials by using a batch file.

What to do next

You can play back the recorded test. See Running a script from HCL OneTest UI.