Dependent locator tests
Some locator methods and evaluator methods use results from one or more input locators to process their alternatives. For those locator methods, an advanced Test button is provided that enables the selection of different kinds of test execution modes:
- Run Only <LocatorName>
-
Processes alternatives only for the current locator settings and not those from the dependent input locators.
- Run All Dependent Locators and Evaluators used as Input for <LocatorName>
-
Processes the input locator results for the current locators and evaluators and their dependent locators recursively.
- Run All Previous Locators and Evaluators
-
Processes the results of the current locator as well as all locators and evaluators that are defined before this locator.
When you open the locator properties or select a different test document, the test execution mode is automatically set to
Run All Dependent Locators and Evaluators used as Input for <LocatorName>
. You can change test execution mode.
Once you have executed testing for the test execution mode, Run All Dependent Locators and Evaluators used as Input for or Run All Previous Locators and Evaluators. The Test button is set to Run Only <LocatorName> as default.
Each of the following locators has dependent locators as input. Therefore, these locators have a multi-function test button.
The Script Locator is a little different from the rest of these locators. If a script is designed to use the results from another locator, it is impossible for the Project Builder to know this at the time of testing. It also cannot run any dependent locators needed by the Script Locator. As a result, the best solution is to ensure that any of these locators are run before you test the Script Locator. This ensures that the results for any input locators are available.
Related topics: