Operation"
From Documentation
m (Created page with "{{ZATSEssentialsPageHeader}} ZATS Mimic provides complete operation agents. Testers can use them to mimic various scenarios of user action to an application. It is a fundamental...") |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ZATSEssentialsPageHeader}} | {{ZATSEssentialsPageHeader}} | ||
− | ZATS Mimic | + | ZATS Mimic can simulate various user actions to a component such as input or click. It is a major part when writing a test case with ZATS Mimic. |
+ | Steps to use a <tt> OperationAgent </tt> on a <tt> ComponentAgent </tt>: | ||
+ | # Retrieve a target <tt>ComponentAgent</tt> with the selector syntax | ||
+ | # Depends on what operation you want to mimic, convert to the corresponding <tt>OperationAgent</tt>, e.g. <tt>ComponentAgent.as(SelectAgent.class)</tt> to select an Listitem. | ||
+ | #: Notice that not all ComponentAgents support all OperationAgent. e.g. you can't select a Button. | ||
+ | #: If conversion fails, you will get a run-time exception. | ||
+ | <!-- | ||
+ | Every operation agent section contains: | ||
+ | * purpose, which action to mimic | ||
+ | * work on which target components | ||
+ | * sample application UI picture (optional) | ||
+ | * sample code | ||
+ | --> | ||
+ | |||
+ | |||
+ | |||
+ | {{ZATSEssentialsPageHeader}} | ||
+ | {{ZATSEssentialsHeadingToc}} | ||
{{ZATSEssentialsPageFooter}} | {{ZATSEssentialsPageFooter}} |
Revision as of 02:36, 5 June 2017
ZATS Mimic can simulate various user actions to a component such as input or click. It is a major part when writing a test case with ZATS Mimic.
Steps to use a OperationAgent on a ComponentAgent :
- Retrieve a target ComponentAgent with the selector syntax
- Depends on what operation you want to mimic, convert to the corresponding OperationAgent, e.g. ComponentAgent.as(SelectAgent.class) to select an Listitem.
- Notice that not all ComponentAgents support all OperationAgent. e.g. you can't select a Button.
- If conversion fails, you will get a run-time exception.