SlideShare a Scribd company logo
1 of 13
Download to read offline
Test Case
A test case is a set of conditions or variables under which a tester will
determine whether an application or software system is working correctly or
not.
Test cases are often referred to as test scripts, particularly when written.
Written test cases are usually collected into test suites.
The following testing items have close correlation with test cases.
Test Script is a detailed description of the test steps or transaction(s) to be
performed to validate the system or application under test. The test script
must contain the actual entries to be executed as well as the expected results.

Test Step is the lowest level of a test script that performs a specific operation
such as clicking a button or entering data in a text box. Test steps are created
for both manual and automated tests. Each test step must be followed by a
description of the ‘expected result’ of the test step, after it has been executed.
1
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Test Set is a collection of test scripts that are grouped for a specific purpose
(i.e. business process, function/feature).
Test Scenario is a high-level description of a business process or system
functionality that will be tested. Detailed information such as input data,
expected results, parameters, etc. will not be included in the test scenario, but
will rather be located in the test script.
Example: Check Login Functionality.
Test Data Set is a specific set of values for variables in the communication
space of a module, which are used in a test.
Test Procedures define the activities necessary to execute a test script or set of
scripts. Test procedures may contain information regarding the loading of data
and executables into the test system, directions regarding sign in procedures,
instructions regarding the handling of test results, and anything else required
to successfully conduct the test.
2
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Test Harness is a collection of software and test data configured to test a
program unit by running it under varying conditions and monitoring its
behavior and outputs. A test harness has two main parts:
1. Test execution engine
2. Test script repository.
Test harnesses should include the following capabilities:
 A standard way to specify setup (i.e., creating an artificial runtime
environment) and cleanup.
 A method for selecting individual tests to run, or all tests.
 A means of analyzing output for expected (or unexpected) results.
 A standardized form of failure reporting.
Test Script Repository is a library of reusable test scripts (organized by business
process); a location for storage of data.
3
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Test Case Template:

Types of Test Cases:
S# Test Case Type
Test Case Source
1 Requirement Based 1. BRS (Business Requirement Specification) Document
2. FRS (Functional Requirement Specification) Document
3. Other Requirement specifications
2

Design Based

1. HLD (High Level Design) Document i.e. Macro Designs
2. LLD (Low Level Design) Document i.e. Micro Designs
3. Other design artifacts

3
4
5

Code Based
Extreme
Extracted &
Randomized

Pseudo Code, Source Code etc.
Boundary Conditions, Error Guessing etc.
Existing Test Cases
4

Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Requirement and Design based test cases
1. Identify the basic cases that indicate program functionality.
2. Create a minimal set of tests to cover all inputs & outputs.
3. Breakdown complex cases into single cases.
4. Remove unnecessary or duplicate cases.
5. Review systematically and thoroughly.
6. Design based test cases supplement requirements based test cases.
Etc.

Code Based test cases
1. Identify test cases with that every statement in a code exercised at least once.
2. Every decision exercised over all outcomes.
Etc.

Extreme test cases
1. Looks for exceptional conditions, extremes, boundaries, and abnormalities.

Extracted and Randomized test cases
1.
2.

Extracted cases involved extracting samples of real data for the testing process.
Randomized cases involved using tools to generate potential data for the testing process.
5
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Positive Test Cases and Negative Test Cases:

Positive Testing = (Not showing error when not supposed to) + (Showing
error when supposed to) So if either of the situations in parentheses
happens you have a positive test in terms of its result - not what the test
was hoping to find. The application did what it was supposed to do.
Here user tends to put all positive values according to requirements.

Negative Testing = (Showing error when not supposed to) + (Not
showing error when supposed to)(Usually these situations crop up
during boundary testing or cause-effect testing.) Here if either of the
situations in parentheses happens you have a negative test in terms of
its result - again, not what the test was hoping to find. The application
did what it was not supposed to do. User tends to put negative values,
which may crash the application.
6
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
For example in Registration Form, for Name field, user should be
allowed to enter only alphabets. Here for Positive Testing, tester will
enter only alphabets and application should run properly and should
accept only alphabets. For Negative Testing, in the same case user tries
to enter numbers, special characters and if the case is executed
successfully, negative testing is successful.

