How to Integrate Provar Manager
3rd Party Test Results Integration
In this section, we will explain how you can import test results from other tools in JUnit or TestNG format into Provar Manager.
You can either use the assistant on any Test Cycle record or use the API.
Option 1: Assistant on a Test Cycle.
Firstly, you need to create a Test Cycle to define information like browser, device, operating system, testing tools, environment and test plan.

Once you have created a test cycle, you can use the assistant to upload your test results file and let Provar Manager process it.
- Click Upload Test Results. An Upload Test Results screen is displayed.

Above: Snapshot of Test Results Uploader on a Test Cycle record.
- In the Tester field, select the tester who will be related to the generated test executions.
- In the Test results format field, select what is the format of the file that you are uploading. We have selected JUnit.
- In the Missing Test Case Strategy field, we have selected Create. This defines what Provar Manager should do when a test case is not found in the system.
- In the Test Type field, we have selected Unit testing. In case the previously selected strategy is Create, this will define what type of test cases will be created.
- Click Next.

- Click Upload Files to select and upload the file. For example, we have uploaded an XML file (test-result.xml). Click Done.

- Click Next. And, you can see the message ‘Your test results were uploaded and are being processed.’

- Click Finish.
Note: At this point, Provar Manager will parse the file and create a test execution record for each test case. The test cases are matched based on their External Id.
As a result of following these steps, you can see Provar Manager has created a record of Test results Processing Jobs.

If you click on this record you can see the Status as Completed.

This is how the Test Results Processing Job record works:
- When you create it, the status is Draft.
- Once the test results are attached, the status can be changed to Ready so it gets processed.
- Provar Manager will automatically change the status to In Progress.
- After processing, the status will be changed to either Completed or Failed.
If you go back to the Test Cycle (click on test cycle) and refresh Test Executions (click refresh icon) and you can see it created a test execution for each of the test cases and they passed i.e. the Status is Pass. You can go to each one and see the details.
Every test result method can be seen as a Test Step Execution.

Because the selected strategy was “Create”, test cases of type Unit testing were automatically created.

