testRigor & Salesforce
  • NO-CODE UI TESTING: Guide for testRigor & Salesforce
  • Getting Started
    • Get a Salesforce Hands-On Playground Org (free)
    • Get testRigor (free) and create a Test Suite
    • Create Test Case (T00001)
    • Navigation in Salesforce
    • Navigation in testRigor
  • BASIC TEST CASES
    • Record, edit and play a Test Case (T00002)
    • Create and convert a Lead (T00003)
    • Create more records (T00004)
    • Check Account Validation Rule (T00005)
  • ADVANCED TEST CASES
    • Account Action and List View Button (T00006)
    • Validate Field Value Using REST API (T00007)
    • E2E: Lead entry (Titan) ➔ Salesforce ➔ Email
  • OTHER TEST SCENARIOS
    • Submit a Test Lead
    • TH: Opportunity Won THEN Create Contract
    • Monitor data in your website
    • Monitoring in Production
  • FLOW TEST CASES
    • Screen Flow: Update Email Address
  • E-BIKES SAMPLE APP
    • E-Bikes sample app description
    • testRigor version of the UTAM TEST (EBIKES-00001)
    • Product Explorer - Electra X3 (EBIKES-00002)
    • Reseller Order - Create (EBIKES-00003)
    • Case - Create (EBIKES-00004)
  • LWC RECIPES SAMPLE APP
    • LWC Recipes sample app description
    • Test Case for LWC Recipes (LWC-00001)
  • CORAL CLOUDS SAMPLE APP
    • Coral Clouds sample app description
    • Experience - Generate Description using AI (CC-00001)
    • Experience - Generate Reviews Summary using AI (CC-00002)
  • MORE INFORMATION
    • About testing
    • About testing in Salesforce 🤔
    • About test automation
    • About Test-Driven Development (TDD)
    • About testRigor
    • About using testRigor
    • About other solutions
  • FEEDBACK
    • Questions? - Comments!
Powered by GitBook
On this page
  • Record a simple Test Case
  • Add and Run the Test Case
  • Add a couple of checks to the Test Case
  • Change values of the Opportunity in Salesforce
  • Re-Run the Test Case in testRigor
  • Modify Test Case so that it will Pass
  1. BASIC TEST CASES

Record, edit and play a Test Case (T00002)

Record a simple Test Case

  • In Salesforce

    • Login to your Salesforce Org

    • Click tR Chrome extension icon

    • Click "Start new recording" (the icon starts to blink)

      • Click: "Search"

      • Type: "Edge SLA"

      • Click the Opportunity that shows up

    • Click the blinking tR Chrome extension icon

      • Click "Stop recording"

      • Select Test Suite: My Test Suite 001

      • Enter Description: "T00002 - Check Edge SLA"

      • Check and edit "Recorded steps"

        • Should look sth like the snippet below :

          • (if not then you can copy-paste the snippet to the )

login
click "Search..." 
enter "Edge SLA" into "Search..." 
click "Edge SLA" below "Search: All"

Add and Run the Test Case

  • Click "Add and Run".

  • Switch to testRigor.

  • Observe results in testRigor by navigating to the Test Case that just got created.


Add a couple of checks to the Test Case

  • Click: "Test Cases"

  • In "T00002 - Check Edge SLA"

    • Click: "Quick actions" > "Edit test case"

  • Append these lines:

/// SIMPLE CHECKS
click "Details"
check that page contains "Edge SLA" near "Opportunity Name"
check that checkbox "Private" is equal to "0"
check that page contains "Word of mouth" near "Lead Source"
  • Click "Save & Retest".

  • Observe results: "In progress" > "Finished / Passed".

    • especially the fields that were checked:


Change values of the Opportunity in Salesforce

  • In Salesforce: change field values to Opportunity "Edge SLA"

    • Navigate to Opportunity.

    • Edit fields.

      • Private: check

      • Lead Source: Web

    • Save.


Re-Run the Test Case in testRigor

  • Navigate to Test Case: "T00002 - Check Edge SLA".

  • Click: "Quick actions" > "Re-test".

  • Observe results

    • Observe failed steps / commands

      • Click: "More details"

      • Click: "Show errors info"


Modify Test Case so that it will Pass

  • It's better that this failing Test Case is not "left behind"

    • Failed Test Cases & Errors are shown in the left panel, this can be confusing.

  • Therefore, modify the Test Case by editing two lines:

check that checkbox "Private" is equal to "1"
check that page contains "Web" near "Lead Source"
  • Click: "Save & Retest"

  • Observe that the Test Run passess.


DONE!

  • You learned how to record, maintain and re-test a Test Case

PreviousNavigation in testRigorNextCreate and convert a Lead (T00003)

Last updated 4 months ago

NO-CODE UI TESTING: Guide for testRigor & Salesforce
Screenshot in testRigor shows the "anchor areas" (yellow) and whether expected values were found (green/red)
Errors in "Show errors info"
Screenshot in testRigor shows the "anchor areas" (yellow) and whether expected values were found (green/red).