We're here to help
Provar Test Builder
The fastest way of building UI test cases in Provar is with the Test Builder.
The Test Builder, an Electron application, is an interactive tool for authoring and debugging UI test cases. The Test Builder captures fields and values on your Salesforce (and non-Salesforce) webpages and adds them to your test case as test steps. This allows you to build up test cases rapidly, authoring and debugging as you go.
The Test Builder also:
- Creates Page Objects and adds fields to it, if a field needs to be specially mapped (e.g. on a Visualforce page)
- Runs test cases for debugging, supporting breakpoints and forwards and backwards stepping
- Captures variables which are visible during and at the end of the test execution
Adding Test Steps with the Test Builder
The Test Builder is the fastest way of adding UI Test Steps to a test case.
To add UI test steps using the Test Builder, first launch the Test Builder. This can be done by clicking the Test Builder icon () at the top of Provar Desktop, or by ticking the Launch Test Builder Session checkbox as you are creating the test case. (Refer to Creating test cases for more information.)
Once you have launched Test Builder and it has connected you to Salesforce, right-click on the element you want to perform an action on and select Add to Test Case.
Draft test steps
Once you have added the element to your test case, a draft test step will be created in the Test Builder. This allows you to add or amend information in the test step before it is added to the test case.
Provar will use its knowledge of your Org to default as much information as possible in the draft test step. For a standard Salesforce field on a standard layout, Provar will default the Main Page, Field Name and the Value, if a value exists.
Since this is only a draft test step, you can edit any information prior to saving, for example adding or amending the Value.
To save the test step, select Add or Add & Do. Add will just save the step without execution, whereas Add & Do will save the step and execute it simultaneously. Add & Do is generally recommended when you are building a test case. (If you press ENTER on your keyboard at this stage, it will perform the Add & Do action.)