SlideShare uma empresa Scribd logo
1 de 21
Baixar para ler offline
Gemma Blezard




                1
   Purpose of Testing
   Testing Best Practices: What testing should not be used
    for
   Types of Testing

   Testing Roles and Responsibilities
   Test Script Management – Tests and Incidents
   UAT Support




                                                              2
   Check that configuration and code is functional

   Ensure that the system’s initial build meets the agreed requirements

   Help to control the project scope

   Confirm that the finished system can support the client’s business

    processes

   Gain client’s approval to release new functionality for general use




                                                                           3
   Making changes to business processes

   Introducing additional requirements outside of scope

   Making significant cosmetic changes to page layouts and user

    interface

   Training users




That’s what Build Reviews and Training sessions are for…


                                                                   4
   Unit Testing (code developers)

   System Testing

   User Acceptance Testing (aka Functional Testing)

   Production Testing

   Regression Testing




                                                       5
   Is conducted by Apex developers – involves writing clauses in their

    code that automatically tests its coverage

   Evaluates how many records of data the code would successfully

    run on in that environment e.g sandbox / production.

   Is necessary to deploy Apex code into a Production environment –

    you must have over 78% coverage




                                                                          6
   Is conducted by salesforce consultants

   Tests the system’s technical processes from start to finish

   Involves following a test script based on specific outputs

   Is useful for troubleshooting a problem with automated

    rules in the system

   E.g. workflow / validation / assignment / escalation




                                                                  7
   Is conducted by the people who intend to use the application

   Tests the system’s ability to support the business processes – NO

    changes should be made at this stage unless they are fundamental to

    their processes

   Involves following a test script based on what happens in the business

   The desired output is that the client confirms that the system is fit for

    purpose



                                                                                8
   Is a repeat of system testing in the Production environment

   Is designed to test whether config and code have been

    successfully deployed from sandbox to production

   Use the same script that you used for system testing

   If there is time, get the client Project Manager to run through

    their UAT scripts again post deployment




                                                                      9
   Designed to test whether code and config releases affect existing user

    processes within the system

   Takes place once releases have been made that are not meant for ALL users.

    Tests are conducted by system users for whom the new releases are NOT

    intended

   After deployment, users test the ability to use salesforce.com the way they

    normally would

   Users list any system changes that negatively impact their current process

   We fix them!




                                                                                  10
   Project Manager:
•   Coordinates script writing
•   Schedules testing time around day jobs
•   Ensures testers are testing when they are scheduled to
•   Co-ordinate testing sign off

   Business Owners:
•   Write test scripts in accordance with usual business processes
•   Sign off testing

   Testers
•   Follow test scripts, adding comments and incidents
•   Retest following fixes
•   Specify whether each process is a test PASS or FAIL

                                                                     11
   Write and complete system test scripts

   Test code that a developer has written and liaise with client for
    changes

   Ensure that any code developed has over 78% coverage

   Supply clients with UAT script templates

   Provide guidance on how to complete the scripts

   Resolve incidents that crop up during UAT – or liaise with
    developers to resolve them if needs be

   Get sign off confirmed IN WRITING once all tests have passed

                                                                        12
   The build should be completely signed off in writing

   No further changes should be required (including field and
    page layout / cosmetic adjustments to screens)

   UAT scripts should be fully written and ready (by the client!)

   All system tests should be complete and scripted by the
    consultant / developer




                                                                     13
   Test scripts have two parts: TESTS and INCIDENTS
   Are best managed in the form of a spreadsheet in Google
    Docs
   Tests define what process is being tested, steps to follow,
    expected vs actual results, overall test pass/fail and an
    incident number if the test step fails
   The level of technicality in steps/descriptions depends on
    whether it’s for UAT or system testing.
   This example is a system test script for workflow rules that
    are misfiring:




                                                                   14
   If a test step fails, an Incident is created on the Incidents tab
   Incidents include the incident no, step no, description of the
    Actual Result from the test, the estimated cause for the test
    failure and the fix




   Once the initial estimated cause has been identified and the
    problem fixed, you can retest the step
   The step is repeated after the first fix as a Retest – copy and
    paste the original step details as a new row in your
    spreadsheet
   If it fails again, add a new incident to the Incidents tab and
    another retest line in the Tests tab. Keep testing and fixing
    until the tests pass
   For test step to pass, all parts of the step should work as
    expected (ie Actual Result is the same as Expected Result)
                                                                        15
   In this system test example, step 5 of the test script
    failed 3 times.
   We logged 3 incidents (2,3 and 4) then retested, adding
    new retest rows to the script after step 5 as follows:




                                                              16
   UAT is designed to test that the system can support the business
    process
   The only changes that should come from the UAT are fixes
   UAT scripts should not be technical – each step is based entirely
    on requirements from a signed-off requirements matrix OR spec




   A representative from the business (e.g. a process owner) should
    write all UAT scripts while the system is being designed and built
   End users of the system are responsible for following each test
    step and logging incidents
   Consultants log in to the spreadsheet, reviewing and fixing
    incidents then adding retest steps to the test script as the testing
    is happening
                                                                           17
   UAT test scripts look similar to system test scripts but
    they are at a much higher level and use less technical
    language
   They relate to the process and test the requirement, not
    the technology
   Therefore it is usual that UAT will happen before users
    have been trained




                                                               18