Option 2: Through API
If you want to import test results via API then you will do the same thing as explained before: you will create the Test Cycle record first, then the Test Results Processing record and then upload the file to it. Afterwards, set the Status as Ready and it will be processed.
JUnit Test Results Sample and Mapping
<?xml version=”1.0″ encoding=”UTF-8″?> <testsuites disabled=”0″ errors=”1″ failures=”1″ name=”” tests=”” time=””> <testsuite errors=”1″ failures=”5″ name=”nose2-junit” skips=”1″ tests=”25″ time=”0.004″> <testcase classname=”pkg1.test.test_things” name=”test_params_func:2″ time=”0.000098″> <failure message=”test failure”>Traceback (most recent call last): File “nose2/plugins/loader/parameters.py”, line 162 </failure> </testcase> </testsuite> </testsuites> |
XML Tag | Provar Manager Object |
testsuites | N/A |
testsuite | N/A |
testcase.classname | Test Execution > Test Case (via External Id) |
testcase.name | Test Step (Action) |
failure.message | Defect (Name) |
failure.body | Defect (Description) |
TestNG Test Results Sample and Mapping
<?xml version=”1.0″ encoding=”UTF-8″?> <testng-results skipped=”0″ failed=”2″ ignored=”0″ total=”8″ passed=”6″> <suite name=”TestAll” duration-ms=”25″ started-at=”2018-03-06T17:22:48Z” finished-at=”2018-03-06T17:22:48Z”> <test name=”calculator” duration-ms=”25″ started-at=”2018-03-06T17:22:48Z” finished-at=”2018-03-06T17:22:48Z”> <class name=”com.xpand.java.CalcTest”> <test-method status=”FAIL” name=”CanAddNumbersFromGivenData” duration-ms=”1″ started-at=”2018-03-06T17:22:48Z” finished-at=”2018-03-06T17:22:48Z”> <params> <param index=”0″> <value> <![CDATA[2]]> </value> </param> </params> <exception class=”java.lang.AssertionError”> <message> <![CDATA[expected [4] but found [5]]]> </message> <full-stacktrace> <![CDATA[java.lang.AssertionError: expected [4] but found [5] at org.testng.Assert.fail(Assert.java:93) ]]> </full-stacktrace> </exception> <attributes> <attribute name=”test”> <![CDATA[CALC-1]]> </attribute> </attributes> </test-method> </class> </test> </suite> </testng-results> |
XML Tag | Provar Manager Object |
testng-results | N/A |
suite | N/A |
test | N/A |
class.name | Test Execution > Test Case (via External Id) |
test-method.name | Test Step (Action) |
params | Test Step (added to Action) |
exception | N/A |
message | Defect (Name) |
full-stacktrace | Defect (Description) |
attributes | Test Step (Comments) |
- Provar Automation
- Installing Provar Automation
- Updating Provar Automation
- Using Provar Automation
- API Testing
- Behavior-Driven Development
- Creating and Importing Projects
- Creating Test Cases
- Custom Table Mapping
- Functions
- Debugging Tests
- Defining a Namespace Prefix on a Connection
- Defining Proxy Settings
- Environment Management
- Exporting Test Cases into a PDF
- Exporting Test Projects
- Override Auto-Retry for Test Step
- Managing Test Steps
- Namespace Org Testing
- NitroX
- Provar Automation
- Provar Test Builder
- Refresh and Recompile
- Reintroduction of CLI License Check
- Reload Org Cache
- Reporting
- Running Tests
- Searching Provar with Find Usages
- Secrets Management and Encryption
- Setup and Teardown Test Cases
- Tags and Service Level Agreements (SLAs)
- Test Cycles
- Test Plans
- Testing Browser Options
- Tooltip Testing
- Using the Test Palette
- Using Custom APIs
- Callable Tests
- Data-Driven Testing
- Page Objects
- Block Locator Strategies
- Introduction to XPaths
- Creating an XPath
- JavaScript Locator Support
- Label Locator Strategies
- Maintaining Page Objects
- Mapping Non-Salesforce fields
- Page Object Operations
- ProvarX™
- Refresh and Reselect Field Locators in Test Builder
- Using Java Method Annotations for Custom Objects
- Applications Testing
- Provar Manager
- Provar Manager Setup and User Guide
- Installing Provar Manager
- Configuring Provar Manager
- How to Use Provar Manager
- Managing Your Testing Life Cycle
- Provar Manager Test Execution
- Test Executions and Defect Management
- Provar Manager Test Coverage
- How to Integrate Provar Manager
- Setting Up a Connection to Provar Manager
- Object Mapping Between Automation and Manager
- How to Upload Test Plans, Test Plan Folders, Test Plan Instances, and Test Cases
- Provar Manager Filters
- Uploading Callable Test Cases in Provar Manager
- Uploading Test Steps in Provar Manager
- How to Know if a File in Automation is Linked in Test Manager
- Test Execution Reporting
- Provar Manager Plugins
- Uploading Existing Manual Test Cases to Provar Manager with DataLoader.Io
- Provar Grid
- DevOps
- Introduction to Test Scheduling
- Apache Ant
- Configuration for Sending Emails via the Automation Command Line Interface
- Continuous Integration
- AutoRABIT Salesforce DevOps in Provar Test
- Azure DevOps
- Running a Provar CI Task in Azure DevOps Pipelines
- Configuring the Automation secrets password in Microsoft Azure Pipelines
- Parallel Execution in Microsoft Azure Pipelines using Multiple build.xml Files
- Parallel Execution in Microsoft Azure Pipelines using Targets
- Parallel execution in Microsoft Azure Pipelines using Test Plans
- Bitbucket Pipelines
- CircleCI
- Copado
- Docker
- Flosum
- Gearset DevOps CI/CD
- GitHub Actions
- Integrating GitHub Actions CI to Run Automation CI Task
- Remote Trigger in GitHub Actions
- Parameterization using Environment Variables in GitHub Actions
- Parallel Execution in GitHub Actions using Multiple build.xml Files
- Parallel Execution in GitHub Actions using Targets
- Parallel Execution in GitHub Actions using Test Plan
- Parallel Execution in GitHub Actions using Job Matrix
- GitLab Continuous Integration
- Travis CI
- Jenkins
- Execution Environment Security Configuration
- Provar Jenkins Plugin
- Parallel Execution
- Running Provar on Linux
- Reporting
- Salesforce DX
- Git
- Team Foundation Server
- Version Control
- Salesforce Testing
- Best Practices
- Troubleshooting
- Release Notes