Article Overview:
This article will cover how you can achieve the following:
This article will cover how to make dynamic waits based on a variable using Extension in Virtuoso.
Problem Statement:
In automated testing, using fixed wait times can lead to unreliable test execution, especially when application load times vary across different environments. To ensure stability and accuracy, dynamic waits are necessary, allowing tests to adapt to the current state of the application and avoid unnecessary delays or timeouts.
This article provides a solution for implementing dynamic waits in Virtuoso using an extension that allows wait times to be based on variable values.
Solution:
An extension is available to perform a wait with dynamic duration using value from a variable.
This extension will take the wait time in seconds as an input.
So you can use it in the journey like “waitTime(10)” or “waitTime($waitTime)”
E.g:
As now you can use a variable, you can use the test data table as well.
❗ Warning: Don't use a wait time of more than 2 minutes; otherwise, the step will timeout.
Comments
0 comments
Please sign in to leave a comment.