Supporting UAT involves
 Guiding users to where they can find things if they get really
  stuck

   Providing process owners with example UAT scripts

   Talking clients through how to write and follow UAT scripts

   Acknowledging and fixing incidents as they occur

   Being assertive with clients when they try to push through
    changes that are not absolutely necessary to support the
    process

   Encouraging clients to formally sign off UAT once all tests
    have passed. This is essentially your formal Build sign off
                                                                   19
Clients are often nervous about UAT because not many
people know how to conduct it properly. Here are some
tips on how to handle resistance from clients:

   “I haven’t been trained on using the system”.
         Gently remind clients that they are testing their own
         processes, NOT the system functionality. Encourage
         them to arrange their own 1hr demo of the system
         to all testers prior to embarking on UAT

   “We can’t test without all our data being present in the
    system”
        You only need a few test records to test the
        process. If your build involves supporting objects
        containing lookup data, load a few records and
        provide the test coordinator with a list of records
        they can use to look up on
                                                                 20
     “I haven’t got any time to test and do my day job too”
      •    Client project managers are fundamental when you’re
           up against this resistance and having a project plan
           with dates is key.
    •      Keep on top of your PM and make sure they book UAT
           into everyone’s diaries as soon as possible after the
           project starts.
      •    Have regular check-in calls through Design and Build
           stages so that you can rearrange dates for testing if
           needed.
      •    Make sure your client PM emphasises the importance
           of testers’ full attention when they are scheduled to
           test and encourages testers’ management teams to
           arrange cover for the “day job” while their staff are
           testing.

                                                                   21

Mais conteúdo relacionado

Mais procurados

STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)Ch Fahadi
 
What is Test Plan? Edureka
What is Test Plan? EdurekaWhat is Test Plan? Edureka
What is Test Plan? EdurekaEdureka!
 
Non Functional Testing
Non Functional TestingNon Functional Testing
Non Functional TestingNishant Worah
 
Performance Requirement Gathering
Performance Requirement GatheringPerformance Requirement Gathering
Performance Requirement GatheringAtul Pant
 
Basic interview questions for manual testing
Basic interview questions for manual testingBasic interview questions for manual testing
Basic interview questions for manual testingJYOTI RANJAN PAL
 
Performance testing : An Overview
Performance testing : An OverviewPerformance testing : An Overview
Performance testing : An Overviewsharadkjain
 
Manual testing interview questions by infotech
Manual testing interview questions by infotech Manual testing interview questions by infotech
Manual testing interview questions by infotech suhasreddy1
 
Agile Testing: The Role Of The Agile Tester
Agile Testing: The Role Of The Agile TesterAgile Testing: The Role Of The Agile Tester
Agile Testing: The Role Of The Agile TesterDeclan Whelan
 
Software Testing Life Cycle
Software Testing Life CycleSoftware Testing Life Cycle
Software Testing Life CycleUdayakumar Sree
 
Getting start with Performance Testing
Getting start with Performance Testing Getting start with Performance Testing
Getting start with Performance Testing Yogesh Deshmukh
 
Performance Testing
Performance TestingPerformance Testing
Performance TestingSelin Gungor
 
Strategies For Software Test Documentation
Strategies For Software Test Documentation Strategies For Software Test Documentation
Strategies For Software Test Documentation Vishwak Solution
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comIdexcel Technologies
 
Interview questions for manual testing technology.
Interview questions for manual testing technology.Interview questions for manual testing technology.
Interview questions for manual testing technology.Vinay Agnihotri
 
