Operation"

From Documentation
Line 1: Line 1:
 
{{ZATSEssentialsPageHeader}}
 
{{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 part when writing a test case with ZATS Mimic.  
+
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 <tt> OperationAgent </tt> on a <tt> ComponentAgent </tt>:
 
Steps to use a <tt> OperationAgent </tt> on a <tt> ComponentAgent </tt>:
# ?
+
# Retrieve a target ComponentAgent with selector syntax
 +
# Depends on what operation you want to mimic, call <tt> ComponentAgent.as(OperationAgent.class) </tt> to convert it as an <tt> OperationAgent </tt>.
 +
#: Notice that not all ComponentAgents support all OperationAgent.
 +
#: If conversion fails, you will get a run-time exception.
  
 
<!--
 
<!--

Revision as of 08:16, 15 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 :

  1. Retrieve a target ComponentAgent with selector syntax
  2. 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.




Last Update : 2012/05/15

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.