To make it easier to insert steps to existing Test Scenarios, Autify offers [Local Replay]. This feature automatically performs operations of the Test Scenario until it reaches a certain point, where you can insert an additional step.
For example, let’s say the Test Scenario checks whether a text is correctly displayed on a page after logging in, and you want to add the target text. Before recording the additional step, instead of manually logging in to display the target page, [Local Replay] will perform the login step for you!
How to use [Record Here]
For example, if you want to insert a new step between steps 5 and 6 of the following Test Scenario:
Click the [+] button between steps 5 and 6 and select [Record here] to launch the recording window. The operations up to step 5 will be performed automatically.
The following dialog box will appear while [Local Replay] is running:
The following dialog box will appear if it successfully replays the steps preceding the point where you wish to insert the new step. You can now record operations (such as clicks and inputs) or add various assertions, just like you would when recording a new step.
* If [Local Replay] is interrupted, please see section 2.3 of this article.
Differences between [Local Replay] and [Run Now]
[Local Replay] is a feature that automatically performs operations of a Test Scenario until it reaches where you wish to insert an additional step. This makes it easier to insert steps to existing Test Scenarios.
There are some processing differences between [Local Replay] and [Run Now]. For example, various testing steps are not processed in [Local Replay].
Therefore, you cannot use [Local Replay] in place of [Run Now].
Please run the actual test to check whether a test passes or fails.
Also, [Run Now] will count towards your execution count. In contrast, [Local Replay] is not a test execution and is therefore not counted as such, no matter how many times you replay the Scenario.
If you wish to abort [Local Replay]
How to abort [Local Replay]
If you wish to abort [Local Replay]’s operations, you can do so by clicking “Abort and proceed manually” in the dialog.
How to record after aborting [Local Replay]
Immediately after aborting, Autify Recorder will be in a paused state, and the following message is displayed. Operations are not recorded while in this state.
When you are ready to record, follow Autify Recorder’s message and click the pause icon (second from the left) to enable recording. Now, operations will be recorded just like when you start a new recording. The flashing red dot (●) indicates that recording is enabled.
If an error occurs and [Local Replay] stops
Unexpected errors and their causes
Some errors may occur while [Local Replay] is performing operations, and the process may stop.
The following dialog appears when an error occurs:
Here are the main causes for reasons for errors to occur during [Local Replay]:
- It replayed features not yet supported in [Local Replay], such as Choose File.
- An operation failed for some reason. For example, the target element could not be found in an operation step (clicks and inputs).
- The content of the JS step was incorrect.
- The Replay process did not work correctly. This may be due to incompatibility with the site or other reasons.
As explained in section 2.1, [Local Replay] and [Run Now] are two different things. Even if an error occurs during [Local Replay], the actual test may run successfully without encountering issues.
What to do when an error occurs
You can resume or abort [Local Replay] in any of the following ways:
- Retry: Tries to replay the failed step again.
- Abort: Aborts [Local Replay].
- Continue: Ignore the failed step or manually perform an operation of the failed step and resume Replay from where it left off.
The Replay dialogue box can be manually moved. If you wish to interact with the page and perform the failed step, please move the dialogue box.
If you do not need to use [Local Replay]
If you do not need to use [Local Replay] to automatically perform operations, please select Record here (no replay) instead of Record here. This may be helpful when there are too many steps before the one you wish to insert the new step.