7
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Test Case Preparation checklist:
This is used to ensure Test cases have been prepared as per specifications. For all the test
responses the test case preparation review checklist test manager will assess the impact &
document it as an issue to concerned parties for resolution. This can be assessed using weekly
status reports or emails.
S No

Activity

1

Comments

Are the resources identified to implement test plan?

3

No

Is the approved Test Plan available?

2

Yes

Are the final copy of requirements and design documents etc. available?

4

Is domain knowledge being imparted to the team members who are working on
the application?
Have Test cases been developed considering all requirements?

5
6

Have all the positive and negative test cases been identified?

7

Have test case design techniques used to write test cases?
Have test cases been written for GUI/Hyperlink testing for Web application

8
9

Have test cases been written to check Date Integrity
8
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Test Case Development Process:
Identify all potential Test Cases needed to fully test the business and
technical requirements
Document Test Procedures
Document Test Data requirements
Prioritize test cases
Identify Test Automation Candidates
Automate designated test cases
Test Case Design Methods:
1. Boundary Value Analysis
2. Equivalence Partitioning
3. Error Guessing
Etc.

9
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Characteristics of good test cases:

• Simple and specific. Any one in the test team should be able to
execute the test cases without the author help.
• Clear, concise, and complete
• No assumptions in test case description, steps, expected result etc.
• Non-redundant
• Reasonable probability of catching an error
• Medium complexity
• Repeatable
• Test cases that have written with the help of test case design
methods
• Test cases that are easily identifiable with their names.
• Always list expected results
Etc.
10
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case
Test Case Guidelines:
– Developed to verify that specific requirements or design are satisfied
– Each component must be tested with at least two test cases: Positive and Negative
– Real data should be used to reality test the modules after successful test data is used

11
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
Test Case

12
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
User Acceptance Testing
References:
http://templateforfree.com/how-to-write-test-cases/

13
Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker

More Related Content

What's hot

Software Testing Fundamentals
Software Testing FundamentalsSoftware Testing Fundamentals
Software Testing Fundamentals
Chankey Pathak
 
Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-concepts
medsherb
 
UNIT TESTING PPT
UNIT TESTING PPTUNIT TESTING PPT
UNIT TESTING PPT
suhasreddy1
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts ppt
Rathna Priya
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
Er. Nancy
 
Test Case Design
Test Case DesignTest Case Design
Test Case Design
acatalin
 
powerpoint template for testing training
powerpoint template for testing trainingpowerpoint template for testing training
powerpoint template for testing training
John Roddy
 

What's hot (20)

Software Testing Fundamentals
Software Testing FundamentalsSoftware Testing Fundamentals
Software Testing Fundamentals
 
Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-concepts
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation Testing
 
Automation testing
Automation testingAutomation testing
Automation testing
 
UNIT TESTING PPT
UNIT TESTING PPTUNIT TESTING PPT
UNIT TESTING PPT
 
Software testing
Software testing Software testing
Software testing
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts ppt
 
Software testing
Software testingSoftware testing
Software testing
 
How To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | EdurekaHow To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | Edureka
 
Test Case, Use Case and Test Scenario
Test Case, Use Case and Test ScenarioTest Case, Use Case and Test Scenario
Test Case, Use Case and Test Scenario
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Software testing
Software testingSoftware testing
Software testing
 
Stlc ppt
Stlc pptStlc ppt
Stlc ppt
 
Test planning
Test planningTest planning
Test planning
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
 
Manual testing ppt
Manual testing pptManual testing ppt
Manual testing ppt
 
Testing
TestingTesting
Testing
 
Test Case Design
Test Case DesignTest Case Design
Test Case Design
 
powerpoint template for testing training
powerpoint template for testing trainingpowerpoint template for testing training
powerpoint template for testing training
 
