Executable Launcher (exe.jar)

The Executable launcher allows interfacing with any executable.


Configuration

The exe.xml file allows pre-configuring the launcher with some default values:

Parameter Description
General > Test root path This must indicate where are located all the .exe files. This is a root path. Each test in XStudio has a canonical path that will be appended to this path.
This path MUST not include an ending slash.

Default value is: C:/my_executables
General > Synchronous executable This must indicate where is installed AutoIt on the host

Default value is: true
General > Asynchronous timeout (in seconds) This must indicates the maximum time the system will wait for the test to complete.

Default value is: 600


These values can be changed while creating the campaign session from XStudio.


Requirements

1) Each test in XStudio must have his dedicated .exe file. The name of the executable MUST be equal to the name of the test.

2) The .exe file must be able to parse the argument testcaseIndex passed during execution. This allows executing different routines depending on the testcase index.

The test is executed by the launcher using this syntax:
<testRootPath>/<testPath>/<testName>.exe /debug /testcaseIndex=<testcaseIndex>

3) In asynchronous mode, when the .exe has executed all its action, it MUST create an empty test_completed.txt file. This mechanism allows the launcher to know when the test is completed. A timeout is predefined for this. If the executable did not create the test_completed.txt file within the timeout value then the launcher considers the test has crashed and skips it.

4) In synchronous mode, the returned code is used to determine if the test passed or failed: a returned code equals to 0 will be understood as a success, any other value will be interpreted as a failure.

5) In asynchronous mode, the executable must generate a log.txt during its execution. This file MUST describe all the actions performed by the test as well as the result of each action. This file will be parsed by the launcher and all the information will be passed/stored automatically in the XStudio database. The log.txt MUST respect a specific format: Each line MUST include the strings “[Success]", "[Failure]" or "[Log]" or the line will not be treated. Based on this information, the testcase will be flagged as passed or failed.