SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Software Engineering Process
Disciplined, Modern, and Mature
An Overview Workshop for the Railroad
Commission of Texas
January 21 & 22, 2003
Use Case and Test CasesUse Case and Test Cases
Test Case
• According to RUP, A set of inputs, execution
conditions, and expected results (outputs)
developed … to verify compliance with a specific
requirement (i.e., use case)
• An “intermediate artifact” in that it is a
description of to be manual or automated test
• Created to help organize and develop test scripts
and drivers, both manual and automated
Use Case and Test CasesUse Case and Test Cases
Use Case Scenarios
• Each path through a use case is a use case
scenario
• Possible paths include:
 Primary Flow
 A Primary Flow’s Subflows
 Alternate Flows
 Warning Flows
 Exceptions Flows
• A use case scenario is an instance of a use case
just as an object is an instance of a class
Use Case and Test CasesUse Case and Test Cases
Deriving Test Cases from Use Cases
• For each use case, identify all use case scenarios
and captures these in a Scenario Matrix
• For each use case scenario, identify one or more
test cases (i.e., success and failure) and identify
the conditions that would cause it to execute
• Create a test case matrix
Use Case and Test CasesUse Case and Test Cases
Scenario Matrix
Scenario Name Starting Flow Alternate Flow
Successful Registration Primary Flow
Unidentified Student Primary Flow Unidentified Student
User quits Primary Flow Quit
Unfulfilled Prerequisite Primary Flow Can Not Enroll
Use Case and Test CasesUse Case and Test Cases
Test Case Matrix
• For each scenario, add a row in the test case
matrix for each test case
• For each condition to test (e.g, student ID,
password, courses selected, etc.), add a column in
the test case matrix
• For each test case, identify the expected result of
executing the scenario
Use Case and Test CasesUse Case and Test Cases
Test Case Matrix
Scenario Name Student ID Password Expected Result
Successful Registration V V
Confirmation Number
displayed – Success
Unidentified Student I N/A
Error message -
Failure
Use Case and Test CasesUse Case and Test Cases
Test Case Matrix
• No actual values are entered for the test
conditions
• Easy to see what conditions are being tested
• Easy to determine test coverage
• Comprehensive testing must include positive and
negative test cases
Use Case and Test CasesUse Case and Test Cases
Test Case Matrix with Values
• For each test case, add data values for the test
conditions
• Review and validate the test cases to ensure
accuracy and appropriateness of the data values
• Eliminate redundant or equivalent test cases
• The actual data values entered in the matrix is
the basis for developing test data, the test bed
Use Case and Test CasesUse Case and Test Cases
Test Case Matrix with Values
Scenario Name Student ID Password Expected Result
Successful Registration tstartz password
Confirmation Number
displayed – Success
Unidentified Student tstartze N/A
Error message -
Failure
Use Case and Test CasesUse Case and Test Cases
Automated Test Scripts
• Using the test case matrix with values, manual or
automated test scripts can be developed
• Automated testing scripts are created using a
testing tool
• A library of automated test scripts greatly
enhances your ability to test each build
• Over time, this library can be used for regression
testing

Weitere ähnliche Inhalte

Andere mochten auch

Andere mochten auch (9)

BIG INNOVATION ENTERPRISE- Profile
BIG INNOVATION ENTERPRISE- ProfileBIG INNOVATION ENTERPRISE- Profile
BIG INNOVATION ENTERPRISE- Profile
 
My CV
My CVMy CV
My CV
 
Aplicación de las herramientas web, Educación virtual vs Educación presencial
Aplicación de las herramientas web, Educación virtual vs Educación presencialAplicación de las herramientas web, Educación virtual vs Educación presencial
Aplicación de las herramientas web, Educación virtual vs Educación presencial
 
Role of Surveyor in Flood Reinstatement
Role of Surveyor in Flood ReinstatementRole of Surveyor in Flood Reinstatement
Role of Surveyor in Flood Reinstatement
 
Analysis of tables, SMOKING
Analysis of tables, SMOKINGAnalysis of tables, SMOKING
Analysis of tables, SMOKING
 
