--- title: "Set up pre and post actions for test case" slug: "set-up-pre-and-post-actions-for-test-case" description: "Set up test case event procedures with actions before or after execution, using predefined or self-defined actions for effective testing." tags: ["Task", "Anywhere Mobility Studio"] updated: 2026-03-20T13:07:05Z published: 2026-03-20T17:46:51Z canonical: "docs.staedean.com/set-up-pre-and-post-actions-for-test-case" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.staedean.com/llms.txt > Use this file to discover all available pages before exploring further. # Set up pre and post actions for test case You can set up a test case event procedure with test actions that are done in a specific sequence. These actions can be done before or after the test case is run. A test case event procedure has one action or a series of actions that are done on one of these test case events: - **Initializing** - The test actions are done before the test case is run - **After execution** - The test actions are done after the test case has been run. For an application event procedure, you can use: - The pre-defined test actions. - Self-defined test actions - For each of these actions, a self-developed class is required. Use the **Up** and **Down** buttons to define the action sequence. Optionally, you can run an action under specific conditions. For conditions, you can use functions that are available for the application. ### Steps 1. Click **Mobility test manager - Designer**. 2. Click the **Test cases** tab. 3. In the list, find and select the desired record. 4. Click **Edit**. 5. Click the **Events** tab. 6. For the desired event, click the **+** button. 7. On the **Actions pane**, in the list, select an action. 8. On the **Event procedure** dialog, on the **Actions pane**, click **Add**. 9. Select one or more actions. 10. Click **OK**. 11. On the **Parameters** tab, define the action settings. For each action, the parameter fields to be set are defined in the related class. 12. Optionally, you can run an action under specific conditions. Click the **Conditions** tab. 13. Click **Add** and fill in the fields. > [!NOTE] > **Note** > > In the first **Value** field, you can use a test variable, application variable, or a function. In the second **Value** field, you can use a test variable, application variable, a function, or a fixed value. 14. Click **Close**. 15. Close the page. ## Related - [Define pre and post actions for test case](/define-pre-and-post-actions-for-test-case.md)