Test Options

Official Content

This section documents the test options that can be configured inside GeneXus IDE, and the behavior of each one. 

Some test options are specific of an Environment, and others are set per Knowledge Base.

Environment Test Properties

You need to open the environment preferences to set Test properties on it:


Generate Cove Coverage Information: {No, Yes}
When true, GeneXus generates source-level runtime code coverage information. When  Default: False

Run Tests After Build: Boolean
When true, after running a Build or Rebuild All operation in GeneXus IDE, this option will start running all test cases automatically.  Default: False

Base URL: String (for UI tests only)
Set the base URL to open when UI tests don't have a complete URL specified. Default: Environment's web root (set at first execution)

File Upload Base Path: String (for UI tests only)
Allows to set a directory as a base path to locate all resources that will be used on FIleUpload commands. When running web tests, this property is combined with FilePath parameter in FileUpload commands.

KB Version Test Properties

You need to open the KB Version properties and scroll down to Test group properties on it:


Default Browser: String (for UI tests only)
The default browser when starting a UI test. If you don't explicitly define a browser type using SetBrowser command, this browser will be selected.  Default: Chrome

Version: String 
Read-only property that shows the GXtest Framework version. GXtest framework is Runner and external objects for UI automation (web and SD)

KB Version Unit Test Generation Properties

GXtest allows you to determine data, algorithm and amount of sets to be generated on unit tests. 

Algorithm { RandomCombination, CartesianProduct, Pairwise }

Allows to choose the algorithm used to combine input values for every parameter. This will be reflected in the amount and how exhaustive test cases will be. Default: Random combination.

Random combination: test cases are built using random values for each parameter

Cartesian product: all possible combinations between parameter values are made. The amount of test cases will be the product of data values count for every parameter. For instance, if the object has 3 parameters and you input 5 values for each parameter, there will be 5*5*5 test cases: 125.

Pairwise combination: You can find information at http://pairwise.org/

Parameter values { Autogenerated, Prompt }

This option allows to custom-select data used on test generation, either random (autogenerated) or user-specific (prompt). Default: Autogenerated.

Autogenerated: values sets are built using a mix of fixed and random values for every parameter depending on the parameter’s data type.

Prompt: Before creating the test, a window is prompted to the user, which enables the user to use specific data. Please refer to this article to understand how to generate different sets of data for tests.

Data sets count: Numeric (for Unit tests only)

Set how many data sets will be generated in the test DataProvider, after clicking "Create Unit Test" option. For Random Combination algorithm only.

Default: 5


Note: Also there are another settings (low level) that can be set via GXtest config file