Cleantech - puhdas mahdollisuus 21.4.2016 Kotka: Pk-seudun Smart & Clean-säät...
Cleantech - puhdas mahdollisuus 21.4.2016 Kotka: Pk-seudun Smart & Clean-säät...Cleantech - puhdas mahdollisuus 21.4.2016 Kotka: Pk-seudun Smart & Clean-säät...
Cleantech - puhdas mahdollisuus 21.4.2016 Kotka: Pk-seudun Smart & Clean-säät...
 
RRC Requirements and Use Cases
RRC Requirements and Use CasesRRC Requirements and Use Cases
RRC Requirements and Use Cases
 
TEA Presentation
TEA PresentationTEA Presentation
TEA Presentation
 
RRC RUP
RRC RUPRRC RUP
RRC RUP
 

Ähnlich wie RRC Testing

Mt s11 test_design
Mt s11 test_designMt s11 test_design
Mt s11 test_designTestingGeeks
 
Test case techniques
Test case techniquesTest case techniques
Test case techniquesPina Parmar
 
Software engineering Testing technique,test case,test suit design
Software engineering Testing technique,test case,test suit designSoftware engineering Testing technique,test case,test suit design
Software engineering Testing technique,test case,test suit designMaitree Patel
 
Best Practices for Test Case Writing
Best Practices for Test Case WritingBest Practices for Test Case Writing
Best Practices for Test Case WritingSarah Goldberg
 
Software Testing Process
Software Testing ProcessSoftware Testing Process
Software Testing Processguest1f2740
 
Testing process
Testing processTesting process
Testing processTerry Cho
 
Software Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box TestingSoftware Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box TestingNikita Knysh
 
Test case design
Test case designTest case design
Test case design99pillar
 
Test design techniques
Test design techniquesTest design techniques
Test design techniquesYAObbiIkhsan
 
Fundamentals of software 2 | Test Case | Test Suite | Test Plan | Test Scenario
Fundamentals of software 2 | Test Case | Test Suite | Test Plan | Test ScenarioFundamentals of software 2 | Test Case | Test Suite | Test Plan | Test Scenario
Fundamentals of software 2 | Test Case | Test Suite | Test Plan | Test ScenarioSiddharth Sharma
 
St all about test case-p3
St all about test case-p3St all about test case-p3
St all about test case-p3Prachi Sasankar
 
ST-All about Test Case-p3
ST-All about Test Case-p3ST-All about Test Case-p3
ST-All about Test Case-p3Prachi Sasankar
 
TMPA-2017: Regression Testing with Semiautomatic Test Selection for Auditing ...
TMPA-2017: Regression Testing with Semiautomatic Test Selection for Auditing ...TMPA-2017: Regression Testing with Semiautomatic Test Selection for Auditing ...
TMPA-2017: Regression Testing with Semiautomatic Test Selection for Auditing ...Iosif Itkin
 
Testing strategies -2
Testing strategies -2Testing strategies -2
Testing strategies -2Divya Tiwari
 

Ähnlich wie RRC Testing (20)

Mt s11 test_design
Mt s11 test_designMt s11 test_design
Mt s11 test_design
 
Test case techniques
Test case techniquesTest case techniques
Test case techniques
 
Software engineering Testing technique,test case,test suit design
Software engineering Testing technique,test case,test suit designSoftware engineering Testing technique,test case,test suit design
Software engineering Testing technique,test case,test suit design
 
Best Practices for Test Case Writing
Best Practices for Test Case WritingBest Practices for Test Case Writing
Best Practices for Test Case Writing
 
Software Testing Process
Software Testing ProcessSoftware Testing Process
Software Testing Process
 
Testing process
Testing processTesting process
Testing process
 
Software Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box TestingSoftware Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box Testing
 
Test case design
Test case designTest case design
Test case design
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Fundamentals of software 2 | Test Case | Test Suite | Test Plan | Test Scenario
Fundamentals of software 2 | Test Case | Test Suite | Test Plan | Test ScenarioFundamentals of software 2 | Test Case | Test Suite | Test Plan | Test Scenario
Fundamentals of software 2 | Test Case | Test Suite | Test Plan | Test Scenario
 
