We're here to help

Making basic adjustments to test steps

Now that you’ve created your first test case, let’s review it in Provar Desktop.

Continuing with our Opportunity test from the previous exercise, let’s say you’ve just found out that the Stage field should be the first field set on the new Opportunity. Do you have to rebuild the whole test? No way! 

  1. To view a test case that you have created already, go to the Navigator tab. You will see a folder labeled Tests. (If you have more than one folder within your test project, you can click the triangle to the left of Tests to expand the folder.)
  2. Click the test case you want to adjust. In this case, click the test you just created. In the center of Provar Desktop you will see your test case open with the test steps ordered sequentially as they were in the Test Builder. 
  3. You can drag-and-drop test steps to re-order them in the test case. Try moving the Stage test step up so that it is the first field to be set on the New screen. Note that there is an asterisk (*) in front of the test case name. This means that you have unsaved changes. 
  4. Click the Save button to save your changes.

Provar also gives you some more Test Step options via the right-click menu.  Here’s some mini exercises you can do to see how these steps work.  

The following mini exercises all deal with the step that sets the Stage field:

 

Rename step

  1. This option allows you to rename a step. Right-click on the step and click Rename Step.
  2. Enter the text “This Step Sets The Stage”
  3. Click Save and you will see the test step with a new name.

 

Copy/paste

  1. This allows you to copy and paste a step. Right-click on the step and click Copy.
  2. Now that the step has been copied, right-click on the step again and click Paste.

 

Delete step

  1. This option allows you to delete an unwanted step.  Since we now have two steps setting the stage, let’s delete one. Right-click on the step and click Delete.
  2. Confirm deletion.

 

Toggle breakpoint

This option is useful for debugging your tests.  A breakpoint will pause your test wherever you put it. Note: Breakpoints are only recognized by Debug and Test Builder run modes.

  1. Right-click on the step and click Toggle Breakpoint.
  2. Run the test in Test Builder mode by clicking Test Builder from the top bar.
  3. The test should pause on the step setting the stage. Click the green Resume icon in the Test Builder header to continue past the breakpoint.
  4. Once the test completes, you can close the Test Builder. To remove the breakpoint, simply right-click on the step and click Toggle Breakpoint.

 

Disable Test Item/Enable Test Item

This option allows you to disable a test step. Let’s try it out and see what happens.  

  1. Right-click on the step and click Disable Test Item.
  2. Now let’s run the test and see what happens. Click Run in the top bar.
  3. Watch the test run. You’re going to see that when you try to save this Opportunity, there will be an error because a required field hasn’t been filled in.  This is because the step that sets the Stage is disabled.

To enable the step, simply right-click on the step and click Enable Test Item.  Now your test will run smoothly again. Give it a spin if you’d like!