Software Testing Process, Testing Automation and Software Testing Trends
Software Testing Process, Testing Automation and Software Testing TrendsSoftware Testing Process, Testing Automation and Software Testing Trends
Software Testing Process, Testing Automation and Software Testing TrendsKMS Technology
 

Mais procurados (20)

STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)
 
What is Test Plan? Edureka
What is Test Plan? EdurekaWhat is Test Plan? Edureka
What is Test Plan? Edureka
 
Non Functional Testing
Non Functional TestingNon Functional Testing
Non Functional Testing
 
Test Strategy
Test StrategyTest Strategy
Test Strategy
 
Performance Requirement Gathering
Performance Requirement GatheringPerformance Requirement Gathering
Performance Requirement Gathering
 
Basic interview questions for manual testing
Basic interview questions for manual testingBasic interview questions for manual testing
Basic interview questions for manual testing
 
Performance testing : An Overview
Performance testing : An OverviewPerformance testing : An Overview
Performance testing : An Overview
 
Test cases
Test casesTest cases
Test cases
 
Manual testing interview questions by infotech
Manual testing interview questions by infotech Manual testing interview questions by infotech
Manual testing interview questions by infotech
 
Agile Testing: The Role Of The Agile Tester
Agile Testing: The Role Of The Agile TesterAgile Testing: The Role Of The Agile Tester
Agile Testing: The Role Of The Agile Tester
 
Test Automation in Agile
Test Automation in AgileTest Automation in Agile
Test Automation in Agile
 
Software Testing Life Cycle
Software Testing Life CycleSoftware Testing Life Cycle
Software Testing Life Cycle
 
Getting start with Performance Testing
Getting start with Performance Testing Getting start with Performance Testing
Getting start with Performance Testing
 
Performance Testing
Performance TestingPerformance Testing
Performance Testing
 
Strategies For Software Test Documentation
Strategies For Software Test Documentation Strategies For Software Test Documentation
Strategies For Software Test Documentation
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.com
 
Software testing
Software testingSoftware testing
Software testing
 
Effective Software Test Case Design Approach
Effective Software Test Case Design ApproachEffective Software Test Case Design Approach
Effective Software Test Case Design Approach
 
Interview questions for manual testing technology.
Interview questions for manual testing technology.Interview questions for manual testing technology.
Interview questions for manual testing technology.
 
Software Testing Process, Testing Automation and Software Testing Trends
Software Testing Process, Testing Automation and Software Testing TrendsSoftware Testing Process, Testing Automation and Software Testing Trends
Software Testing Process, Testing Automation and Software Testing Trends
 

Semelhante a Best Practices for Testing in salesforce.com

How To Transform the Manual Testing Process to Incorporate Test Automation
How To Transform the Manual Testing Process to Incorporate Test AutomationHow To Transform the Manual Testing Process to Incorporate Test Automation
How To Transform the Manual Testing Process to Incorporate Test AutomationRanorex
 
Learn software testing with tech partnerz 1
Learn software testing with tech partnerz 1Learn software testing with tech partnerz 1
Learn software testing with tech partnerz 1Techpartnerz
 
USER ACCEPTANCE TESTING
USER ACCEPTANCE TESTINGUSER ACCEPTANCE TESTING
USER ACCEPTANCE TESTINGKADARI SHIVRAJ
 
How Manual Testers Can Break into Automation Without Programming Skills
How Manual Testers Can Break into Automation Without Programming SkillsHow Manual Testers Can Break into Automation Without Programming Skills
How Manual Testers Can Break into Automation Without Programming SkillsRanorex
 
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptx
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptxOS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptx
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptxShivareddyGangam
 
Introduction to testing.
Introduction to testing.Introduction to testing.
Introduction to testing.Jithinctzz
 
Test planning.ppt
Test planning.pptTest planning.ppt
Test planning.pptUmmERayyan2
 
Testing Attributes
Testing AttributesTesting Attributes
Testing AttributesAbiha Naqvi
 
Software Testing Foundations Part 2 - Testing in Software Lifecycle
Software Testing Foundations Part 2 - Testing in Software LifecycleSoftware Testing Foundations Part 2 - Testing in Software Lifecycle
Software Testing Foundations Part 2 - Testing in Software LifecycleNikita Knysh
 
SAP Testing Services
SAP Testing ServicesSAP Testing Services
SAP Testing Servicesr_shanki
 