G53 qat09pdf6up
G53 qat09pdf6upG53 qat09pdf6up
G53 qat09pdf6up
 
St all about test case-p3
St all about test case-p3St all about test case-p3
St all about test case-p3
 
ST-All about Test Case-p3
ST-All about Test Case-p3ST-All about Test Case-p3
ST-All about Test Case-p3
 
Unit2 for st
Unit2 for stUnit2 for st
Unit2 for st
 
Software Testing
Software Testing Software Testing
Software Testing
 
Test design
Test designTest design
Test design
 
TMPA-2017: Regression Testing with Semiautomatic Test Selection for Auditing ...
TMPA-2017: Regression Testing with Semiautomatic Test Selection for Auditing ...TMPA-2017: Regression Testing with Semiautomatic Test Selection for Auditing ...
TMPA-2017: Regression Testing with Semiautomatic Test Selection for Auditing ...
 
Testing strategies -2
Testing strategies -2Testing strategies -2
Testing strategies -2
 
testing
testingtesting
testing
 

RRC Testing

  • 1. Software Engineering Process Disciplined, Modern, and Mature An Overview Workshop for the Railroad Commission of Texas January 21 & 22, 2003
  • 2. Use Case and Test CasesUse Case and Test Cases Test Case • According to RUP, A set of inputs, execution conditions, and expected results (outputs) developed … to verify compliance with a specific requirement (i.e., use case) • An “intermediate artifact” in that it is a description of to be manual or automated test • Created to help organize and develop test scripts and drivers, both manual and automated
  • 3. Use Case and Test CasesUse Case and Test Cases Use Case Scenarios • Each path through a use case is a use case scenario • Possible paths include:  Primary Flow  A Primary Flow’s Subflows  Alternate Flows  Warning Flows  Exceptions Flows • A use case scenario is an instance of a use case just as an object is an instance of a class
  • 4. Use Case and Test CasesUse Case and Test Cases Deriving Test Cases from Use Cases • For each use case, identify all use case scenarios and captures these in a Scenario Matrix • For each use case scenario, identify one or more test cases (i.e., success and failure) and identify the conditions that would cause it to execute • Create a test case matrix
  • 5. Use Case and Test CasesUse Case and Test Cases Scenario Matrix Scenario Name Starting Flow Alternate Flow Successful Registration Primary Flow Unidentified Student Primary Flow Unidentified Student User quits Primary Flow Quit Unfulfilled Prerequisite Primary Flow Can Not Enroll
  • 6. Use Case and Test CasesUse Case and Test Cases Test Case Matrix • For each scenario, add a row in the test case matrix for each test case • For each condition to test (e.g, student ID, password, courses selected, etc.), add a column in the test case matrix • For each test case, identify the expected result of executing the scenario
  • 7. Use Case and Test CasesUse Case and Test Cases Test Case Matrix Scenario Name Student ID Password Expected Result Successful Registration V V Confirmation Number displayed – Success Unidentified Student I N/A Error message - Failure
  • 8. Use Case and Test CasesUse Case and Test Cases Test Case Matrix • No actual values are entered for the test conditions • Easy to see what conditions are being tested • Easy to determine test coverage • Comprehensive testing must include positive and negative test cases
  • 9. Use Case and Test CasesUse Case and Test Cases Test Case Matrix with Values • For each test case, add data values for the test conditions • Review and validate the test cases to ensure accuracy and appropriateness of the data values • Eliminate redundant or equivalent test cases • The actual data values entered in the matrix is the basis for developing test data, the test bed
  • 10. Use Case and Test CasesUse Case and Test Cases Test Case Matrix with Values Scenario Name Student ID Password Expected Result Successful Registration tstartz password Confirmation Number displayed – Success Unidentified Student tstartze N/A Error message - Failure
  • 11. Use Case and Test CasesUse Case and Test Cases Automated Test Scripts • Using the test case matrix with values, manual or automated test scripts can be developed • Automated testing scripts are created using a testing tool • A library of automated test scripts greatly enhances your ability to test each build • Over time, this library can be used for regression testing