1. XSTAF introduce

Page Status:Development
Last Reviewed:

XSTAF is an execution framework providing a bunch of features for testers’ convenience:

  • XSTAF is a disturbed execution framework based on STAF project, XSTAF can connect and run tests on multiple DUTs at same time
  • XSTAF provide test case management, and testers can have detail controls, down to atomic testcases
  • XSTAF provide a tool plugin mechanism, runtime data is exposed so user can develop plugins to control XSTAF runtime data
  • XSTAF provide some basic tools, like test report generator, test suite generator to handle common met tasks

XSTAF’s competition is other test manage and execution frameworks, like robot, spoon, testNG, or other test back-end of CI system.

1.1. XSTAF top view

Below image give an overview of XSTAF modules.

_images/XSTAF_top_view.png

1.2. XSTAF use scenarios

This chapter gives a preview of typical use scenarios XSTAF designed for:

1.2.1. PC like DUTs

Browser tests, desktop app tests, and PC function tests are always running on DUTs just like PC. STAF normally provides support for these platform, and these platform are power enough to support some extra tasks from STAF. So usually we deploy scripts, libraries and STAF client to DUTs directly, and use XSTAF to control the DUT directly.

The use scenario for this kind of tests, you can deploy XSTAF just like below:

_images/XSTAF_senarios_1.png

Note

For PC like DUTs, XSTAF run tests synchronously, which means these is only one test running on one DUT at some time

1.2.2. mobile DUTs (not ready yet)

Mobile app tests are running on mobile devices. STAF doesn’t support mobile device, and for tests on mobile devices, usually we need an extra PC to setup the test environment, like libraries, platform tools(adb). So XSTAF use a different structure to support tests on mobile devices, like below:

XSTAF server and client running on same machine, with multiple mobile devices

_images/XSTAF_senarios_2.png

XSTAF server control multiple machines, with multiple mobile devices connect with each machine

_images/XSTAF_senarios_3.png

Note

For mobile tests, XSTAF can run tests asynchronously, but for one subDUT, tests are running synchronously