Adding Test Steps
Introduction to the Test Builder
The fastest way of building UI Test Cases in Provar is with the Test Builder.
The Test Builder, a Chrome 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.
If you are adding non-UI Test Steps, this should be done from Provar Desktop. (Refer to Adding Non-UI Test Steps for more information.)
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’ 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’. (Your test element will often be a field, but the same principles apply to any other elements, such as buttons or links.)
Alternatively, you can select the field by clicking or tabbing onto it and then use ALT-A.
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.)
Refer to the following pages for more information about each type of UI Test Step: