# Pause Execution

This is a pre-built Action located under the **@Generic Element**. The functionality of this Action in Avo Assure is to pause the test execution at a specific point and resume it only after receiving user confirmation. The execution result is stored in a dynamic variable.

## **Syntax**

**Input Value**:  `N/A`&#x20;

| Argument | Description    |
| -------- | -------------- |
| N/A      | Not Applicable |

**Output Value**: `<Dynamic Variable>;<Dynamic Variable>(Optional)`&#x20;

| Argument                                                    | Description                                                       |
| ----------------------------------------------------------- | ----------------------------------------------------------------- |
| \<Dynamic Variable>(Required);\<Dynamic Variable>(Optional) | Both dynamic variables store the status as **True** or **False**. |

### Example: Halting an Execution Until User Confirmation

In this example, we explain how to use Pause action execution Action at a specific step.

* **Action**: Pause Execution
* **Input Value**: N/A
  * This action does not require any input value. It simply pauses the ongoing test execution until user confirmation is received.
* **Output Value:** {Status}
  * The execution status (True) is stored in this **{Status}** dynamic variable with the following possible values:
    * **True**: If the execution resumes successfully after the user clicks **OK.**
    * **False:** If the action fails to pause or resume properly.

{% hint style="info" %}
**Note**: If the user closes the dialog without clicking the **OK** button, the execution does not proceed. It remains paused at the current step until the user re-executes it.
{% endhint %}

* **Logical Explanation**: The **Pause Execution** action halts the ongoing execution and displays a confirmation **Avo Assure - Pause** dialog box. The execution resumes only after the user clicks the **OK** button. The result of this action is stored in the **{Status}** variable as True upon successful resumption.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FTZU2oip3hM0W3cdvolvJ%2Fimage.png?alt=media&#x26;token=299757bd-3645-42d8-bf02-58b8d5264510" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FS8VFOSLeCzDgYxgT2bC8%2Fimage.png?alt=media&#x26;token=ab0a16af-7e73-4cf4-bb45-9e1a5a1f9694" alt=""><figcaption></figcaption></figure>