Software testing & Quality Assurance
Software testing & Quality Assurance Software testing & Quality Assurance
Software testing & Quality Assurance
 

Viewers also liked (7)

7 Excel Control Template
7   Excel Control Template7   Excel Control Template
7 Excel Control Template
 
PCAOB Audit Alert #11: New Internal Control Testing Standards & Excel
PCAOB Audit Alert #11: New Internal Control Testing Standards & ExcelPCAOB Audit Alert #11: New Internal Control Testing Standards & Excel
PCAOB Audit Alert #11: New Internal Control Testing Standards & Excel
 
Ecommerce Website Testing Checklist
Ecommerce Website Testing ChecklistEcommerce Website Testing Checklist
Ecommerce Website Testing Checklist
 
Amazon search test case document
Amazon search test case documentAmazon search test case document
Amazon search test case document
 
Writing Test Cases 20110808
Writing Test Cases 20110808Writing Test Cases 20110808
Writing Test Cases 20110808
 
Project audit & review checklist
Project audit & review checklistProject audit & review checklist
Project audit & review checklist
 
Writing Test Cases in Agile
Writing Test Cases in AgileWriting Test Cases in Agile
Writing Test Cases in Agile
 

Similar to Test cases

Less01 1 introduction_module
Less01 1 introduction_moduleLess01 1 introduction_module
Less01 1 introduction_module
Suresh Mishra
 
Mt s11 test_design
Mt s11 test_designMt s11 test_design
Mt s11 test_design
TestingGeeks
 
Testing Software Solutions
Testing Software SolutionsTesting Software Solutions
Testing Software Solutions
gavhays
 

Similar to Test cases (20)

Testing
TestingTesting
Testing
 
Test case development
Test case developmentTest case development
Test case development
 
L software testing
L   software testingL   software testing
L software testing
 
Whitepaper Test Case Design and Testing Techniques- Factors to Consider
Whitepaper Test Case Design and Testing Techniques- Factors to ConsiderWhitepaper Test Case Design and Testing Techniques- Factors to Consider
Whitepaper Test Case Design and Testing Techniques- Factors to Consider
 
www.tutorialsbook.com presents Manual testing
www.tutorialsbook.com presents Manual testingwww.tutorialsbook.com presents Manual testing
www.tutorialsbook.com presents Manual testing
 
Less01 1 introduction_module
Less01 1 introduction_moduleLess01 1 introduction_module
Less01 1 introduction_module
 
Mt s11 test_design
Mt s11 test_designMt s11 test_design
Mt s11 test_design
 
stlc
stlcstlc
stlc
 
1st module.....
1st module.....1st module.....
1st module.....
 
stlc
stlcstlc
stlc
 
Software testing for biginners
Software testing for biginnersSoftware testing for biginners
Software testing for biginners
 
Software testing introduction
Software testing introductionSoftware testing introduction
Software testing introduction
 
Introduction to testing.
Introduction to testing.Introduction to testing.
Introduction to testing.
 
Test case writing
Test case writingTest case writing
Test case writing
 
manual-testing
manual-testingmanual-testing
manual-testing
 
Testing
TestingTesting
Testing
 
software testing
software testingsoftware testing
software testing
 
Testing Software Solutions
Testing Software SolutionsTesting Software Solutions
Testing Software Solutions
 
ISTQB Foundation - Chapter 2
ISTQB Foundation - Chapter 2ISTQB Foundation - Chapter 2
ISTQB Foundation - Chapter 2
 
AJRA Test Strategy Discussion
AJRA Test Strategy DiscussionAJRA Test Strategy Discussion
AJRA Test Strategy Discussion
 

Recently uploaded

reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdfreStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
Ken Fuller
 
