Running Provar on Linux

Introduction

The following page describes how to set up Provar to run on Linux and how to troubleshoot common issues with setup.

Refer to ANT for more information about configuring ANT.

Note: The following steps have been tested against Ubuntu 16.04. Other Linux versions have not been tested.

Setup

Ensure that you have installed Java 1.8 or later and ANT 1.9.0 or later prior to following this setup process.

Step 1: Set path and Environment variables:

  • Ant and Java should be set under PATH
  • Create ANT_HOME environment variable
  • Create PROVAR_HOME environment variable (set ProvarHome location as defined in step 3, e.g. /Downloads/ProvarHome)

Step 2: Add your Provar license to the following location {USERHOME}\Provar\.licenses.

Step 3: Set up Provar libraries. Create a ProvarHome folder (e.g. /Downloads/ProvarHome) then download and unzip ProvarANT.zip at ProvarHome location. ProvarHome should contain the following folders:

Step 4: Set up your Provar Project: Create a ProvarProject folder (e.g. /Downloads/ProvarProject ) then download and unzip Provar Project at ProvarProject location.

Step 5: Trigger the execution by going to the location of build.xml {ProvarProject}\{Project}\ANT and running the following command: ant –f build.xml

You should see execution logs on the terminal. A results file will be created at the location defined in build.xml. (The default location is {ProvarProject}\{Project}\ANT .) 

Troubleshooting

License details are required.  License path: null

Description: The logs show the message “License details are required.  License path: null” although the license has already been added to the Build.xml file.

Solution: Try the following:

  • Check entry of Provar License Path in Build.xml file
  • Check License.properties file location and compare path added to build.xml file.
  • Ensure that all cases match: Linux is case sensitive

Error while loading shared libraries: libX.….: cannot open shared object file: No such file or directory

Solution: Try the following:

  • Install package with the following command: sudo apt-get install libxi…. libgconf-2-4
  • Check version of chrome browser: download a compatible chrome driver from here, then unzip and paste into the Project lib folder

[WebDriverException: unknown error: Chrome failed to start: exited abnormally

Description: Console logs show the above error while executing Provar test cases through Jenkins.

Solution: Try the following:

  • Check installed chrome version and compatible chrome driver version
  • Try this solution from StackExchange
2017-06-23T15:53:18+00:00

Leave A Comment