Skip to content

Files

Latest commit

 

History

History
219 lines (156 loc) · 7.88 KB

hyperexecute-provar-integration.md

File metadata and controls

219 lines (156 loc) · 7.88 KB
id title hide_title sidebar_label description keywords url site_name slug
hyperexecute-provar-integration
Integrate Provar with HyperExecute
false
Provar
Integrate Provar with HyperExecute for Salesforce test automation. Configure, generate build files, set up licenses, and execute tests seamlessly.
LambdaTest HyperExecute
LambdaTest HyperExecute help
LambdaTest HyperExecute documentation
provar
Integrations
Products
Test case management
Automated testing
Cloud-based testing
LambdaTest
hyperexecute-provar-integration/

import CodeBlock from '@theme/CodeBlock'; import {YOUR_LAMBDATEST_USERNAME, YOUR_LAMBDATEST_ACCESS_KEY} from "@site/src/component/keys"; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify({ "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.lambdatest.com" },{ "@type": "ListItem", "position": 2, "name": "Support", "item": "https://www.lambdatest.com/support/docs/" },{ "@type": "ListItem", "position": 3, "name": "Integration with Products", "item": "https://www.lambdatest.com/support/docs/hyperexecute-provar-integration/" }] }) }} ></script>

Provar is a low-code/no-code testing tool specifically designed for Salesforce applications, enabling efficient creation and execution of UI and API tests.

This documentation guides you on how to integrate Provar seamlessly with HyperExecute to leverage distributed testing capabilities for comprehensive Salesforce test automation.

Prerequisties

Step 1: Configure the Browser Provider Information

  • Update the Desktop Settings to HyperExecuteGrid: ANY Chrome.

<img loading="lazy" src={require('../assets/images/hyperexecute/integration/products/provar/1.png').default} alt="provide access to LambdaTest account" width="1280" height="684" className="doc_img"/>

  • Click on Test Settings >> Browser Providers section. Click on the + symbol to add a new Browser Provider.

<img loading="lazy" src={require('../assets/images/hyperexecute/integration/products/provar/2.png').default} alt="provide access to LambdaTest account" width="1280" height="684" className="doc_img"/>

  • You will receive a pop-up to enter your configurations:

    • Enter the Name for your new Browser Provider.
    • Select the Type as LambdaTest
    • Enter your LambdaTest User Name and Access Key
    • Update all the browser options that you want to run your tests on.
    • Update all the capabilities that you want to pass through the test.
  • Click on Test Connection >> OK

<img loading="lazy" src={require('../assets/images/hyperexecute/integration/products/provar/3.png').default} alt="provide access to LambdaTest account" width="1280" height="684" className="doc_img"/>

Step 2: Generate and Update the build.xml file

You have to generate the build.xml file using the Provar GUI. You can follow the steps mentioned in the documentation to generate your build file.

  • Update the prover.home property with the installation path of Provar in HyperExceute as shown below:
<property name="provar.home" value="../ProvarHome"/>
  • Add the following tags inside your build.xml file. These tags should be present inside the <project default="runtests"> tag as mentioned below:
<property name="license.path" value="../licenseHyperexeute"/>
<property name="unit.test" value="*.testcase" />
  • Under the Run-Test-Case tag, replace the <fileset> tag with the following code:
<fileset id="testcases" file="../${unit.test}" ></fileset>

Step 3: Set the Provar License as Secret

You will have to create a new secret in HyperExecute.

  • Set Key Name as provarLicense
  • Set the Value as the contents of the license file.

Step 4: Setup the CLI in your Test Suite

After cloning / downloading the sample repo, you need to setup the CLI and the environment variables.

Download the HyperExecute CLI

The CLI is used for triggering the tests on HyperExecute. It is recommend to download the CLI binary on the host system and keep it in the root directory of the suite to perform the tests on HyperExecute.

You can download the CLI for your desired platform from the below mentioned links:

Platform HyperExecute CLI
Windows https://downloads.lambdatest.com/hyperexecute/windows/hyperexecute.exe
MacOS https://downloads.lambdatest.com/hyperexecute/darwin/hyperexecute
Linux https://downloads.lambdatest.com/hyperexecute/linux/hyperexecute

Setup Environment Variable

Now, you need to export your environment variables LT_USERNAME and LT_ACCESS_KEY that are available in the LambdaTest Profile page.

Run the below mentioned commands in your terminal to setup the CLI and the environment variables.

{`export LT_USERNAME="${ YOUR_LAMBDATEST_USERNAME()}" export LT_ACCESS_KEY="${ YOUR_LAMBDATEST_ACCESS_KEY()}"`}
{`set LT_USERNAME="${ YOUR_LAMBDATEST_USERNAME()}" set LT_ACCESS_KEY="${ YOUR_LAMBDATEST_ACCESS_KEY()}"`}

Step 5: Configure YAML in your Test Suite

Replace the pre command with your own command that discovers the desired .testcase files.

---
version: 0.2
globalTimeout: 150

runson: win

runtime:
  language: java
  version: "11"

autosplit: false

concurrency: 4

retryOnFailure: true
maxRetries: 2

env:
  ProvarSecretsPassword: <ENTER_YOUR_PASSWORD>

pre:
  - ls

post:
  - cat ./ANT/.lambdatestBuild.xml

framework:
 name: provar
 discoveryType: test
 additional_args:
  discoveryLevel: file # required

Step 6: Execute your Test Suite

NOTE : In case of MacOS, if you get a permission denied warning while executing CLI, simply run chmod u+x ./hyperexecute to allow permission. In case you get a security popup, allow it from your System PreferencesSecurity & PrivacyGeneral tab.

Run the below command in your terminal at the root folder of the project:

./hyperexecute --config RELATIVE_PATH_OF_YOUR_YAML_FILE

OR use this command if you have not exported your username and access key in the step 2.

{`./hyperexecute --user ${ YOUR_LAMBDATEST_USERNAME()} --key ${ YOUR_LAMBDATEST_ACCESS_KEY()} --config RELATIVE_PATH_OF_YOUR_YAML_FILE `}

Step 5: Monitor Your Tests

<img loading="lazy" src={require('../assets/images/hyperexecute/integration/products/provar/4.png').default} alt="provide access to LambdaTest account" width="1280" height="684" className="doc_img" />