Versions Compared

Key

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

Table of Contents

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 The offline package 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 Anchor_Toc467254500_Toc467254500 Anchor_Toc467500560_Toc467500560 Anchor_Toc467505043_Toc467505043 Anchor_Toc467509263_Toc467509263 Anchor_Toc467584796_Toc467584796 Anchor_Toc467595242_Toc467595242 Anchor_Toc467596472_Toc467596472 Anchor_Toc467597371_Toc467597371 Anchor_Toc467603347_Toc467603347 Anchor_Toc467669277_Toc467669277 Anchor_Toc467676179_Toc467676179 Anchor_Toc467677155_Toc467677155 Anchor_Toc467677204_Toc467677204 Anchor_Toc467680781_Toc467680781 Anchor_Toc467681367_Toc467681367 Anchor_Toc467681413_Toc467681413 Anchor_Toc467682391_Toc467682391 Anchor_Toc467684687_Toc467684687 Anchor_Toc467687375_Toc467687375 Anchor_Toc467687464_Toc467687464 Anchor_Toc467688263_Toc467688263 Anchor_Toc467688485_Toc467688485 Anchor_Toc467754831_Toc467754831 Anchor_Toc467759231_Toc467759231 Anchor_Toc467761394_Toc467761394 Anchor_Toc467763056_Toc467763056 Anchor_Toc467763194_Toc467763194 Anchor_Toc467767729_Toc467767729 Anchor_Toc468191619_Toc468191619 Anchor_Toc468200368_Toc468200368 Anchor_Toc468269753_Toc468269753 Anchor_Toc468283609_Toc468283609 Anchor_Toc468288382_Toc468288382 Anchor_Toc468288490_Toc468288490 Anchor_Toc468289619_Toc468289619 Anchor_Toc468290229_Toc468290229 Anchor_Toc470622316_Toc470622316 Anchor_Toc471288377_Toc471288377 Anchor_Toc471308381_Toc471308381 Anchor_Toc471466649_Toc471466649 Anchor_Toc471466845_Toc471466845 Anchor_Toc471467022_Toc471467022 Anchor_Toc471467087_Toc471467087 Anchor_Toc471824728_Toc471824728 Anchor_Toc471825370_Toc471825370 Anchor_Toc471825590_Toc471825590 Anchor_Toc471826059_Toc471826059 Anchor_Toc471826418_Toc471826418 Anchor_Toc471826578_Toc471826578 Anchor_Toc471826720_Toc471826720 Anchor_Toc472166885_Toc472166885 Anchor_Toc481154223_Toc481154223 Anchor_Toc481154259_Toc481154259 Anchor_Toc481156459_Toc481156459 Anchor_Toc481157334_Toc481157334 Anchor_Toc481678748_Toc481678748 Anchor_Toc481846945_Toc481846945

...

Offline Package - Creation

The Qualitia Offline Package lets you independently execute test cases without Qualitia Test Automation Studio. Creating an offline package is a two-step process.

  • Packaging Execution Engine
  • Creating Test Packages

Packaging Execution Engine

The first step of creating an offline package is to bundle Qualitia Execution Engineexecution engine.

To package execution engine:

  1. Log on to Qualitia Test Automation Studio.
  2. On the File menu, click Offline Package.
    The Browse for Folder screen is displayed.
  3. Select path to save the offline package. Note: It is
    (warning) It is recommended to create new folder with the name Qualitia-offline to save Qualitia Offline offline package.
  4. Click OK.
    The QualitiaOffline.zip is created at the newly created designated folder.
  5. Extract Qualitia Offline.zip.

Once the file is extracted successfully, execution engine is ready to use. Anchor_Ref400708001_Ref400708001 Anchor_Ref467231243_Ref467231243

Creating Test Packages

After packaging the execution engine, you can create new test packages to execute in multiple environments using "Save As XML" feature in Qualitia.
The  The Save As XML button on the Execute screen compiles the selected marked tests in suite and creates package.

...

To create new test

...

packages:

  1. Log on to Qualitia Test Automation Studio.
  2. Click Execute.
    The Suite screen is displayed.
  3. In the left pane, click the suite to view the test cases available under suite.
  4. Mark the test cases which you want to add in the tests package to be created.
    Qualitia (warning) Qualitia packages only marked test cases. If you want to package all tests available in suite, mark all test cases.
  5. Click the Save As XML button.
    The Browse for Folder screen is displayed.
  6. Select path to save the XML file.
  7. Click OK.

...

  • Suite.xml,
  • Map.xml, and
  • Test Case xmls (each for one test case.)

...

Offline Package - Deployment and Execution

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

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

...

...

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.

...

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: execute the command; java -jar qualitiaoffline-xxx.jar.

This command executes tests available at the path mentioned in the qualitia.properties file.Note:

Image Added

(warning) 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_Ref467238609Figure 2.2.2 1
Image Removed
 
Configuration properties can be changed at three different levels to better manoeuvre maneuver configurations in multiple environments.

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 properties - user-defined properties file overrides the values in qualitia.properties to be used as first argument. For example: “java -jar qualitia-offline-xxxx.jar config/userdefined.properties”

Command line arguments - command line arguments in “java -jar qualitia-offline.xxxx.jar sBrowserType=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.
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 qualitiaqualitiaoffline-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 - Command line arguments allow further fine tuning of the configurations providing arguments to the qualitiaqualitiaoffline-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 as well. 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;

...

  • qualitiaoffline-

...

  • xxxx.jar

...

  • sBrowserType=firefox

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

...

qualitiaoffline-xxxx.jar sBrowserType=firefox xmlPath=D:\QualitiaOffline\Scripts SyncTimeInSeconds=40