➥🔝 7737669865 🔝▻ Tirupati Call-girls in Women Seeking Men 🔝Tirupati🔝 Escor...
➥🔝 7737669865 🔝▻ Tirupati Call-girls in Women Seeking Men  🔝Tirupati🔝   Escor...➥🔝 7737669865 🔝▻ Tirupati Call-girls in Women Seeking Men  🔝Tirupati🔝   Escor...
➥🔝 7737669865 🔝▻ Tirupati Call-girls in Women Seeking Men 🔝Tirupati🔝 Escor...
amitlee9823
 
Gabriel_Carter_EXPOLRATIONpp.pptx........
Gabriel_Carter_EXPOLRATIONpp.pptx........Gabriel_Carter_EXPOLRATIONpp.pptx........
Gabriel_Carter_EXPOLRATIONpp.pptx........
deejay178
 
Call Girls Brigade Road Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Brigade Road Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Brigade Road Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Brigade Road Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
amitlee9823
 
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
ZurliaSoop
 
Call Girls Jayanagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jayanagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jayanagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jayanagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
amitlee9823
 
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Dombivli Call Girls, 9892124323, Kharghar Call Girls, chembur Call Girls, Vas...
Dombivli Call Girls, 9892124323, Kharghar Call Girls, chembur Call Girls, Vas...Dombivli Call Girls, 9892124323, Kharghar Call Girls, chembur Call Girls, Vas...
Dombivli Call Girls, 9892124323, Kharghar Call Girls, chembur Call Girls, Vas...
Pooja Nehwal
 
Call Girls Bommanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Bommanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Bommanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Bommanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
amitlee9823
 
Call Girls In Kengeri Satellite Town ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Kengeri Satellite Town ☎ 7737669865 🥵 Book Your One night StandCall Girls In Kengeri Satellite Town ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Kengeri Satellite Town ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 

Recently uploaded (20)

Joshua Minker Brand Exploration Sports Broadcaster .pptx
Joshua Minker Brand Exploration Sports Broadcaster .pptxJoshua Minker Brand Exploration Sports Broadcaster .pptx
Joshua Minker Brand Exploration Sports Broadcaster .pptx
 
Personal Brand Exploration - Fernando Negron
Personal Brand Exploration - Fernando NegronPersonal Brand Exploration - Fernando Negron
Personal Brand Exploration - Fernando Negron
 
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdfreStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
reStartEvents 5:9 DC metro & Beyond V-Career Fair Employer Directory.pdf
 
Solution Manual for First Course in Abstract Algebra A, 8th Edition by John B...
Solution Manual for First Course in Abstract Algebra A, 8th Edition by John B...Solution Manual for First Course in Abstract Algebra A, 8th Edition by John B...
Solution Manual for First Course in Abstract Algebra A, 8th Edition by John B...
 
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Road Call Me 7737669865 Budget Friendly No Advance Booking
 
Hyderabad 💫✅💃 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATIS...
Hyderabad 💫✅💃 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATIS...Hyderabad 💫✅💃 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATIS...
Hyderabad 💫✅💃 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATIS...
 
➥🔝 7737669865 🔝▻ Tirupati Call-girls in Women Seeking Men 🔝Tirupati🔝 Escor...
➥🔝 7737669865 🔝▻ Tirupati Call-girls in Women Seeking Men  🔝Tirupati🔝   Escor...➥🔝 7737669865 🔝▻ Tirupati Call-girls in Women Seeking Men  🔝Tirupati🔝   Escor...
➥🔝 7737669865 🔝▻ Tirupati Call-girls in Women Seeking Men 🔝Tirupati🔝 Escor...
 
Gabriel_Carter_EXPOLRATIONpp.pptx........
Gabriel_Carter_EXPOLRATIONpp.pptx........Gabriel_Carter_EXPOLRATIONpp.pptx........
Gabriel_Carter_EXPOLRATIONpp.pptx........
 
Call Girls Brigade Road Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Brigade Road Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Brigade Road Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Brigade Road Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
 
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Bidadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
Jual obat aborsi Jakarta ( 085657271886 )Cytote pil telat bulan penggugur kan...
 
