SlideShare uma empresa Scribd logo
1 de 5
Baixar para ler offline
Software Engineering – Dr Ghazy Assassa      Page 1 of 5




                    Software Engineering

                        Test Case Template
                          and Examples
Software Engineering – Dr Ghazy Assassa                                              Page 2 of 5


                                      Test Case Template (Doc:T_01)

Test Case #:                                           Test Case Name:                    Page: 1 of ..
System:                                                 Subsystem:
Designed by:                                            Design Date:
Executed by:                                            Execution Date:
Short Description:



  Pre-conditions




Step Action                           Expected System Response            Pass/ Comment
                                                                          Fail
 1
 2




 Post-conditions
Software Engineering – Dr Ghazy Assassa                                                                        Page 3 of 5

                                       Test Case Example1 (simple test)

Test Case #: 2.2                                             Test Case Name: Change PIN                          Page: 1 of 1
System: ATM                                                   Subsystem: PIN
Designed by: ABC                                              Design Date: 28/11/2004
Executed by:                                                  Execution Date:
Short Description: Test the ATM Change PIN service

  Pre-conditions
  The user has a valid ATM card - The user has accessed the ATM by placing his ATM card in the machine
  The current PIN is 1234
  The system displays the main menu

Step Action                           Expected System Response                                              Pass/ Comment
                                                                                                            Fail
 1    Click the 'Change PIN' button   The system displays a message asking the user to enter the new PIN
 2    Enter '5555'                    The system displays a message asking the user to confirm (re-enter)
                                      the new PIN
 3    Re-enter '5555'                 The system displays a message of successful operation
                                      The system asks the user if he wants to perform other operations
 4    Click 'YES' button              The system displays the main menu
 5    Check post-condition 1

 Post-conditions
 1. The new PIN '5555' is saved in the database
Software Engineering – Dr Ghazy Assassa                                                                        Page 4 of 5

                   Test Case Example2 (complex test may be divided into more than test cases)

Test Case #: 2.3                                             Test Case Name: Change PIN                          Page: 1 of 1
System: ATM                                                   Subsystem: PIN
Designed by: ABC                                              Design Date: 28/11/2004
Executed by:                                                  Execution Date:
Short Description: Test the ATM Change PIN service

  Pre-conditions
  The user has a valid ATM card - The user has accessed the ATM by placing his ATM card in the machine
  The current PIN is 1234
  The system displays the main menu

Step Action                           Expected System Response                                              Pass/ Comment
                                                                                                            Fail
 1    Click the 'Change PIN' button   The system displays a message asking the user to enter the new PIN
 2    Enter '5555'                    The system displays a message asking the user to confirm (re-enter)
                                      the new PIN
 3    Re-enter '5555'                 The system displays a message of successful operation
                                      The system asks the user if he wants to perform other operations
 4    Click 'YES' button              The system displays the main menu
 5    Check post-condition 1
 6    Repeat steps 1,2,3 using        The system is exited and displays a greeting message asking the
      another PIN say '6666' and      user to place his ATM card in the machine
      click 'NO' button
 7    Check post-condition 2
 8    Repeat steps 1,2, using         The system displays a message asking the user to confirm (re-enter)
      another PIN say '7777'          the new PIN
 9    Enter a wrong confirmation      The system displays a message of unsuccessful operation and asks
      (say ‘9876’)                    the user to confirm the correct PIN

10    Re-enter ‘7777’                 The system displays a message of successful operation
                                      The system asks the user if he wants to perform other operations
Software Engineering – Dr Ghazy Assassa                                                   Page 5 of 5
     Click 'NO' button             The system is exited and displays a greeting message
     Check post-condition 3

Post-conditions
1. The new PIN '5555' is saved in the database
2. The new PIN '6666' is saved in the database
3. The new PIN '7777' is saved in the database


Test happy path
Test also failure condition (step 9)

Mais conteúdo relacionado

Mais procurados

Jmeter Performance Testing
Jmeter Performance TestingJmeter Performance Testing
Jmeter Performance Testing
Atul Pant
 
