Operation

From Documentation
Revision as of 02:55, 18 January 2022 by Hawk (talk | contribs) (correct highlight (via JWB))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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 :

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






Last Update : 2022/01/18

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