Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

What is a ZBot? Image Modified

...

Zephyr Bots or ZBots are software agents that reside on target automation systems and form the link between the Zephyr Server and the automation tool being used on the target automation system. Based on user action in Test Execution (where the "E" button is clicked and an automation script(s) is kicked off), the Zephyr Server connects with the target ZBot and sends over execution information to execute an individual test script or multiple test scripts.

Installing a ZBot

ZBots must first be installed on the target automation system. ZBots are supported on Windows, MacOS X, Solaris and Linux.

How ZBots Execute

ZBots accept execution instructions from the Zephyr Server. These can be single automation scripts or a batch of them. For batches or groups of test scripts, they have two modes of execution: Sequential and Parallel. The ZBot updates the Zephyr Server in real-time about its progress.
 
ZBots come with an execution utility that has the following execution routine:

...

This execution routine can be further enhanced, extended or customized to intercept this flow and can be used to performed customized actions e.g. logging, checkout from repository, perform environment checks and setup, create and remove test data etc. This is done by writing a ZIP.

What is a ZIP? Image Modified

...

A ZIP or a Zephyr Interceptor Program is an extension to the execution utility of a ZBot allowing default execution flow of automation scripts to be intercepted in order to perform customized actions. ZBots comes packaged with a default ZIP which can be intercepted with a partial or full functionality customized. Currently, ZIPs written in JAVA are supported.
 
The following flow shows what the ZBot actions are and <zip> shows where ZIP actions can interface with that flow:
 
Batch Started: Update Batch Status <zip>
          Before Test script execution starts: Update Batch Status <zip>
          Run Test script<zip>
                    In sequential mode, ZBot will wait for each script to finish, gather the process status and update test status in Zephyr Server via a webservice.
                    Exit Status 0 is translated as Pass.
                    Any non-zero values is treated as Fail.
                    In parallel mode, it will launch them all without waiting for it to finish. It also, doesnt update the test execution status.
          Update Test script Execution Result <zip>
          After testcase Executed <zip>
Batch Finished <zip>

Writing a ZIP

Please refer to the Javadocs for writing a ZIP. The online version can be found here. Locally, they can be found in the <zbot_installdir>/zbot/docs

Setup a ZIP

For Windows:
To setup a custom ZIP (created as described in previous section),

...