Editing Test Steps

Introduction

After your Test Steps have been added, you may need to customize them further.

In Provar Desktop, it is possible to review all the Test Steps in your current Test Case and to click on any Test Step to see its Parameters and Settings. These can be amended and saved to your Test Case at any time.

Parameter Formats

Parameters are populated using various different formats, including Expression, Date, Boolean and Number. These are identified by the following icons in the tool:

Most of these parameter formats are readily intuitive, since they have guided inputs such as dropdowns, checkboxes and date calendars.

Specific parameters vary according to the Test Step, but refer to Common Test Step Parameters for information on generic parameters such as Test Scope and Screenshot Options.

Expressions

Expressions are little more complex than other parameter formats, since they allow the input of variables and functions as well static text. This gives the user more control and flexibility but it also presents the opportunity for errors.

The Expression Editor is a powerful tool for inputting Expressions.

  • You can type text, functions or add Expressions.  Expressions are known to Provar as anything inside curly braces {}
  • You can choose CTRL spacebar or right click and choose Content Assist. Provar will provide a pop-up with a list of possible options to choose from

Examples:

  • {1+1} – Will perform simple addition e.g. 2
  • {1/2} – Will perform simple division e.g. 0.5
  • {itemvalue + total} – Will work with Variables where itemvalue and total are previously created variables
  • My name is {name} – Combine strings and variables.  Where name is set to “David”  e.g. “My name is David”
  • {(item + total)>100} – Expressions, where Item and Total > 100  e.g. true
  • {(item + total)>100 and (item + total) <200} –  Supports and/or logic gates e.g. true

Complex Expressions

When testing with Salesforce we work with objects. We can access these values in different ways.

In the examples below we have an Account object which has a FirstName, LastName from running a database query.

  • {AccountRows.FirstName} –  Select full stop to see a list of available child variables
  • {AccountRows[LastName=”ReECA1″].FirstName} –  Filter a list of values using inline criteria
  • {AccountRows[1].FirstName} –  Choose the first value

Further Reading

2017-05-12T11:34:48+00:00

Leave A Comment