Dark Dubai Call Girls O525547819 Skin Call Girls Dubai
Dark Dubai Call Girls O525547819 Skin Call Girls DubaiDark Dubai Call Girls O525547819 Skin Call Girls Dubai
Dark Dubai Call Girls O525547819 Skin Call Girls Dubai
 
Call Girls Jayanagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jayanagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jayanagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jayanagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Devanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Top Rated Pune Call Girls Warje ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Warje ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Warje ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Warje ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
 
Dombivli Call Girls, 9892124323, Kharghar Call Girls, chembur Call Girls, Vas...
Dombivli Call Girls, 9892124323, Kharghar Call Girls, chembur Call Girls, Vas...Dombivli Call Girls, 9892124323, Kharghar Call Girls, chembur Call Girls, Vas...
Dombivli Call Girls, 9892124323, Kharghar Call Girls, chembur Call Girls, Vas...
 
Call Girls Bommanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Bommanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Bommanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Bommanahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
 
Miletti Gabriela_Vision Plan for artist Jahzel.pdf
Miletti Gabriela_Vision Plan for artist Jahzel.pdfMiletti Gabriela_Vision Plan for artist Jahzel.pdf
Miletti Gabriela_Vision Plan for artist Jahzel.pdf
 
Call Girls In Kengeri Satellite Town ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Kengeri Satellite Town ☎ 7737669865 🥵 Book Your One night StandCall Girls In Kengeri Satellite Town ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Kengeri Satellite Town ☎ 7737669865 🥵 Book Your One night Stand
 
Booking open Available Pune Call Girls Ambegaon Khurd 6297143586 Call Hot In...
Booking open Available Pune Call Girls Ambegaon Khurd  6297143586 Call Hot In...Booking open Available Pune Call Girls Ambegaon Khurd  6297143586 Call Hot In...
Booking open Available Pune Call Girls Ambegaon Khurd 6297143586 Call Hot In...
 