Object oriented sad 6
Object oriented sad 6Object oriented sad 6
Object oriented sad 6Bisrat Girma
 

Semelhante a Best Practices for Testing in salesforce.com (20)

How To Transform the Manual Testing Process to Incorporate Test Automation
How To Transform the Manual Testing Process to Incorporate Test AutomationHow To Transform the Manual Testing Process to Incorporate Test Automation
How To Transform the Manual Testing Process to Incorporate Test Automation
 
Learn software testing with tech partnerz 1
Learn software testing with tech partnerz 1Learn software testing with tech partnerz 1
Learn software testing with tech partnerz 1
 
USER ACCEPTANCE TESTING
USER ACCEPTANCE TESTINGUSER ACCEPTANCE TESTING
USER ACCEPTANCE TESTING
 
Getting Ready for UAT
Getting Ready for UATGetting Ready for UAT
Getting Ready for UAT
 
How Manual Testers Can Break into Automation Without Programming Skills
How Manual Testers Can Break into Automation Without Programming SkillsHow Manual Testers Can Break into Automation Without Programming Skills
How Manual Testers Can Break into Automation Without Programming Skills
 
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptx
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptxOS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptx
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptx
 
Introduction to testing.
Introduction to testing.Introduction to testing.
Introduction to testing.
 
Automation Concepts
Automation ConceptsAutomation Concepts
Automation Concepts
 
Test planning.ppt
Test planning.pptTest planning.ppt
Test planning.ppt
 
Testing Attributes
Testing AttributesTesting Attributes
Testing Attributes
 
Software test proposal
Software test proposalSoftware test proposal
Software test proposal
 
Software testing2
Software testing2Software testing2
Software testing2
 
Software testing
Software testingSoftware testing
Software testing
 
Demo1ghjkl
Demo1ghjklDemo1ghjkl
Demo1ghjkl
 
Software testing
Software testingSoftware testing
Software testing
 
Software testing
Software testingSoftware testing
Software testing
 
T24 Temenos Methodology Overview
T24 Temenos Methodology OverviewT24 Temenos Methodology Overview
T24 Temenos Methodology Overview
 
Software Testing Foundations Part 2 - Testing in Software Lifecycle
Software Testing Foundations Part 2 - Testing in Software LifecycleSoftware Testing Foundations Part 2 - Testing in Software Lifecycle
Software Testing Foundations Part 2 - Testing in Software Lifecycle
 
SAP Testing Services
SAP Testing ServicesSAP Testing Services
SAP Testing Services
 
Object oriented sad 6
Object oriented sad 6Object oriented sad 6
Object oriented sad 6
 

Último

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 

