Operation"
From Documentation
Line 19: | Line 19: | ||
+ | {{ZATSEssentialsHeadingToc}} | ||
{{ZATSEssentialsPageFooter}} | {{ZATSEssentialsPageFooter}} |
Revision as of 05:58, 28 May 2012
ZATS Mimic provides complete operation agents to mimic various scenarios of user action to an application. It is a fundamental part when writing a test case with ZATS Mimic.
Steps to use a OperationAgent on a ComponentAgent :
- Retrieve a target ComponentAgent with selector syntax
- Depends on what operation you want to mimic, call ComponentAgent.as(OperationAgent.class) to convert it as an OperationAgent .
- Notice that not all ComponentAgents support all OperationAgent.
- If conversion fails, you will get a run-time exception.