Article Overview:
This article will cover how you can achieve the following:
Identify and fix issues causing Virtuoso tests to take significantly longer to execute than expected.
Problem Statement:
What to do when your previously efficient Virtuoso tests start taking significantly longer to complete. You could be observing that the transitions between pages in your tests are slowing down, despite no recent changes being made to the test scripts.
Solution:
The root cause of the execution latency could be due to "Wait for Network Traffic" option being enabled. Enabling this setting asks Virtuoso to wait until the backend fully loads the page, even if it may seem like the front end is ready. Disabling this option would resolve this issue, allowing the tests to run at their normal speed.
Example:
Steps to resolve:
-
Review Test Settings:
Check if the "Wait for Network Traffic" setting is enabled in your Goal settings. This option can lead to delays if the backend loading time is longer than expected. To view this setting, open your goal, click on the hamburger menu on the left of your goal name, and click on Edit goal settings. -
Disable the "Wait for Network Traffic" Option: This option is available under the 'interaction' sub menu.
- If enabled, disable this option to prevent unnecessary waiting for the backend to load, allowing the test to proceed once the frontend is ready.
-
Monitor Test Execution:
After making the change, observe the test execution times to ensure they have returned to their typical duration. -
Further Troubleshooting:
If the issue persists, consider other factors such as server performance, network latency, or recent changes in the application that might affect loading times.Examples:
-
Scenario: A customer noticed that their tests, which usually ran efficiently, began taking significantly longer. The delay was due to the "Wait for Network Traffic" option being enabled, which caused Virtuoso to wait for the backend to fully load the page.
-
Resolution: After disabling the "Wait for Network Traffic" option, the tests resumed their usual speed.
Comments
0 comments
Please sign in to leave a comment.