Documentation

Looking for something in particular?

ANT Licensing

Provar supports using a relative ANT licensing path and an absolute one. This aids in running Provar within cloud-based Continuous Integration & Continuous Deployment tools where the full file specification isn’t always static and if you have a mix of environments (e.g., MS Windows, Mac OS, Linux) sharing the same Provar build.xml file.

This page provides more information about Provar’s license processing. Refer to ANT Task Parameters and Running Provar on Linux for more details.

Provar ANT build.xml License Path

Within a Provar Build.xml, the Run-Test-Case task includes an optional attribute for licensePath. The information below relates to how you can specify the licensePath to suit running Provar ANT tasks.

Specified LicensePath

The license path can be a folder or an exact file path.

If it is a file, then it is used as it is. Note that the file must be a properties file (name and value pairs) and in the format expected by Provar.

The following includes an example of the information provided in a properties file.

#Thu Jul 05 15:52:26 IST 2018
licenseStatus=Activated
licenseType=FixedSeat
licenseKey=XXXXX-XXXXX-XXXXXX-XXXXX-XXXXX
lastOnlineAvailabilityCheckUtc=1530786146160

If it is a folder, Provar will iterate over all the files contained within, check for property files, and attempt to use the first active license found.

Note: Cleaning out inactive or expired Provar license key files is recommended to slightly speed up your ANT execution.

LicensePath Resolution

  • If an absolute path (e.g. D:/Users/Provar/.licenses, /user/provar/serverkeys)
    • return to the same path
  • If a relative (e.g. ../serverkeys)
    • Check under the Provar home location for the custom license path or ‘.licenses’ as default (this is the change in 1.9.4)
      • If found, use it
    • Check under userhome/Provar for the custom license path or ‘.licenses’ as default; (for the existing customers who had it in userhome)
      • If found, use it
      • Otherwise, it will be as derived from the above step

The Provar tool should not be affected by this and should always use the UserHome/Provar/.licenses folder.

ANT licensing logs should show the final file path and the appropriate error message.

Examples of LicensePath

  • No LicensePath attribute set
    • .licenses folder under Provar Home or UserHome/Provar should be found
  • License Path set as C:/Provar_Licenses
    • This is an absolute path; this folder is searched to find the properties file and the first active license.
  • License Path set as C:/Provar_Licenses/ExecutionLicense.properties
    • This is a file path. It should be in the expected format by Provar and read for the active license
  • License Path set as ../Provar_Licenses
    • This is a relative path and should be found in either the ProvarHome or UserHome folders.
Review Provar on G2
Documentation library

Trying to raise a case with our support team?

We use cookies to better understand how our website is used so we can tailor content for you. For more information about the different cookies we use please take a look at our Privacy Policy.

Scroll to Top