Operation"
From Documentation
(after adding download) |
|||
Line 1: | Line 1: | ||
{{ZATSEssentialsPageHeader}} | {{ZATSEssentialsPageHeader}} | ||
− | ZATS Mimic | + | ZATS Mimic can simulate various user actions to an application. It is a fundamental part when writing a test case with ZATS Mimic. |
Steps to use a <tt> OperationAgent </tt> on a <tt> ComponentAgent </tt>: | Steps to use a <tt> OperationAgent </tt> on a <tt> ComponentAgent </tt>: |
Revision as of 07:09, 8 June 2012
ZATS Mimic can simulate various user actions 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.