Último (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

Best Practices for Testing in salesforce.com

  • 2. Purpose of Testing  Testing Best Practices: What testing should not be used for  Types of Testing  Testing Roles and Responsibilities  Test Script Management – Tests and Incidents  UAT Support 2
  • 3. Check that configuration and code is functional  Ensure that the system’s initial build meets the agreed requirements  Help to control the project scope  Confirm that the finished system can support the client’s business processes  Gain client’s approval to release new functionality for general use 3
  • 4. Making changes to business processes  Introducing additional requirements outside of scope  Making significant cosmetic changes to page layouts and user interface  Training users That’s what Build Reviews and Training sessions are for… 4
  • 5. Unit Testing (code developers)  System Testing  User Acceptance Testing (aka Functional Testing)  Production Testing  Regression Testing 5
  • 6. Is conducted by Apex developers – involves writing clauses in their code that automatically tests its coverage  Evaluates how many records of data the code would successfully run on in that environment e.g sandbox / production.  Is necessary to deploy Apex code into a Production environment – you must have over 78% coverage 6
  • 7. Is conducted by salesforce consultants  Tests the system’s technical processes from start to finish  Involves following a test script based on specific outputs  Is useful for troubleshooting a problem with automated rules in the system  E.g. workflow / validation / assignment / escalation 7
  • 8. Is conducted by the people who intend to use the application  Tests the system’s ability to support the business processes – NO changes should be made at this stage unless they are fundamental to their processes  Involves following a test script based on what happens in the business  The desired output is that the client confirms that the system is fit for purpose 8
  • 9. Is a repeat of system testing in the Production environment  Is designed to test whether config and code have been successfully deployed from sandbox to production  Use the same script that you used for system testing  If there is time, get the client Project Manager to run through their UAT scripts again post deployment 9
  • 10. Designed to test whether code and config releases affect existing user processes within the system  Takes place once releases have been made that are not meant for ALL users. Tests are conducted by system users for whom the new releases are NOT intended  After deployment, users test the ability to use salesforce.com the way they normally would  Users list any system changes that negatively impact their current process  We fix them! 10
  • 11. Project Manager: • Coordinates script writing • Schedules testing time around day jobs • Ensures testers are testing when they are scheduled to • Co-ordinate testing sign off  Business Owners: • Write test scripts in accordance with usual business processes • Sign off testing  Testers • Follow test scripts, adding comments and incidents • Retest following fixes • Specify whether each process is a test PASS or FAIL 11
  • 12. Write and complete system test scripts  Test code that a developer has written and liaise with client for changes  Ensure that any code developed has over 78% coverage  Supply clients with UAT script templates  Provide guidance on how to complete the scripts  Resolve incidents that crop up during UAT – or liaise with developers to resolve them if needs be  Get sign off confirmed IN WRITING once all tests have passed 12
  • 13. The build should be completely signed off in writing  No further changes should be required (including field and page layout / cosmetic adjustments to screens)  UAT scripts should be fully written and ready (by the client!)  All system tests should be complete and scripted by the consultant / developer 13
  • 14. Test scripts have two parts: TESTS and INCIDENTS  Are best managed in the form of a spreadsheet in Google Docs  Tests define what process is being tested, steps to follow, expected vs actual results, overall test pass/fail and an incident number if the test step fails  The level of technicality in steps/descriptions depends on whether it’s for UAT or system testing.  This example is a system test script for workflow rules that are misfiring: 14
  • 15. If a test step fails, an Incident is created on the Incidents tab  Incidents include the incident no, step no, description of the Actual Result from the test, the estimated cause for the test failure and the fix  Once the initial estimated cause has been identified and the problem fixed, you can retest the step  The step is repeated after the first fix as a Retest – copy and paste the original step details as a new row in your spreadsheet  If it fails again, add a new incident to the Incidents tab and another retest line in the Tests tab. Keep testing and fixing until the tests pass  For test step to pass, all parts of the step should work as expected (ie Actual Result is the same as Expected Result) 15
  • 16. In this system test example, step 5 of the test script failed 3 times.  We logged 3 incidents (2,3 and 4) then retested, adding new retest rows to the script after step 5 as follows: 16
  • 17. UAT is designed to test that the system can support the business process  The only changes that should come from the UAT are fixes  UAT scripts should not be technical – each step is based entirely on requirements from a signed-off requirements matrix OR spec  A representative from the business (e.g. a process owner) should write all UAT scripts while the system is being designed and built  End users of the system are responsible for following each test step and logging incidents  Consultants log in to the spreadsheet, reviewing and fixing incidents then adding retest steps to the test script as the testing is happening 17
  • 18. UAT test scripts look similar to system test scripts but they are at a much higher level and use less technical language  They relate to the process and test the requirement, not the technology  Therefore it is usual that UAT will happen before users have been trained 18
  • 19. Supporting UAT involves  Guiding users to where they can find things if they get really stuck  Providing process owners with example UAT scripts  Talking clients through how to write and follow UAT scripts  Acknowledging and fixing incidents as they occur  Being assertive with clients when they try to push through changes that are not absolutely necessary to support the process  Encouraging clients to formally sign off UAT once all tests have passed. This is essentially your formal Build sign off 19
  • 20. Clients are often nervous about UAT because not many people know how to conduct it properly. Here are some tips on how to handle resistance from clients:  “I haven’t been trained on using the system”. Gently remind clients that they are testing their own processes, NOT the system functionality. Encourage them to arrange their own 1hr demo of the system to all testers prior to embarking on UAT  “We can’t test without all our data being present in the system” You only need a few test records to test the process. If your build involves supporting objects containing lookup data, load a few records and provide the test coordinator with a list of records they can use to look up on 20
  • 21. “I haven’t got any time to test and do my day job too” • Client project managers are fundamental when you’re up against this resistance and having a project plan with dates is key. • Keep on top of your PM and make sure they book UAT into everyone’s diaries as soon as possible after the project starts. • Have regular check-in calls through Design and Build stages so that you can rearrange dates for testing if needed. • Make sure your client PM emphasises the importance of testers’ full attention when they are scheduled to test and encourages testers’ management teams to arrange cover for the “day job” while their staff are testing. 21