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:
- Created a batch file that includes commands to start the AUT as a different user.
- Configured the batch file as an application for testing. See Configuring applications for testing.
- Read about creating a new test script without recording and recording in an existing script. See Creating a new test script without recording and Recording scripts in an existing script.
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
- Start HCL OneTest™ UI as an administrator.
- Perform any of the following actions:
-
Perform the following steps in the Functional
Test perspective:
-
Perform the following steps in the Functional
Test perspective:
-
Click Start Application on the
Recording Monitor
toolbar.
The Start Application dialog box is displayed.
-
Select the batch file that is configured to start the AUT, and
then click OK.
The AUT is started for recording.
- Perform the actions that you want to record.
-
Close the AUT.
Note: You can close the AUT, if you want to record the close action.
- 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.