2021 September Release

Fabasoft app.test Console PlayerPermanent link for this heading

The Fabasoft app.test Console Player offers the possibility to start tests directly from the command line using apptest-consoleplayer.jar.

You need a configuration file where you define the test and run settings. Duplicate the wanted apptest-config file and add the execute attribute (denoting the path to the test file) to the Run tag.

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).

How to Start the Fabasoft app.test Console Player

For starting the Fabasoft app.test Console Player you have to enter the following command into the command line:

Command Line

java -jar 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:

Parameter

Definition

config

Here you enter the path to the configuration file which specifies the settings for starting a test file.

verbose

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.

How to Overwrite Parameters when Starting the Fabasoft app.test Console Player

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.

Syntax

-<element>.<attribute>:<value>
<element>.<attribute>="<value>"

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).

Example

java -jar apptest-consoleplayer.jar
     -verbose:true
     -projectpath:"D:\apptest-projects\Fabasoft Folio\"
     -Run.execute:"{~projectpath~}Tests\WorkflowTest.apptest"
     -Run.address:"https://webserver.example.com/fsc"
     -Run.clienttype:"GOOGLE_CHROME"
     -Run.scope:4
     -Adaptor.port:4360
     -Reporting.reportpath:"D:\apptest\Reports\\"
     -Reporting.reportname:" {~testname~} - {~scope~}.ducx-rep"
     -Login.authentication:BASIC