Configuring Auto testing

<< Click to Display Table of Contents >>

Navigation:  Bizagi Studio > Automatic testing >

Configuring Auto testing

Overview

The Auto Testing tool is a resource kit designed to test Bizagi processes automatically in development and testing environments, in order to validate that all paths in a process workflow behave as expected.

This tool does not need installation (it is downloaded as a portable .zip file directly at Autotesting for Bizagi).

For basic information on this feature, refer to Automatic testing.

 

Requirements

In order to record scenarios, the Auto Testing tool relies on HTML 5 features.

Therefore, in order to use this tool you need a browser that supports such standard.

Supported browsers which are HTML 5 compatible, are:

Internet Explorer 9 or higher.

Google Chrome.

Mozilla Firefox (version 20 or higher).

 

note_pin

The Auto Testing tool is compatible with applications built in Bizagi Studio 11.x

In case your application had been built in a Bizagi Studio version between 10.3 and 10.7, please download the Autotesting tool from this link.

 

Auto testing configuration

The Auto Testing tool can be configured through 2 different alternatives: basic configuration (by using the tool's user interface), or by advanced configuration (by manually editing an XML configuration file).

The basic configuration allows for a quick start while the advanced configuration presents the possibility to manage additional settings.

 

Basic configuration

To configure the Auto testing tool through its user interface, follow these steps:

 

1. Copy and paste the Tool .zip file and extract it into a folder in your computer.

 

Autotesting42

 

2. Execute the AutoTesting Tool.exe file with admin rights.

 

Autotesting42b

 

3. Click the Options button.

 

Autotesting46

 

4. Select the Connection tab.

 

Autotesting48

 

5. Enter the following information to configure the connection.

 

Autotesting49

 

PARAMETER

DESCRIPTION

Host

Defines the complete URL of the server where Bizagi Work portal is running (e.g http://myServer/myProject).

 

Notice you may verify the URL by using a browser when you access the Work portal (ensure you include HTTP or HTTPS).

 

Autotesting51

Connection

Defines the connection string to the database.

If you are uncertain on how to edit such connection string, refer to the Database connection string in Bizagi.

Provider

Specifies the database provider, according to your database engine:

MSSqlClient (for SQL Server databases)

Oracle (for Oracle databases).

 

 

6. Select the Logs tab.

 

Autotesting47

 

7. Enter the following information to save logs.

 

Autotesting50

 

PARAMETER

DESCRIPTION

Recording log

Defines the folder to store recording logs (relevant information regarding the sent data in a recorded scenario).

Use the Autotesting54 button to browse into the folder of your choice.

Execution log

Defines the folder to store execution logs (output with test results when running a scenario).

Use the Autotesting54 button to browse into the folder of your choice.

 

8. Click Close.

At this point you are set and ready to start recording a scenario.

 

Advanced configuration

Alternatively, you may configure the Auto Testing tool before opening it, by manually editing its configuration file.

Apart from the main parameters presented as in the basic configuration, through advanced one you may also:

Disable logging.

Specify the path where test scenarios are stored.

Specify the log files format.

Note that by default the logs will be created as .txt files though you may choose to produce .csv format logs.

 

To carry out the configuration with this approach, follow these steps:

 

1. Browse into the App subfolder and edit the Bizagi.AutoTesting.UI.exe.config file:

 

Autotesting43

 

2. Configure parameters in the XML-formatted file as described below.

 

Autotesting44

 

PARAMETER

MANDATORY

DESCRIPTION

UrlBase

Yes

Defines the complete URL of the server where the web application is found (e.g http://myServer/myProject).

AutoTestingLoggingEnabled

No

Determines if logging for the testing scenarios is enabled.

AutoTestingFilesPath

Yes

Defines the folder to store testing scenarios (testing scenarios are saved with a .test file extension).

AutoTesting.Log.FolderForExecution

Yes

Defines the folder to store execution logs (output with test results when running a scenario).

Has to be inside of the folder specified at AutoTestingFilesPath tag.

AutoTesting.Log.FolderForRecording

Yes

Defines the folder to store recording logs (relevant information regarding the sent data in a recorded scenario).

Has to be inside of the folder specified at AutoTestingFilesPath tag.

AutoTesting.Log.Type

Yes

Defines the extension of the log files.

Possible values are:

csv (comma separated values format)

simple (plain text format)

DSNDB

Yes

Defines the connection string to the database.

If you are uncertain on how to edit such connection string, refer to the Database connection string in Bizagi.

PROVIDERTYPE

Yes

Specifies the database provider, according to your database engine:

MSSqlClient (for SQL Server databases)

Oracle (for Oracle databases).

 

3. Save your changes and close the file.

At this point you are set and ready to open the Auto testing tool (by executing the AutoTesting Tool.exe file), and start recording a scenario.