SOFTWARE ENGINEERING - FINAL PRESENTATION Slides
SOFTWARE ENGINEERING - FINAL PRESENTATION SlidesSOFTWARE ENGINEERING - FINAL PRESENTATION Slides
SOFTWARE ENGINEERING - FINAL PRESENTATION Slides
Jeremy Zhong
 
Single Sign On - Case Study
Single Sign On - Case StudySingle Sign On - Case Study
Single Sign On - Case Study
Ebizon
 
Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-concepts
medsherb
 

Mais procurados (20)

Static Code Analysis
Static Code AnalysisStatic Code Analysis
Static Code Analysis
 
Software Process Improvement
Software Process ImprovementSoftware Process Improvement
Software Process Improvement
 
РОМАН ЯКИМЧУК  "Задачі Тест Аналітика”  
РОМАН ЯКИМЧУК  "Задачі Тест Аналітика”  РОМАН ЯКИМЧУК  "Задачі Тест Аналітика”  
РОМАН ЯКИМЧУК  "Задачі Тест Аналітика”  
 
Chapter 4 - Quality Characteristics for Technical Testing
Chapter 4 - Quality Characteristics for Technical TestingChapter 4 - Quality Characteristics for Technical Testing
Chapter 4 - Quality Characteristics for Technical Testing
 
Online Testing (Examination) System
Online Testing (Examination) SystemOnline Testing (Examination) System
Online Testing (Examination) System
 
School management System
School management SystemSchool management System
School management System
 
Chapter 2 - White Box Test Techniques
Chapter 2 - White Box Test TechniquesChapter 2 - White Box Test Techniques
Chapter 2 - White Box Test Techniques
 
What is objectives of software testing
What is objectives of software testingWhat is objectives of software testing
What is objectives of software testing
 
Jmeter Performance Testing
Jmeter Performance TestingJmeter Performance Testing
Jmeter Performance Testing
 
Chapter 1 - The Technical Test Analyst Tasks in Risk Based Testing
Chapter 1 - The Technical Test Analyst Tasks in Risk Based TestingChapter 1 - The Technical Test Analyst Tasks in Risk Based Testing
Chapter 1 - The Technical Test Analyst Tasks in Risk Based Testing
 
SOFTWARE ENGINEERING - FINAL PRESENTATION Slides
SOFTWARE ENGINEERING - FINAL PRESENTATION SlidesSOFTWARE ENGINEERING - FINAL PRESENTATION Slides
SOFTWARE ENGINEERING - FINAL PRESENTATION Slides
 
Software testing
Software testingSoftware testing
Software testing
 
Single Sign On - Case Study
Single Sign On - Case StudySingle Sign On - Case Study
Single Sign On - Case Study
 
Software requirement specification for online examination system
Software requirement specification for online examination systemSoftware requirement specification for online examination system
Software requirement specification for online examination system
 
Software Testing Process
Software Testing ProcessSoftware Testing Process
Software Testing Process
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation Testing
 
Introduction to JUnit
Introduction to JUnitIntroduction to JUnit
Introduction to JUnit
 
Atm software
Atm softwareAtm software
Atm software
 
Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-concepts
 
V model Over View (Software Engineering)
V model Over View (Software Engineering) V model Over View (Software Engineering)
V model Over View (Software Engineering)
 

Destaque (6)

Software Architecture: Test Case Writing
Software Architecture: Test Case WritingSoftware Architecture: Test Case Writing
Software Architecture: Test Case Writing
 
E Learning Case Study
E Learning Case StudyE Learning Case Study
E Learning Case Study
 
Methods to test an e-learning Web application.
Methods to test an e-learning Web application.Methods to test an e-learning Web application.
Methods to test an e-learning Web application.
 
online education system project report
online education system project reportonline education system project report
online education system project report
 
Virtual education system
Virtual education systemVirtual education system
Virtual education system
 
Rfid technology
Rfid technologyRfid technology
Rfid technology
 

Semelhante a Test case template

Ethi minii - Ethical Hacking
Ethi minii - Ethical HackingEthi minii - Ethical Hacking
Ethi minii - Ethical Hacking
Being Uniq Sonu
 

