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
  • Requirement
  • Manual testing steps for Lead creation
  • Test Case in testRigor
  1. OTHER TEST SCENARIOS

Submit a Test Lead

Scenario

  • On your website you have form(s) that Customers/Prospects use to submit inquiries.

    • Your form is powered

      • by Salesforce feature: Web-to-Lead, or

      • by some combination of a form and integration solution(s)

  • Inquiries are created as Leads in Salesforce.


Requirement

  • You want to make sure that submitted Leads are created and processed as designed.


Manual testing steps for Lead creation

  1. Navigate to your website that captures Leads.

  2. Submit a test Lead.

  3. Navigate to Salesforce.

  4. Search the Lead that was created.

  5. Check that the Lead has correct details.


Test Case in testRigor

  • here's a template that you can modify

// OPEN THE PAGE THAT HAS THE FORM 
// - modify the URL so that it points to the Lead form on your website
// - this URL points to the "real" Lead form at Salesforce
open url "https://www.salesforce.com/eu/form/contact/contactme/?d=70130000000Fm5e"
wait 5 sec

// ENTER VALUES TO FIELDS: - add / remove fields   - modify values
enter "TEST First" into "First Name"
enter "TEST Last" into "Last Name"
enter "TEST Title" into "Job title"
generate unique email, then enter into "Email"
enter "123-123-123-123" into "Phone"
enter "TEST Company" into "Company"
select "1 - 10 employees" from "Employees"
select "Sweden" from "Country/Region"
select "Net Zero Software" from "Product Interest"
enter "This is a test" into "Questions/Comments"

wait 5 sec
enter "on" into checkbox near "Yes, I would like to receive"


// SUBMIT FORM
// click "SUBMIT"
// wait 5 sec

// CHECK THAT THANK YOU PAGE OPENS
// check that page contains "Thank you"
// wait 5 sec

// open url "your salesforce url"
// login
// search/navigate to the Lead created
// check that details of the Lead are OK.

There's a more advanced End-to-End test case :


PreviousE2E: Lead entry (Titan) ➔ Salesforce ➔ EmailNextTH: Opportunity Won THEN Create Contract

Last updated 5 months ago

E2E: Lead entry (Titan) ➔ Salesforce ➔ Email
NO-CODE UI TESTING: Guide for testRigor & Salesforce