Automation V3: Managing 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, or add a Salesforce API to set up some test data, or use one of Automation’s many test steps to perform other tasks.
In Automation, use the test case view to review all the test steps in your current test case. Click on any test step to see its Parameters and Settings. You can make changes and save your test case at any time.
Parameters
Parameters are containers of information relating to your test steps and to the overall test case. Each Parameter will have a defined format for entering the information, but these formats can often be amended by the tester depending on requirements. Most formats are readily intuitive as they have guided inputs.
Some common formats are as follows.
Expression: A common format that supports complex expressions, variables or text (see Writing Expressions section below for more information).
Choice: Another common format that supplies a picklist/dropdown of defined data options.
Date: Supports date values, entered using a calendar view.
Boolean: Supports boolean/checkbox values.
Number: Supports only numeric values.
Password: Accepts alphanumeric and special characters, values entered are obscured and stored in the project .secrets file.
UI Choice: Defines the screen and field options for UI testing (generally autopopulated through the Test Builder)
UI Action: Defines the actions available such as Click, Set or Hover (generally autopopulated).
Specific parameters will vary according to the Test Step, but refer to the common test step parameters below for information on generic parameters such as Test Scope and Screenshot Options.
Writing expressions
Any field type that allows you to enter any value will also allow you to pass in an expression. If you are unable to pass in an expression, you will need to change the editor to allow you to pass in expressions.
To update an editor, hover over the field, click the icon on the right, and select Switch to Expression Editor.
In Provar, expressions are declared inside curly braces {}. They can include functions and variables as well as static text. This gives the user great flexibility but it also presents the opportunity for errors.
Note: We recommend using Content Assist when building expressions to help prevent syntax issues. You can access Content Assist by choosing CTRL + spacebar. Provar will provide a list of possible options to choose from.
See below for some examples of using expressions to calculate values and access queried information. Refer to Using Functions for more information on the functions available in Automation.
Simple 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 a variable 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 and fields. We can access these values in different ways.
In the examples below we have an Account object which has a FirstName and LastName from running a query. Using expressions, we can access these values in various ways:
{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.
Common test step parameters
There are certain test step parameters which you will see in many Test Steps.
Result scope
All values in Provar have a scope which determines how long they live for. This prevents long test runs from accumulating lots of values that are no longer needed, while allowing you to store important ones for the entire duration if you need to.
The following scope options are supported:
- Test Run: Values are retained for the entire duration of your test run
- Test Folder: Values are discarded when the folder they were created in finishes
- Test Case: Values are discarded at the end of the Test Case they were created in
- Group Step: Values are discarded at the end of the parent Group Step they belong to
- Test Step: Values are discarded at the end of the Test Step that created them
Wait
Wait indicates that Provar will wait after performing the current action and before executing the next step.
The Before Wait setting gives you the ability to set a wait time before the step executes.
The After Wait setting gives you the ability to set a wait time after the step executes.
Note: Before/After Wait settings are useful when dealing with unpredictable page load times.
The Auto Retry setting is selected by default, Provar will proceed right after the current operation is finished and will manage the sync automatically. Additionally, it automatically retries the operation if for any reason the field does not appear. For options other than Auto Retry, enter the timeout value in seconds. This defines a maximum amount of time that Provar should wait for the condition to be fulfilled before moving on to the next Test Step.
If the option For a Pop to Appear is chosen, the name of the pop-up window must also be specified.
Screenshot options
This section contains two options:
Screenshot Before: Take a screenshot prior to executing the test step.
Screenshot After: Take a screenshot once the test step is executed.
Each option has the following choices:
- No Screenshot: No screenshot is required. This is the default value
- Capture the Visible Area: A screenshot will be taken that consists of only the area currently visible around the active field
- Capture the Entire Page: A screenshot will be taken that consists of the entire page when scrolled from top to bottom
These screenshots are displayed in the Screenshots tab in Executions after the test case is executed. Screenshots will also appear on run reports.
- Home
- Automation V3: System Requirements
- Automation V3: Browser and Driver Recommendations
- Installing Provar Automation V3
- Updating Provar Automation V3
- Licensing Provar Automation V3
- Automation V3: Granting Org Permissions to Provar Automation
- Automation V3: Optimizing Org and Connection Metadata Processing in Provar
- AI with Provar Automation V3
- Using Provar Automation V3
- Automation V3: Feature-by-Feature Guide
- Automation V3: Provar Automation
- Automation V3: Creating a New Test Project
- Automation V3: Import Test Project from a File
- Automation V3: Import Test Project from a Remote Repository
- Automation V3: Import Test Project from Local Repository
- Automation V3: Commit a Local Test Project to Source Control
- Automation V3: Salesforce API Testing
- Automation V3: Behavior-Driven Development
- Automation V3: Consolidating Multiple Test Execution Reports
- Automation V3: Creating Test Cases
- Custom Table Mapping in V3
- Functions in V3
- Automation V3: Using Functions
- Automation V3: Count
- Automation V3: DateAdd
- Automation V3: DateFormat
- Automation V3: DateParse
- Automation V3: GetEnvironmentVariable
- Automation V3: GetSelectedEnvironment
- Automation V3: IsSorted
- Automation V3: Not
- Automation V3: NumberFormat
- Automation V3: Round
- Automation V3: StringNormalize
- Automation V3: StringReplace
- Automation V3: StringTrim
- Automation V3: TestCaseErrors
- Automation V3: TestCaseName
- Automation V3: TestCaseOutCome
- Automation V3: TestCasePath
- Automation V3: TestCaseSuccessful
- Automation V3: TestRunErrors
- Automation V3: UniqueId
- Automation V3: Debugging Tests
- Automation V3: Creating Custom Test Steps
- Automation V3: Defining Proxy Settings
- Automation V3: Environment Management
- Automation V3: Exporting Test Projects
- Automation V3: Japanese Language Support
- Automation V3: Customize Browser Driver Location
- Automation V3: Managing Test Steps
- NitroX in V3
- Automation V3: Provar Test Builder
- ProvarDX in V3
- Automation V3: Refresh and Recompile
- Automation V3: Reintroduction of CLI license Check
- Automation V3: Reload Org Cache
- Automation V3: Reporting
- Automation V3: Running Tests
- Automation V3: Searching Provar with Find Usages
- Automation V3: Secrets Management and Encryption
- Automation V3: Setup and Teardown Test Cases
- Automation V3: Tags and Service Level Agreements (SLAs)
- Test Cycles in V3
- Automation V3: Test Plans
- Automation V3: Testing Browser – Chrome Headless
- Automation V3: Testing Browser Options
- Automation V3: Tooltip Testing
- Using Custom APIs in V3
- Callable Tests in V3
- Data-Driven Testing in V3
- Page Objects in V3
- Automation V3: Introduction to XPaths
- Automation V3: Creating an XPath
- Automation V3: JavaScript Locator Support
- Automation V3: Maintaining Page Objects
- Automation V3: Mapping Non-Salesforce Fields
- Automation V3: ProvarX™
- Automation V3: Refresh and Reselect Field Locators in Test Builder
- Automation V3: Create different page objects for different pages
- Applications Testing in V3
- Automation V3: Database Connections
- Automation V3: PDF Testing
- Automation V3: Email Testing in Automation
- Automation V3: Email Testing Examples
- Automation V3: Gmail Connection in Automation with App Password
- Automation V3: App Configuration for Microsoft Connection in MS Portal for OAuth 2.0
- Automation V3: OAuth 2.0 Microsoft Exchange Email Connection
- Automation V3: Support for Existing MS OAuth Email Connection
- Automation V3: OAuth 2.0 MS Graph Email Connection
- Automation V3: Create a Connection for Office 365 GCC High
- Automation V3: Mobile Emulation (Salesforce Mobile)
- Automation V3: Using Provar with Amazon Web Services (AWS) Device Farm
- Automation V3: Web Services
- Automation V3: Integrating with Jira
- Automation V3: Provar Feature Flags and Properties Configuration
- Automation V3: Using Java Method Annotations for Custom Objects
- Automation V3: Read Test Step
- Automation V3: String Test Steps
- Automation V3: Generate Test Case
- Automation V3: For Each Test Step
- Automation V3: Page Object Cleaner
- Automation V3: Assert Salesforce Layout
- Automation V3: Break Test Step
- Automation V3: Override Auto-Retry for Test Step
- Automation V3: Assert Test Step
- Automation V3: Extract Salesforce Layout
- Automation V3: Wait For Test Step
- Automation V3: Finally Test Step
- Automation V3: Switch Test Step
- Automation V3: Sleep Test Step
- Automation V3: Apex Bulk
- Automation V3: Set Values Test Step
- Automation V3: Group Steps Test Step
- Automation V3: If Test Step
- Automation V3: UI Fill
- Automation V3: UI Navigate
- Automation V3: List Compare
- Automation V3: Apex Execute
- Automation V3: While Test Step
- Automation V3: Fail Test Step
- Automation V3: UI Connect
- Automation V3: UI Action
- Automation V3: UI With Row
- Automation V3: Set Values
- Automation V3: UI Assert
- Automation V3: UI Handle Alert
- Automation V3: UI On Screen
- Automation V3: Test Palette Introduction
- DevOps with V3
- Automation V3: Introduction to Provar DevOps
- Automation V3: Introduction to Test Scheduling
- Automation V3: Setting Java Development Kit (JDK) Environment Variables
- Automation V3: Configuration on Jenkins
- Automation V3: Version Control and DevOps
- Automation V3: Setting up Continuous Integration
- Automation V3: Execution Environment Security Configuration
- Automation V3: Bitbucket Pipelines
- Automation V3: Perfecto Mobile
- Automation V3: ANT Task Parameters
- Automation V3: Provar Jenkins Plugin
- Automation V3: Running Automation Tests on Jenkins
- Automation V3: Configuring the Automation Secrets Password in Microsoft Azure Pipelines
- Automation V3: Parallel Execution in Microsoft Azure Pipelines using Test Plans
- Automation V3: Parallel Execution in Microsoft Azure Pipelines using Targets
- Automation V3: Parallel Execution in Microsoft Azure Pipelines using Multiple build.xml Files
- Automation V3: Parallel Execution in GitHub Actions using Test Plan
- Automation V3: Running Provar on Linux
- Automation V3: CircleCI Orbs
- Automation V3: CircleCI Common Build Errors
- Automation V3: CircleCI via Docker
- Automation V3: Copado Integration Introduction
- Automation V3: Copado Configuration
- Automation V3: Copado Architecture Overview
- Automation V3: Docker Runner
- Automation V3: Running Provar Tests on Docker using Docker File
- Automation V3: Docker Continuous Integration
- Automation V3: Setting up Continuous Integration with Jenkins for Docker
- Automation V3: Generating the build.xml File for Docker
- Automation V3: Flosum Configuration
- Automation V3: Flosum Integration Introduction
- Automation V3: Flosum Architecture Overview
- Automation V3: Parallel Execution in GitHub Actions using Multiple build.xml Files
- Automation V3: Parallel Execution in GitHub Actions using Targets
- Automation V3: Remote Trigger in GitHub Actions
- Automation V3: Parallel Execution in GitHub Actions using Job Matrix
- Automation V3: Gearset DevOps CI/CD via Jenkins
- Automation V3: GitLab Continuous Integration
- Automation V3: GitHub Desktop – Creating a Git Repository for Automation Projects
- Automation V3: Integrating GitHub Actions CI to Run Automation CI Task
- Automation V3: Provar Test Results Package
- Automation V3: Running a Provar CI Task in Azure DevOps Pipelines
- Automation V3: Amazon Web Service (AWS) & Jenkins Configuration
- Automation V3: ANT: Generating ANT Build File
- Automation V3: ANT Licensing
- Automation V3: Reading Data from Excel
- Automation V3: Configuration on other CI tools
- Automation V3: Setting Apache Ant Environment Variables
- Automation V3: BrowserStack Desktop
- Automation V3: Integrating with LambdaTest
- Automation V3: Sauce Labs Desktop
- Automation V3: AutoRABIT Salesforce DevOps in Provar Test
- Automation V3: Selenium Grid
- Automation V3: Working with Git
- Automation V3: Configuration for Sending Emails via the Automation Command Line Interface
- Automation V3: Parameterization using Environment Variables in GitHub Actions
- Automation V3: Slack Integration with Automation
- Automation V3: Zephyr Cloud and Server
- Automation V3: Adding a Salesforce Communities Connection
- Automation V3: Integrating with Sauce Labs Real Device
- Automation V3: Travis CI
- Automation V3: Salesforce DX Integration
- Automation V3: Variable Set Syntax
- Salesforce
- Automation V3: Adding a Salesforce OAuth (Web Flow) Connection
- Automation V3: Internationalization Support
- Automation V3: Salesforce Release Updates
- Automation V3: Adding a Salesforce Connection
- Automation V3: Adding a Log-on As Connection
- Automation V3: Salesforce Lightning Web Component (LWC) Locator Support
- Automation V3: Adding a Salesforce OAuth (JWT Flow) Connection
- Automation V3: Salesforce Console Testing
- Automation V3: Adding a Salesforce Portal Connection
- Automation V3: Visualforce Testing
- Automation V3: List and Table Testing
- Recommended Practices with V3
- Automation V3: Provar Naming Standards
- Automation V3: Salesforce Connection Best Practices
- Automation V3: Automation Planning
- Automation V3: Supported Testing Phases
- Automation V3: Best practices for the .provarCaches folder
- Automation V3: Best practices for .pageObject files
- Automation V3: Avoid Metadata performance issues
- Automation V3: The Best Ways to Change Callable Test Case Locations
- Automation V3: Improve Your Metadata Performance
- Automation V3: Abort Unused Test Sessions/Runs
- Automation V3: Create Records via API
- Automation V3: Test Case Design
- Automation V3: Increase auto-retry waits for steps using a global variable
- Troubleshooting with V3
- Automation V3: How to Use Keytool Command for Importing Certificates
- Automation V3: Resolving High Memory Usage
- Automation V3: Refresh Org Cache Manually
- Automation V3: Show Hidden Provar Files on Mac
- Automation V3: Add Permissions to Edit Provar.ini File
- Automation V3: Test Builder Does Not Launch
- Automation V3: Provar License Issue Solution
- Automation V3: How to Configure a Single Sign-On Connection
- Automation V3: Out of Memory Error During CI Execution
- Automation V3: Add Gmail Firewall Exception
- Automation V3: Add a License Firewall Exception
- Automation V3: Resolving Jenkins License Missing Error
- Automation V3: Increase System Memory for Provar
- Automation V3: Resolving Metadata Timeout Errors
- Automation V3: Java Version Mismatch Error
- Automation V3: Provar Manager 3.0 Install Error Resolution
- Automation V3: Test Case Does Not Run on IE Browser
- Automation V3: Test Builder Not Working Correctly
- Automation V3: Setting Up a Connection to Provar Manager
- Automation V3: Provar Manager – Test Execution Reporting
- Automation V3: Provar Manager Filters
- Automation V3: Importing 3rd-Party Test Projects
- Automation V3: Uploading Test Steps in Provar Manager
- Automation V3: Test Management
- Automation V3: Provar Manager Test Operations
- Automation V3: Provar Manager Test Execution
- Automation V3: Release Management
- Automation V3: Provar Manager Plugins
- Automation V3: Provar Manager Test Coverage
- Automation V3: Provar Manager Setup and User Guide
- Automation V3: Uploading 3rd-Party Test Results
- Automation V3: Uploading Existing Manual Test Cases to Provar Manager with DataLoader.Io
- Automation V3: Quality Journey, Quality Center, and Dashboards
- Automation V3: Object Mapping Between Provar Automation and Provar Manager
- Automation V3: Uploading Callable Test Cases in Provar Manager
- Automation V3: Metadata Coverage with Manager
- Automation V3: Test Plan Scheduling
- Automation V3: Provar Manager Version Control Setup
- Automation V3: Setting Up Provar Grid