Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Qualitia Offline Package (QOP) is a portable and easily deployable bundle containing Qualitia Tests and Qualitia Execution Engine with ability to independently execute test cases and report results without Qualitia Test Automation Studio.
Qualitia Offline Package = Qualitia Execution Engine + Tests Package

QOP is created from the Qualitia Test Automation Studio and then executed in multiple environments. These environments DO NOT need Qualitia Test Automation Studio installed as Qualitia Offline contains the Qualitia Execution Engine to execute and report tests exactly as Qualitia Test Automation Studio does.

Anchor
_Toc467254499
_Toc467254499
Anchor
_Toc467500559
_Toc467500559
Anchor
_Toc467505042
_Toc467505042
Anchor
_Toc467509262
_Toc467509262
Anchor
_Toc467584795
_Toc467584795
Anchor
_Toc467595241
_Toc467595241
Anchor
_Toc467596471
_Toc467596471
Anchor
_Toc467597370
_Toc467597370
Anchor
_Toc467603346
_Toc467603346
Anchor
_Toc467669276
_Toc467669276
Anchor
_Toc467676178
_Toc467676178
Anchor
_Toc467677154
_Toc467677154
Anchor
_Toc467677203
_Toc467677203
Anchor
_Toc467680780
_Toc467680780
Anchor
_Toc467681366
_Toc467681366
Anchor
_Toc467681412
_Toc467681412
Anchor
_Toc467682390
_Toc467682390
Anchor
_Toc467684686
_Toc467684686
Anchor
_Toc467687374
_Toc467687374
Anchor
_Toc467687463
_Toc467687463
Anchor
_Toc467688262
_Toc467688262
Anchor
_Toc467688484
_Toc467688484
Anchor
_Toc467754830
_Toc467754830
Anchor
_Toc467759230
_Toc467759230
Anchor
_Toc467761393
_Toc467761393
Anchor
_Toc467763055
_Toc467763055
Anchor
_Toc467763193
_Toc467763193
Anchor
_Toc467767728
_Toc467767728
Anchor
_Toc468191618
_Toc468191618
Anchor
_Toc468200367
_Toc468200367
Anchor
_Toc468269752
_Toc468269752
Anchor
_Toc468283608
_Toc468283608
Anchor
_Toc468288381
_Toc468288381
Anchor
_Toc468288489
_Toc468288489
Anchor
_Toc468289618
_Toc468289618
Anchor
_Toc468290228
_Toc468290228
Anchor
_Toc470622315
_Toc470622315
Anchor
_Toc471288376
_Toc471288376
Anchor
_Toc471308380
_Toc471308380
Anchor
_Toc471466648
_Toc471466648
Anchor
_Toc471466844
_Toc471466844
Anchor
_Toc471467021
_Toc471467021
Anchor
_Toc471467086
_Toc471467086
Anchor
_Toc471824727
_Toc471824727
Anchor
_Toc471825369
_Toc471825369
Anchor
_Toc471825589
_Toc471825589
Anchor
_Toc471826058
_Toc471826058
Anchor
_Toc471826417
_Toc471826417
Anchor
_Toc471826577
_Toc471826577
Anchor
_Toc471826719
_Toc471826719
Anchor
_Toc472166884
_Toc472166884
Anchor
_Toc481154222
_Toc481154222
Anchor
_Toc481154258
_Toc481154258
Anchor
_Toc481156458
_Toc481156458
Anchor
_Toc481157333
_Toc481157333
Anchor
_Toc481678747
_Toc481678747
Anchor
_Toc481846944
_Toc481846944

...

  • Packaging Execution Engine
  • Creating Test Packages

Packaging Execution Engine

The first step of creating an offline package is to bundle Qualitia Execution Engine.
To package execution engine:

...

Once the Qualitia Execution Engine and Test Packages are created successfully, you can move this folder to any location. Before executing test cases using offline package, see the important components listed in the table below.

Property Name

Description

qualitia-offline-x.x.jar

It is Qualitia Execution Engine which executes tests cases.