Semelhante a Test case template (20)

Test case template
Test case templateTest case template
Test case template
 
SE testing phase
SE testing phaseSE testing phase
SE testing phase
 
Steganography
SteganographySteganography
Steganography
 
Training Alcatel-Lucent WDM PSS 183x
Training Alcatel-Lucent WDM PSS 183xTraining Alcatel-Lucent WDM PSS 183x
Training Alcatel-Lucent WDM PSS 183x
 
DLD Project Report.docx
DLD Project Report.docxDLD Project Report.docx
DLD Project Report.docx
 
B4 u solution_writing test cases from user stories and acceptance criteria
B4 u solution_writing test cases from user stories and acceptance criteriaB4 u solution_writing test cases from user stories and acceptance criteria
B4 u solution_writing test cases from user stories and acceptance criteria
 
System Calls - Introduction
System Calls - IntroductionSystem Calls - Introduction
System Calls - Introduction
 
WAP Hack (Windows Password Hacking)
WAP Hack (Windows Password Hacking)WAP Hack (Windows Password Hacking)
WAP Hack (Windows Password Hacking)
 
Chapter 7
Chapter 7Chapter 7
Chapter 7
 
Software Testing Presentation
Software Testing PresentationSoftware Testing Presentation
Software Testing Presentation
 
Inventory music shop management
Inventory music shop managementInventory music shop management
Inventory music shop management
 
Writing test cases from user stories and acceptance criteria
Writing test cases from user stories and acceptance criteria Writing test cases from user stories and acceptance criteria
Writing test cases from user stories and acceptance criteria
 
Testing Techniques.pptx
Testing Techniques.pptxTesting Techniques.pptx
Testing Techniques.pptx
 
How does Bitcoin work?
How does Bitcoin work?How does Bitcoin work?
How does Bitcoin work?
 
5 stepmainttut
5 stepmainttut5 stepmainttut
5 stepmainttut
 
Troubleshooting: Tools, tips and tricks
Troubleshooting: Tools, tips and tricksTroubleshooting: Tools, tips and tricks
Troubleshooting: Tools, tips and tricks
 
Ethi minii - Ethical Hacking
Ethi minii - Ethical HackingEthi minii - Ethical Hacking
Ethi minii - Ethical Hacking
 
Windows 7 client performance talk - Jeff Stokes
Windows 7 client performance talk - Jeff StokesWindows 7 client performance talk - Jeff Stokes
Windows 7 client performance talk - Jeff Stokes
 
Atm security
Atm securityAtm security
Atm security
 
Software testing foundation
Software testing foundationSoftware testing foundation
Software testing foundation
 

Último

Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
lizamodels9
 
Russian Call Girls In Rajiv Chowk Gurgaon ❤️8448577510 ⊹Best Escorts Service ...
Russian Call Girls In Rajiv Chowk Gurgaon ❤️8448577510 ⊹Best Escorts Service ...Russian Call Girls In Rajiv Chowk Gurgaon ❤️8448577510 ⊹Best Escorts Service ...
Russian Call Girls In Rajiv Chowk Gurgaon ❤️8448577510 ⊹Best Escorts Service ...
lizamodels9
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
dlhescort
 
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Anamikakaur10
 
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
amitlee9823
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
Abortion pills in Kuwait Cytotec pills in Kuwait
 

Último (20)

Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
 
Russian Call Girls In Rajiv Chowk Gurgaon ❤️8448577510 ⊹Best Escorts Service ...
Russian Call Girls In Rajiv Chowk Gurgaon ❤️8448577510 ⊹Best Escorts Service ...Russian Call Girls In Rajiv Chowk Gurgaon ❤️8448577510 ⊹Best Escorts Service ...
Russian Call Girls In Rajiv Chowk Gurgaon ❤️8448577510 ⊹Best Escorts Service ...
 
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRLBAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors Data
 
Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024Marel Q1 2024 Investor Presentation from May 8, 2024
Marel Q1 2024 Investor Presentation from May 8, 2024
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with Culture
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League City
 