Test cases

  • 1. Test Case A test case is a set of conditions or variables under which a tester will determine whether an application or software system is working correctly or not. Test cases are often referred to as test scripts, particularly when written. Written test cases are usually collected into test suites. The following testing items have close correlation with test cases. Test Script is a detailed description of the test steps or transaction(s) to be performed to validate the system or application under test. The test script must contain the actual entries to be executed as well as the expected results. Test Step is the lowest level of a test script that performs a specific operation such as clicking a button or entering data in a text box. Test steps are created for both manual and automated tests. Each test step must be followed by a description of the ‘expected result’ of the test step, after it has been executed. 1 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 2. Test Case Test Set is a collection of test scripts that are grouped for a specific purpose (i.e. business process, function/feature). Test Scenario is a high-level description of a business process or system functionality that will be tested. Detailed information such as input data, expected results, parameters, etc. will not be included in the test scenario, but will rather be located in the test script. Example: Check Login Functionality. Test Data Set is a specific set of values for variables in the communication space of a module, which are used in a test. Test Procedures define the activities necessary to execute a test script or set of scripts. Test procedures may contain information regarding the loading of data and executables into the test system, directions regarding sign in procedures, instructions regarding the handling of test results, and anything else required to successfully conduct the test. 2 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 3. Test Case Test Harness is a collection of software and test data configured to test a program unit by running it under varying conditions and monitoring its behavior and outputs. A test harness has two main parts: 1. Test execution engine 2. Test script repository. Test harnesses should include the following capabilities:  A standard way to specify setup (i.e., creating an artificial runtime environment) and cleanup.  A method for selecting individual tests to run, or all tests.  A means of analyzing output for expected (or unexpected) results.  A standardized form of failure reporting. Test Script Repository is a library of reusable test scripts (organized by business process); a location for storage of data. 3 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 4. Test Case Test Case Template: Types of Test Cases: S# Test Case Type Test Case Source 1 Requirement Based 1. BRS (Business Requirement Specification) Document 2. FRS (Functional Requirement Specification) Document 3. Other Requirement specifications 2 Design Based 1. HLD (High Level Design) Document i.e. Macro Designs 2. LLD (Low Level Design) Document i.e. Micro Designs 3. Other design artifacts 3 4 5 Code Based Extreme Extracted & Randomized Pseudo Code, Source Code etc. Boundary Conditions, Error Guessing etc. Existing Test Cases 4 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 5. Test Case Requirement and Design based test cases 1. Identify the basic cases that indicate program functionality. 2. Create a minimal set of tests to cover all inputs & outputs. 3. Breakdown complex cases into single cases. 4. Remove unnecessary or duplicate cases. 5. Review systematically and thoroughly. 6. Design based test cases supplement requirements based test cases. Etc. Code Based test cases 1. Identify test cases with that every statement in a code exercised at least once. 2. Every decision exercised over all outcomes. Etc. Extreme test cases 1. Looks for exceptional conditions, extremes, boundaries, and abnormalities. Extracted and Randomized test cases 1. 2. Extracted cases involved extracting samples of real data for the testing process. Randomized cases involved using tools to generate potential data for the testing process. 5 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 6. Test Case Positive Test Cases and Negative Test Cases: Positive Testing = (Not showing error when not supposed to) + (Showing error when supposed to) So if either of the situations in parentheses happens you have a positive test in terms of its result - not what the test was hoping to find. The application did what it was supposed to do. Here user tends to put all positive values according to requirements. Negative Testing = (Showing error when not supposed to) + (Not showing error when supposed to)(Usually these situations crop up during boundary testing or cause-effect testing.) Here if either of the situations in parentheses happens you have a negative test in terms of its result - again, not what the test was hoping to find. The application did what it was not supposed to do. User tends to put negative values, which may crash the application. 6 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 7. Test Case For example in Registration Form, for Name field, user should be allowed to enter only alphabets. Here for Positive Testing, tester will enter only alphabets and application should run properly and should accept only alphabets. For Negative Testing, in the same case user tries to enter numbers, special characters and if the case is executed successfully, negative testing is successful. 7 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 8. Test Case Test Case Preparation checklist: This is used to ensure Test cases have been prepared as per specifications. For all the test responses the test case preparation review checklist test manager will assess the impact & document it as an issue to concerned parties for resolution. This can be assessed using weekly status reports or emails. S No Activity 1 Comments Are the resources identified to implement test plan? 3 No Is the approved Test Plan available? 2 Yes Are the final copy of requirements and design documents etc. available? 4 Is domain knowledge being imparted to the team members who are working on the application? Have Test cases been developed considering all requirements? 5 6 Have all the positive and negative test cases been identified? 7 Have test case design techniques used to write test cases? Have test cases been written for GUI/Hyperlink testing for Web application 8 9 Have test cases been written to check Date Integrity 8 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 9. Test Case Test Case Development Process: Identify all potential Test Cases needed to fully test the business and technical requirements Document Test Procedures Document Test Data requirements Prioritize test cases Identify Test Automation Candidates Automate designated test cases Test Case Design Methods: 1. Boundary Value Analysis 2. Equivalence Partitioning 3. Error Guessing Etc. 9 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 10. Test Case Characteristics of good test cases: • Simple and specific. Any one in the test team should be able to execute the test cases without the author help. • Clear, concise, and complete • No assumptions in test case description, steps, expected result etc. • Non-redundant • Reasonable probability of catching an error • Medium complexity • Repeatable • Test cases that have written with the help of test case design methods • Test cases that are easily identifiable with their names. • Always list expected results Etc. 10 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 11. Test Case Test Case Guidelines: – Developed to verify that specific requirements or design are satisfied – Each component must be tested with at least two test cases: Positive and Negative – Real data should be used to reality test the modules after successful test data is used 11 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 12. Test Case 12 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker
  • 13. User Acceptance Testing References: http://templateforfree.com/how-to-write-test-cases/ 13 Quality in a service or product is not what you put into it. It is what the client or customer gets out of it. – Peter Drucker