TEST AUTHORING
Running Tests
Resilient Mode
8min
relicx offers two modes for running tests fast mode and resilient mode by default, tests are executed in fast mode, but users have the flexibility to choose resilient mode when running a test resilient mode testing enhances the reliability and robustness of your test scripts this documentation provides an overview of the different aspects of resilient mode testing and offers best practices for achieving more stable and accurate test results smart selector relicx employs advanced smart selector intelligence to accurately locate elements on the page in resilient mode, it utilizes additional processing and matching techniques to improve the selection process this includes generating all possible locator matches and selecting candidates with a confidence score of 0 8 or higher additional waits and retries to accommodate lazy or deferred element loading in certain applications, relicx incorporates extra waits and retries during the smart selector matching process it will attempt the selection at least 2 times before proceeding, ensuring that elements are correctly identified validation issues in case relicx fails to find an element with a confidence score of at least 0 8, it flags those steps as validation issues this allows you to examine and address any potential problems that may affect the reliability of your tests automatic navigation waits relicx includes automatic navigation waits to ensure proper page loading and eliminate flaky test execution it employs the following techniques wait for all network pending requests to complete relicx waits for all network pending requests to be completed before proceeding by waiting for the page to fully load, it prevents the execution of steps that could be affected by incomplete network requests, thus increasing the stability of your tests flag network pending validation issues if any network load requests fail to complete within 30 seconds, relicx flags them as validation issues this allows you to identify potential problems with network dependencies affecting the reliability of your tests ignore third party requests relicx automatically ignores multiple third party requests made by applications, such as requests to google analytics however, if your tests encounter navigation pending failures on a third party site not automatically ignored by relicx, you can manually add it to the ignore list scrolls relicx ensures that elements being scrolled into view are properly brought into focus, emulating human interaction to achieve this, relicx may need to locate the element using smart selectors, resulting in slightly longer scroll times this additional work guarantees thorough testing and prevents misleading results automatic validation automatic validation, while not exclusively related to resilient mode, is an important feature that contributes to the reliability of your tests it involves additional processing time but offers significant benefits consider the following best practices best practices create smaller tests breaking down complex tests into smaller, focused ones improves test maintainability and reduces the likelihood of errors use auto login decouple login steps by utilizing auto login features this enables tests to start from a logged in state consistently, reducing the reliance on login steps and improving test efficiency by following these best practices and leveraging the resilience features of relicx, you can create more robust and dependable test scripts that deliver accurate results