The Fabasoft app.test Console Player offers the possibility to start tests directly from the command line. Instead of starting the Fabasoft app.test Player in the Fabasoft app.test Studio you can execute tests by using apptest-consoleplayer.jar. This Java file is located in the installation folder of Fabasoft app.test and is used for starting the Fabasoft app.test Console Player.
First of all you need a configuration file where you define the credentials for running a test.
Afterwards you can use this configuration file for starting the Fabasoft app.test Console Player.
In the command line you can also overwrite values that have been set in the configuration file (or define all needed information directly in the command line without using a configuration file).
You can also save a configuration file with the preferences and properties set in the Fabasoft app.test Studio.
In the configuration file you can define the properties for starting a test in the Fabasoft app.test Console Player. You can create your own configuration file (see “How to Create a Configuration File for the Fabasoft app.test Console Player”) or generate one from the Fabasoft app.test Studio as shown below.
In the Fabasoft app.test Studio you can save preferences and properties. You can also export the properties saved for a test file as a configuration file for the Fabasoft app.test Console Player.
Therefore, select the test file of which you want to create the configuration file in the "Projects" view, open the "File" menu and selecting "Save Configuration".
The configuration file is saved in the "Config Files" folder in the "Resources" folder of a project. Enter a name for the configuration file and click "Finish".
The configuration is saved and can then be used for starting the test with the Fabasoft app.test Console Player.
Note: You can change the configuration in the Fabasoft app.test Studio by opening it. Then you can either change directly the source code or use the "Properties" view for changing the values.
For starting the Fabasoft app.test Console Player you have to enter the following command into the command line:
java -jar "<installation path of Fabasoft app.test>/apptest-consoleplayer.jar" -config:"<path to configuration file>" [-verbose:true]
Beside defining the path to the Fabasoft app.test Console Player Java file, the following parameters can be set:
Here you enter the path to the configuration file which specifies the settings for starting a test file.
By using the verbose parameter you can define if an output should be shown in the command line. Per default it is set to false. If you want to see an output on the console (which means all executed steps and their success are shown), you have to set the parameter to true.
Furthermore, you can overwrite the settings defined in the configuration file (see chapter “How to Overwrite Parameters when Starting the Fabasoft app.test Console Player”).
java -jar "C:\Program Files (x86)\Fabasoft\apptest\studio\apptest-consoleplayer.jar"
When you start the Fabasoft app.test Console Player you can also overwrite the settings defined in the configuration file. You can overwrite the attributes by using the following Syntax
This means that there is the possibility to define all needed information directly in the command line which means you could set the parameters for starting a test in the console instead of defining a configuration file. But when using a configuration file you have a better oversight of the values and you can reuse it (and just overwrite some parameters when starting a test).
java -jar "C:\Program Files (x86)\Fabasoft\apptest\apptest-consoleplayer.jar"
Following you can find a list of all elements and their attributes and how they can be overwritten directly in the command line:
Usually the project path is set in the Config tag.
<Config projectpath="D:\apptest-projects\Fabasoft Folio\\" >
In the Run tag you set the properties for running a test file.
In the ParameterTable tag you define to use extern parameter tables.
In the command line you cannot set parameters directly but reference an existing parameter table file.
In the Login tag you define the login credentials.
In the Adaptor tag you define the properties for the Fabasoft app.test Client Adaptor.
In the Agent tag you define if the Fabasoft app.test Agent should be used for distributed testing.
In the Reporting tag you define the properties for creating a report.
In the Telemetry tag you define if app.strudl Software-Telemetry should be used.