Recording Tests

When you record a test, PTF monitors each action you perform in the target application and creates a corresponding step in the test.

PTF Recorder populates these fields for each step:

  • Seq

  • ID

  • Active

  • Type

  • Action

  • Recognition

  • Parameters

  • Value

This example illustrates the fields and controls associated with the test steps. You can find definitions for the fields and controls later on this page.

Example of test steps

Seq and ID are system-generated fields.

Recognition, Parameters, and Value are not used with some actions, such as Browser.Start or Page.Save.

The Comment field is populated by the test developer to document the test.

In the Comments dialog, apart from entering text, you can insert timestamp also.

See Using the Test Editor.

In addition to simply recording your interaction with the target application, the test recorder enables you to add steps to perform the following functions:

  • Verify the value in a page control.

  • Check for the existence of a page element.

  • Get a property of a page element.

  • Populate a variable.

  • Insert an entry in the run log.

  • Insert a conditional construct.

  • Reference scrolls.

  • Reference HTML table cell contents.

  • Add or modify step comments.

To record a test:

  1. Create a new test or open an existing test.

  2. If you are recording within an existing test, highlight a test step. The system inserts the steps in the new recording following the highlighted step. If you are recording a new test, recording typically begins at Step 2. By default, Step 1 is Browser.Start, or Browser.Start_Login, depending on your configuration options.

  3. With a test open, select Test, Open Test Recorder or click the Show Test Recorder button in the toolbar.

  4. PTF client launches the PTF Recorder as a browser application where you can open the PeopleSoft application page and start recording.

    Note: To record a test, use the PTF Recorder with Chrome and Microsoft Edge browsers.

    For instructions, see Using the PTF Recorder with Chrome and Microsoft Edge

  5. Hook a browser, that is, associate a PeopleSoft application browser with the test.

    To hook, click the Start Web Client icon on the PTF Recorder browser application.

  6. Click the Start Recording icon in the PTF Recorder browser application.

  7. Perform the test steps in the PeopleSoft application.

  8. As needed, add actions directly on the page elements on the PeopleSoft Application pages.

  9. Modify steps by pausing the session and editing the step in the PTF Recorder. The Edit Selected Step window appears when you highlight a recorded step to edit. The editable parameters of the selected step are displayed in this window.

  10. Click the Stop Recording icon in the PTF Recorder browser application to end the recording and write the steps to the test.

  11. Save the test.

Inspect Page Elements

While recording a test script, use the browser's inbuilt element inspector to inspect the page elements such as types, IDs, properties, and styles.

This example illustrates the fields and controls associated with the element Inspector.

Inspect Page Elements