This task describes the process of synchronizing steps in TruClient Scripts.
Interactively record the business process
Identifying the End Event
Before enhancing a TruClient script, replay the script to synchronize the steps. During the first script replay, TruClient will try to automatically identify the End Event for each step.
An End Event can be one of the following:
- Automatic: Not Set Yet. The automatic end event has not yet been determined.
- Automatic: Timers Ended. The automatic end event whenever TruClient identifies either the
- Action Completed. Step ends when its action is completed. An example of an action is a button click.
- DOM content loaded. Step ends when the page's Document Object Model (DOM) is ready. This means that the API for interacting with the content, style and structure of a page is ready to receive requests from your application client side code.
Step synchronous network completed. Step ends when all HTTP requests have been completed excluding requests that are associated with open connections that are not relevant to the step. Usually, these requests are triggered by using XMLHttpRequest.
- Document load. Step ends when the process of loading a document is completed. This means that all scripts and stylesheets have finished loading and have been executed, and all images have been downloaded and displayed.
- Step network completed. Step ends when all HTTP requests have completed including requests initiated by XMLHttpRequest.
- Dialog opened. Step ends when a dialog box is opened.
If during the first replay, a step initiates the Object Identification Assistant to resolve object identification, the previous step's End Event will most likely be misidentified and TruClient will automatically reset it to Automatic: Not Set Yet.
Confirming the End Event
During the second script replay, TruClient confirm the Automatic End Event and will assigned any step's End Event that had been reset to Automatic: Not Set Yet.
If TruClient is unable to assign an automatic End Event during replay, usually due to a network timeout, a warning message will inform you that the End Event has been reset to Automatic: Not Set Yet. Replay the script to automatically assign the End Event or assign the End Event manually.
Note: You may need to replay the script several times until all steps have been accurately synchronized.