As the name ZATS mimic suggests, using this library the testers will be able to mimic user interactions with the application under test such as clicking or typing action. Using the library your job as a tester remains to write a regular JUnit test case, use Mimic library's utility class to interact with components on ZUL page and run the test case. You can the leave the rest to Mimic Library, which loads the project's ZUL to a server emulator and without rendering the screen it simulates user interactions to the server. All that is remaining for you to do is verify the result of the user action.
There are a few points worth noting where the tool might not be very helpful to you
- Functions dependent on the application server do not work.
Since the test cases run in simulated environment all functions that require an application server do not work (e.g. JNDI, or JTA). If you wish to adopt such container provided services some extra effort is required to make it work normally out of the container.
- You cannot test browser’s behaviour.
- You cannot test visual effects.
It cannot verify any behaviour that does not reflect upon component's properties such as animations, or a component's visual effect.
[Image Credits: smallbusinessdelivered]