Wait Actions

Sometimes a test must wait for an on-page event before the next step executes. For this scenario, Wait Actions can be added.

Functionize utilizes Smart Waits in order to make your test run optimally. Smart Waits will analyze the network traffic on a page and dynamically wait for the page to load, reducing the incidence of failing tests. You can add a Smart Wait while you’re creating the test using Architect. This can also be done using Quick Add Action while editing an existing test.

Please note: wait actions are limited to two minutes. If a longer wait action is required, it is suggested to split the test case into two and execute it using an Orchestration. If that is not viable, please contact the account manager to discuss other options that may be available.

 

To Create a Wait Action

Click the plus icon Plus.pngfrom the main screen of Architect and then select Wait from the action list.

Screen_Shot_2021-09-13_at_2.28.21_PM.png

Enter your desired maximum wait time (in milliseconds) that is not greater than two minutes. Click the Smart Wait toggle to make the action a Smart Wait. Click Add.

Screen_Shot_2021-09-13_at_2.28.51_PM.png

 

To Add a Wait Action to an Existing Test Case (that was created via Architect)

Method 1

  1. Go to the Functional Tests tab and locate the test case in question.
  2. Click on Actions tab.
  3. Click the More button Screen_Shot_2021-09-13_at_3.10.07_PM.png, then select Insert Action. See below:
    Screen_Shot_2021-09-13_at_3.09.24_PM.png
  4. In the Add Action pop up window, select 'wait' from the drop down menu.
  5. Click Continue.
  6. In this Add Action: wait pop up window, the time (in milliseconds) is required.  All other fields are optional. To set the action as a Smart Wait, enter "1" in the smart_wait attribute box.  Screen_Shot_2021-09-13_at_3.14.18_PM.png
  7. Once complete, click Submit.
  8. Note: This will send the user back to the Chrome tab, and the Wait Action will now be applied to the test case. See example screenshot below: Screen_Shot_2021-09-14_at_1.48.03_PM.png

Method 2

  1. Go to the Functional Tests tab and locate the test case in question.
  2. Click on Actions tab.
  3. Click the + icon (only visible on hover) at the right end of an existing action, then select Insert Wait. See below:
    Screen_Shot_2021-09-13_at_2.35.51_PM.png
  4. The Insert Wait Action dialog box will open for you to enter your maximum wait time in milliseconds. Click the check box if you would like the action to be a Smart Wait action. Then click Continue.
    Screen_Shot_2021-09-13_at_2.20.33_PM.png

Method 3

  1. Go to the Functional Tests tab and locate the test case in question.
  2. Click on View Results.
  3. Within the Slider View, click the Quick Add + in between test steps, then select Wait. See below: NOTE: If your test is missing ML data, the Quick Add dialog will not open.
    Screen_Shot_2021-09-13_at_2.24.20_PM.png
  4. Enter your maximum wait time in milliseconds. Click the check box if you would like the action to be a Smart Wait action. Then click Submit.