lib and common folders

Both these folders are required for Qualitia Execution Engine. It is recommended not to alter the contents of these folders.

qualitia.properties file

The qualitia.properties file in the config folder contains all the configuration settings exist in Qualitia at the time of package creation.

Anchor
_Toc481846948
_Toc481846948
Understanding qualitia.properties

This section helps you understanding the elements stored in Qualitia.properties file. This file contains all the configurations required for offline package execution.
The default configuration values are taken from Qualitia Configuration existing at the time of creating offline package. You need to change some values that contain file paths and so forth before executing your test cases.
The following table illustrates the list of properties to be set before executing test cases using offline package.

Property Name

Description

xmlPath

Enter the path where Suite.xml and Test Case xmls files are stored.

LogPath

Enter the path where you want to store reports once the test cases are executed.

SBrowserType

Enter the browser type to be used when executing test cases. For example; firefox, iexplore, googlechrome, and so forth.


ShowReportAfterExec

Set true if you want Qualitia to show report once test cases are executed. Set false if you do not want Qualitia to show report after executing test cases.
By default, value is set as true for Qualitia Suite execution and false for Offline Package execution.

Anchor
_Ref467489875
_Ref467489875
Anchor
_Ref467489934
_Ref467489934
Anchor
_Toc481846949
_Toc481846949
Offline Package - Execution

Once the offline package is created you can execute it opening the command prompt and navigating to the folder where you saved the Offline Package. After navigating to the designated folder, call the Qualitia-offline jar using java.
Refer Figure 2.2.21.
This command executes tests available at the path mentioned in the qualitia.properties file.
Note: In case you have multiple versions of java, Qualitia uses the version set against the "JAVA_HOME" system variable under System Properties settings of your computer.

Anchor
_Ref467238609
_Ref467238609
Figure 2.2.2 1

Configuration properties can be changed at three different levels to better maneuver manoeuvre configurations in multiple environments. Anchor_Ref467243082_Ref467243082

Figure 2.2.2 2
qualitia.propertiesUser Defined PropertiesCommand line argumentsOverridesOverridesThis Command line arguments override User-defined properties which override qualitia.properties.

qualitia.properties - this file is auto generated based on the Qualitia Configuration at the time of creating offline package User Defined

User defined properties - user-defined properties file overrides the values in qualitia.properties to be used as first argument. For example: "java “java -jar qualitia-offline-xxxx.jar config/userdefined.properties"properties”

Command line arguments in "java - command line arguments in “java -jar qualitia-offline.xxxx.jar sBrowserType=firefox" firefox” overrides properties in User Defined properties and qualitia.properties.

*xxxx denotes the version of qualitia-offline jar. Kindly check the offline location for the exact jar file name.
As shown in the diagram above, configuration Configuration properties can be changed at three different levels.

  • Level 1: qualitia.properties - Qualitia generates this file based on Qualitia Configuration settings available at the time of creating offline package.
  • Level 2: User Defined Properties File - You can create your own property file and provide the path as the first argument to the qualitia-offline-xxxx.jar. It provides flexibility to create multiple property files based on the required configuration combinations. You can create separate property files for each OS, browser, their combinations as per the project requirements. For example: win7.properties, mac.properties, linux.properties, linux-ff.properties, linux-headless.properties, so on.
  • Level 3: Command Line Arguments Arguments - Command line arguments allow further fine tuning of the configurations providing arguments to the qualitia-offline-xxxx.jar. It overrides user defined properties if anything is provided as the first argument or the values set in the qualitia.properties file. You can also provide properties that are part of the quality.properties file as the command line arguments in the following format; name=value. For example: Property Name sBrowserType containing Property Value firefox can be provided as follows;
qualitia-offline-xxxx.jar sBrowserType=firefox

Similarly you can provide multiple property=value pairs separating them with space as follows;

qualitia-offline-xxxx.jar sBrowserType=firefox xmlPath=D:\QualitiaOffline\Scripts SyncTimeInSeconds=

...

40