Creating Test Cases

Introduction

A Test Case is a collection of Test Steps representing a given use case. When you execute a Test Case, all Test Steps are executed sequentially. Test Cases are stored with the file extension .testcase in the Test Project’s tests folder.

Creating a new Test Case

To create a new Test Case, start by selecting ‘New Test Case’ from the menu bar or File in the top left hand corner of Provar Desktop.

Provar will present a wizard to help create the new Test Case.

Choose which Salesforce connection you would like to use and select the Salesforce Application (this is the tab in the top right hand corner of a Salesforce screen, e.g. Sales, Call Center, Console, etc.). You can leave this as default if you are unsure.

If you want to add UI Test Steps with the Test Builder, leave ticked the checkbox ‘Launch Test Builder’. This will log you into Salesforce automatically using the Connection and Salesforce Application you selected. Refer to Adding UI Test Steps for more information on using the Test Builder.

Then click the ‘Finish’ button.

Adding Test Steps

Once you’ve created your Test Case you can start adding Test Steps to it. You can do this via the Salesforce UI with the Test Builder (launched from the ‘New Test Case’ screen above, or by clicking the ‘Test Builder’ icon at the top of Provar Desktop):

Alternatively, you can add an API Test Step to set up some test data, or use one of Provar’s many Test APIs to perform other tasks.