What can I do with Record Here?
Autify's Local Replay feature comes in handy when adding steps to an existing scenario. Local Replay automatically performs steps until it reaches the section of your choosing, after which you can add more steps.
For example, imagine you have a test scenario that checks whether a text string is correctly displayed after login. To add the target text string, you would need to log in manually to get to the target page. Instead, you can use Local Replay to do it for you!
How to use Record Here
Let's say you want to add a step between steps 5 and 6 in the following scenario:
Click the [+] button between steps 5 and 6 and select [Record here]. The recording window launches and actions up to step 5 are performed automatically.
The following dialogue appears while Local Replay is running:
If Local Replay successfully replayed the actions up to the point where you want to add a step, the dialogue below will appear. You can now record actions such as clicks and inputs just like you would when recording a new scenario. You can also add various assertions.
If Local Replay stops, please refer to the information at the bottom of this page.
Differences between Local Replay and Test Execution
Local Replay is a function that automatically performs actions until the step where you want to add new steps. This is a feature that makes it easier to add steps later.
There are some differences between Local Replay and test execution. For example, assertion steps are not processed during Local Replay.
Therefore, you cannot use Local Replay in place of Test Execution.
You will need to run the test to check whether it passes or fails.
In addition, while Test Execution counts toward your monthly test run, Local Replay is not a test and is therefore not counted towards your monthly test run, no matter how many times you use it.
How to abort Local Replay
How to abort
If you wish to abort Local Replay for whatever reason, you can do so by clicking [Abort and proceed manually] in the dialogue.
How to record after aborting Local Replay
Immediately after aborting, the following "Aborting replay" message will appear. You cannot record any actions while this message is visible, so please wait until it disappears.
Once the message disappears, manually perform all the actions, such as clicks and going to another page, until just before the step you want to record.
When you are ready to resume recording, click on the pause icon on Autify Recorder (second button from the left). You can now record new actions.
A message on Autify Recorder will tell you where the new step will be inserted (In the figure below, new actions will be recorded after step 3).
By enabling recording, you can record actions just like when you record a new scenario. As shown in the figure below, a blinking red ● indicates that recording is enabled.
If an error occurs and Local Replay stops
Unexpected errors and their causes
An error may occur while Local Replay is automatically performing actions, causing the process to stop.
When an error occurs, the following dialogue will appear:
Here are the main reasons why an error may occur during Local Replay:
- It replayed a feature not yet supported by Local Replay, such as file upload.
- The action failed for some reason. For example, the target element could not be found in an action step (click, input, etc.).
- An error occurred due to incorrect content written in the JS Step.
- Replay processing did not work correctly. For example, it was incompatible with the site.
**As mentioned in the section Differences between Local Replay and Test Execution, Local Replay and Test Execution are different. Even if an error occurs in Local Replay, the test may run without encountering issues.
What to do when an error occurs
You can restart or abort Local Replay in one of the following ways:
- Retry: replay the failed step again.
- Abort: abort Local Replay.
- Continue: ignore the failed step or manually perform the action of the failed step and resume Replay where it left off.
You can move the Local Replay dialogue as needed when manually performing the action corresponding to the failed step.
If you don't need to use Local Replay
If you don't need to use Local Replay, such as when there are too many steps until the target step and you want to skip them, please select [Record here without replay] instead of [Record here] before recording additional steps.