Malegaon Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Malegaon Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort ServiceMalegaon Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Malegaon Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
 
Business Model Canvas (BMC)- A new venture concept
Business Model Canvas (BMC)-  A new venture conceptBusiness Model Canvas (BMC)-  A new venture concept
Business Model Canvas (BMC)- A new venture concept
 
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
 
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 MonthsSEO Case Study: How I Increased SEO Traffic & Ranking by 50-60%  in 6 Months
SEO Case Study: How I Increased SEO Traffic & Ranking by 50-60% in 6 Months
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Falcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business GrowthFalcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business Growth
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
Falcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investorsFalcon Invoice Discounting: The best investment platform in india for investors
Falcon Invoice Discounting: The best investment platform in india for investors
 

Test case template

  • 1. Software Engineering – Dr Ghazy Assassa Page 1 of 5 Software Engineering Test Case Template and Examples
  • 2. Software Engineering – Dr Ghazy Assassa Page 2 of 5 Test Case Template (Doc:T_01) Test Case #: Test Case Name: Page: 1 of .. System: Subsystem: Designed by: Design Date: Executed by: Execution Date: Short Description: Pre-conditions Step Action Expected System Response Pass/ Comment Fail 1 2 Post-conditions
  • 3. Software Engineering – Dr Ghazy Assassa Page 3 of 5 Test Case Example1 (simple test) Test Case #: 2.2 Test Case Name: Change PIN Page: 1 of 1 System: ATM Subsystem: PIN Designed by: ABC Design Date: 28/11/2004 Executed by: Execution Date: Short Description: Test the ATM Change PIN service Pre-conditions The user has a valid ATM card - The user has accessed the ATM by placing his ATM card in the machine The current PIN is 1234 The system displays the main menu Step Action Expected System Response Pass/ Comment Fail 1 Click the 'Change PIN' button The system displays a message asking the user to enter the new PIN 2 Enter '5555' The system displays a message asking the user to confirm (re-enter) the new PIN 3 Re-enter '5555' The system displays a message of successful operation The system asks the user if he wants to perform other operations 4 Click 'YES' button The system displays the main menu 5 Check post-condition 1 Post-conditions 1. The new PIN '5555' is saved in the database
  • 4. Software Engineering – Dr Ghazy Assassa Page 4 of 5 Test Case Example2 (complex test may be divided into more than test cases) Test Case #: 2.3 Test Case Name: Change PIN Page: 1 of 1 System: ATM Subsystem: PIN Designed by: ABC Design Date: 28/11/2004 Executed by: Execution Date: Short Description: Test the ATM Change PIN service Pre-conditions The user has a valid ATM card - The user has accessed the ATM by placing his ATM card in the machine The current PIN is 1234 The system displays the main menu Step Action Expected System Response Pass/ Comment Fail 1 Click the 'Change PIN' button The system displays a message asking the user to enter the new PIN 2 Enter '5555' The system displays a message asking the user to confirm (re-enter) the new PIN 3 Re-enter '5555' The system displays a message of successful operation The system asks the user if he wants to perform other operations 4 Click 'YES' button The system displays the main menu 5 Check post-condition 1 6 Repeat steps 1,2,3 using The system is exited and displays a greeting message asking the another PIN say '6666' and user to place his ATM card in the machine click 'NO' button 7 Check post-condition 2 8 Repeat steps 1,2, using The system displays a message asking the user to confirm (re-enter) another PIN say '7777' the new PIN 9 Enter a wrong confirmation The system displays a message of unsuccessful operation and asks (say ‘9876’) the user to confirm the correct PIN 10 Re-enter ‘7777’ The system displays a message of successful operation The system asks the user if he wants to perform other operations
  • 5. Software Engineering – Dr Ghazy Assassa Page 5 of 5 Click 'NO' button The system is exited and displays a greeting message Check post-condition 3 Post-conditions 1. The new PIN '5555' is saved in the database 2. The new PIN '6666' is saved in the database 3. The new PIN '7777' is saved in the database Test happy path Test also failure condition (step 9)