Introduced in Feature Pack 1

Increasing the reliability of your tests

You can increase the reliability of your automated tests by configuring your test environment.

Use the following tips to increase the reliability of your tests:
  • In the browser, disable all the unnecessary plugins. Some plugins might cause the browser to crash or present popups that could block test execution.
  • In the browser, disable automatic updates. Automatic updates might create a popup that could block test execution or change the environment in a way that is not compatible with the current test environment.
  • On the server, precompile the JSP file. Otherwise tests might fail due to a timeout condition while the server performs compilation.
  • Warm up the server to load various resources in memory. For example, in the tests, perform an initial shopping flow with a larger than usual timeout configuration.
  • Ensure that your tests interact with elements within the web page that have a unique identifier attached to them. While Selenium allows tests to pass a XPath with array indices (for example: /tr[4]/td[2]/div[1] ), those indices might change while unique IDs will not. If necessary, make changes to the web pages to add unique IDs.