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 eight 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 from the main screen of Architect and then select Wait from the action list.
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.
To Add a Wait Action to an Existing Test Case
- View a test case in the Test Detail page or the Slider page
- Locate the icon (only visible on hover)within the test where you would like to insert a wait action
- Select Wait from the selection window
- Enter the time, in milliseconds, to wait
- Click Insert