Restricting actions during the recording and playing back of tests with start application

You can restrict the recording of tests to capture only the actions that you perform on the start application. The playing back of such a test performs the recorded actions only on the instance of the start application associated with the test and reduces the overall playback time.

About this task

When you restrict the recording and playing back of tests that use a start application, the recording of a test does not capture any unnecessary click actions that you might perform on other active instances of the start application.

For information about how to add a start application to a test, refer to Related Links.

If you enable the Limit Record/Playback to StartApp applications only option, the following changes are applied to the recording and playing back of tests that use a start application:
  • The recording monitor captures only the actions that you perform on the instance of the start application associated with the test during recording.
  • The playing back of the test performs the verification points and data-driven commands only on the instance of the start application associated with the test.
  • If you use the Find the object option to insert an object when an ObjectNotFound exception is displayed during playback, you can select only the missing objects from the instance of the start application associated with the test.
    Note: In HCL OneTest UI running on Linux, you cannot insert an object by using the Find the object option when an ObjectNotFound exception is displayed. Therefore, you must disable the Limit Record/Playback to StartApp applications only option and then play back the test.
  • If you have a test that has find()methods, the playing back of the test performs the find()method based actions only on the instance of the start application associated with the test and reduces the overall playback time.
Note: The feature to restrict the recording and playing back of tests that use a start application does not apply to browsers during playback.

Procedure

  1. Go to Window > Preferences > Functional Test in HCL OneTest UI.
  2. Select Limit Record/Playback to StartApp applications only.
    Important: If you remove the start application from the test, then the playback is not restricted to the start application associated with the test.

Results

You have restricted the recording of tests to capture only the actions that you perform on the start application.