Skip to content

Inflectra/rapise-sfdc

Repository files navigation

Overview

Framework for testing Salesforce applications

  • Reusable actions are defined in Sfdc module.
  • Data for each test case is defined in Data.xlsx.
  • Dropdowns.xlsx contains lists of values for RVL dropdowns.
  • Output.xlsx is used to persist data between test executions (see SetOutputValue, GetOutputValue common functions below).

The way of test parameterization and reading data from an Excel spreadsheet is described in the docs:

Data-Driven Testing

Browser Profiles

The framework includes a local Chrome browser profile located in Profiles\SeleniumProfiles folder. This profile is configured to launch Chrome with the same user data profile to deal with MFA in Salesforce. It launches Chrome with these arguments:

["disable-notifications", "user-data-dir=C:\\ProgramData\\Inflectra\\Rapise\\Temp\\Chrome"]

Common Actions

All actions are defined in Sfdc module and implemented in Sfdc.js. Look into this file for details.

Global Object

Sfdc.Launch

Launches Salesforce in a browser. SfdcUrl, UserName, Password must be set in Config.xlsx

SfdcLaunch RVL

Sfdc.OpenApp

Opens application.

SfdcOpenApp RVL

OpenApp

Sfdc.NavigateModule

Navigates to module using nav bar.

SfdcNavigateModule RVL

NavigateModule

Sfdc.SelectListView

Selects list view.

SfdcSelectListView RVL

SelectListView

Sfdc.SearchTable

Searches data in a table.

SfdcSearchTable RVL

SearchTable

Sfdc.SelectComboboxItem

Selects item from a combobox.

SfdcSelectComboboxItem RVL

SelectComboboxItem

SetOutputValue

Writes key/value pair to Output.xlsx

SetOutputValue RVL

GetOutputValue

Reads value from Output.xlsx

GetOutputValue RVL