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
  1. BASIC TEST CASES

Create and convert a Lead (T00003)

  • Navigate to "Test Cases"

  • Click "+ Add Test Case"

  • Enter Description: "T00003 - Create and convert a Lead"

  • Copy-paste Custom steps (below)

  • Modify line 4: edit the url as per your Salesforce home url

  • Click "Add and Run"

  • Observe the progress of the Test Run

login

// modify the URL below as per your Salesforce home url
open url "https://creative-wolf-opuabe-dev-ed.trailblaze.lightning.force.com/lightning/o/Lead/new"

enter "TEST First Name" into "First Name"
enter "TEST Last Name" into "Last Name"
enter "TEST Title" into "Title"
enter "TEST Company" into "Company"

select "Web" from "Lead Source"
select "Media" from "Industry"
select "Hot" from "Rating"

generate unique email, then enter into "Email"

click "Save"


// CONVERT
click "Convert" 
click "Convert" on the right of "Cancel"
click "Go to Leads" 

// VALIDATE CONVERSION
click "Search..." 
enter "TEST Company" into "Search..."
click "TEST Company" above "Account"

check that page contains "Contacts (1)"
check that page contains "Opportunities (1)"

Highlights from testRigor Test Case Run Screenshots


DONE!

  • Now you know how to create records in Salesforce, how to convert a Lead and how to do simple validations.


PreviousRecord, edit and play a Test Case (T00002)NextCreate more records (T00004)

Last updated 5 months ago

NO-CODE UI TESTING: Guide for testRigor & Salesforce
Creates a new Lead
Converts the Lead
Checks that the Account, Contact and Opportunity were created