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
  • Scenario of End-to-End testing: three systems
  • Test Case in testRigor
  • E2E: Lead entry (Titan) ➔ Salesforce ➔ Email. Recorded Test Run #1
  • E2E: Lead entry (Titan) ➔ Salesforce ➔ Email. Recorded Test Debug #2
  1. ADVANCED TEST CASES

E2E: Lead entry (Titan) ➔ Salesforce ➔ Email

PreviousValidate Field Value Using REST API (T00007)NextSubmit a Test Lead

Last updated 5 months ago


Scenario of End-to-End testing: three systems

  1. Titan captures Lead details and creates a Lead and a Campaign Member records in Salesforce

  2. Salesforce sends an email to Lead.Email (Send Email action in Flow).

  3. The email arrives to the receiver's inbox.


Test Case in testRigor

  1. Lead Entry in TItan. [Another cool tool worth checking, btw]

  2. Verify that the Lead and Campaign Member are created in Salesforce.

  3. Verify the email received by the recipient.

// 1. LEAD ENTRY IN TITAN
open url "https://lassilajuhak-gmail.formtitan.com/ftproject/titanhappyhoursample"
wait up to 20 seconds until page contains "Let's Start"
click "Let's Start" 

wait up to 20 seconds until page contains "Submit"
enter "TEST LEAD FIRST NAME" into "* First Name" 
generate unique name, then enter into "* Last Name" and save as "generated_LAST_NAME"
enter "TEST COMPANY" into "* Company Name" 
generate unique email, then enter into "* Email" and save as "generated_EMAIL"
enter "+358 40111111111111" into "* Phone" 
click "Please Select"
click "Titan" below "Please Select"
click "Submit"
wait up to 20 seconds until page contains "And you’re done, thanks for your time!"

// 2. VERIFY THAT LEAD AND CAMPAIGN MEMBER GOT CREATED IN SALESFORCE
generate from the string with parameters "TEST LEAD FIRST NAME ${generated_LAST_NAME}" and save as "LEAD_FULL_NAME"
open url "https://empathetic-panda-k9cy8l-dev-ed.trailblaze.lightning.force.com/lightning/page/home"
login
click "Search..."
enter stored value "LEAD_FULL_NAME" into "Search..."
type enter
wait up to 20 seconds until page contains "1 Result"
click that second stored value "LEAD_FULL_NAME"

check that page contains stored value "generated_EMAIL"
check that page contains "Campaign History (1)"

click "Details"
check that page contains "Open - Not Contacted" to the right of "Lead Status"

// 3. VERIFY THE EMAIL RECEIVED BY THE RECIPIENT
check that email to saved value "generated_EMAIL" was received
check that the page contains "TEST LEAD FIRST NAME" to the right of "Hello"
check that the page contains stored value "generated_EMAIL" 

check that the page contains "ANY use case" using OCR

E2E: Lead entry (Titan) ➔ Salesforce ➔ Email. Recorded Test Run #1

  • Test Run Report can be downloaded as Word or PDF:


E2E: Lead entry (Titan) ➔ Salesforce ➔ Email. Recorded Test Debug E2E: Lead entry (Titan) ➔ Salesforce ➔ Email #2

  • = "Live Session"

    • can be saved as a new Test Case (will be disabled: color = gray)


NO-CODE UI TESTING: Guide for testRigor & Salesforce
7MB
E2E_Lead_entry_Titan__Salesforce___Email_Built-in_Ubuntu_Chrome_202412061820_65714a21-8e37-4ca3-9554-950c69a457eb.pdf
pdf
Test Run Report as PDF