SlideShare une entreprise Scribd logo
1  sur  19
Testing Documentation
Writing Test Cases
Strategies for Writing Large Systems
Roles of People Testing
© Lethbridge/Laganière 2001 20 2
Documentation Defects
• Defect:
—The software has a defect if:
- 1) the user manual,
- 2) reference manual or
- 3) on-line help:
» gives incorrect information
» fails to give information relevant to a problem.
• Testing strategy:
—Examine all the end-user documentation, making sure it is
correct.
—Work through the use cases, making sure each potential
problem is adequately explained to the user.
—Story: reading levels; SCCQ.
© Lethbridge/Laganière 2001 20 3
Writing Formal Test Cases and Test Plans
A test case is an explicit set of instructions designed to detect a particular
class of defects in a software system.
Note: the test cases are DESIGNED to detect errors!!!!
There may be a number of individual tests in a test case, such as invalid
inputs, invalid formats, missing attributes / fields, and more. A single test
case may test for a number of these
• Lots of errors (combinations!) arise when more than one field is in error….
• Each test is a particular running of the test case on a particular version
of the system.
• All are included in a suite of tests…
© Lethbridge/Laganière 2001 20 4
Test Plans – A Critical Document.
Document contains a complete set of test cases for a system
—Along with other information about the testing process.
—Who does what; when; how; anticipated results; ….
• The Test Plan is one of the standard forms of documentation.
• Test Plan - Written long before the testing starts.
• Test Plan Development:
—once you have developed the requirements, planning for testing should start
to occur at ‘that’ time.
—Many types of tests can be developed directly from Use Cases.
—Why not all from the use cases? Discuss.
• If a project does not have a test plan:
—Testing will inevitably be done in an ad-hoc manner.
—This will lead to poor quality software.
© Lethbridge/Laganière 2001 20 5
Information to include in a Formal Test case
A. Identification and classification:
—Each test case should have a number, title (optional).
—Indicate system, subsystem or module being tested
—Test case importance – indicate this.
—
B. Instructions:
—Tell the tester exactly what to do.
—Tester should not normally have to refer to any other documentation in order to
execute the instructions.
C. Expected result:
—Cite expected results and provide to tester
—Report test failure if the expected results are not produced.
- All organizations will have some formal procedure for documenting the results of independent
testing; failures; successes.
-
D. Cleanup (when needed):
—Inform tester how to restart / recover in the event of failure.
—Further, this too should be a specific test.
© Lethbridge/Laganière 2001 20 6
All Test Cases are Not Created Equal…
• Level 1:
—Critical test cases.
—Designed to verify the system runs and is safe.
• Level 2:
—General test cases.
—Verify that day-to-day functions correctly.
- Still permit testing of other aspects of the system.
• Level 3:
—Detailed test cases.
—Test requirements that are of lesser importance.
• Somewhere in these levels may very well be the testing of non-
functional requirements such as testing under peak loading
(numbers of simultaneous users, files being accessed, etc.),
reliability, performance, recovery, simultaneous / concurrent
database access, remote object interfacing, … and more.
© Lethbridge/Laganière 2001 20 8
Strategies for Testing Large Systems
Big Bang Testing versus Integration Testing
• Big Bang Testing, you take the entire system and test it
as a unit
• Incremental Testing: A better strategy in most cases.
—Test each individual subsystem in isolation
—Continue testing as you add more and more
subsystems to the final product
—Incremental testing can be performed horizontally or
vertically, depending on the architecture
- Horizontal testing can be used when the system is divided
into separate sub-applications
© Lethbridge/Laganière 2001 20 9
Top Down Testing - Stubs
• User Interface Start here!
• Underlying functionality may be simulated by stubs.
—Do not perform any real computations or manipulate
any real data.
—Placeholders to be completed ‘later.’
• Work downwards, integrating lower and lower levels.
• Big drawback: Cost of writing the stubs.
—You may need to simulate ‘returns’ or ‘responses’
—This can be problematic.
—But it is a good technique too.
© Lethbridge/Laganière 2001 20 10
Bottom-Up testing - Drivers
•Start at very lowest levels of the software.
•Expense here: You needs drivers to test the lower layers.
—Drivers are simple programs designed specifically for testing that
make calls to the lower layers and/or provide parameters.
•Drivers in bottom-up testing have a similar role to stubs in top-down
testing, and are time-consuming to write.
•Drivers may need to provide various parameters, temporary files, and
may have to be coded to recognize the proper value / type of data
returned!
© Lethbridge/Laganière 2001 20 11
Sandwich Testing
• Hybrid between bottom-up and top down testing.
• Top down: Test the user interface in isolation, using stubs.
• Test the very lowest level functions, using drivers. These
may be utility functions or pre-existing functions that are
being reused…
• When the complete system is integrated, only the middle
layer remains on which to perform the final set of tests.
• Sandwich testing is very good especially when reusing
existing logic.
© Lethbridge/Laganière 2001 20 12
Vertical Strategies for Incremental Integration Testing
What does all this
mean to you?
Explain.
© Lethbridge/Laganière 2001 20 13
The “Test-Fix-Test” Cycle
When a failure occurs during testing:
• Each failure report should enter into a failure tracking system.
These are likely formalized.
• Screened and assigned a Priority.
•
• Known Bugs List: Low-priority failures might be put here.
— May be included with the software’s release notes.
• Somebody/some office is assigned to investigate a failure.
• That person/office tracks down the defect and fixes it.
• Finally a new version of the system is created, ready to be tested
again.
• We will discuss in detail, as the above is quite simplistic and a
number of important facts are not noted.
© Lethbridge/Laganière 2001 20 14
The Ripple Effect – Regression Errors
High probability efforts to remove defects adds new defects
How so?
• The maintainer tries to fix problems without fully understanding the
ramifications of the changes.
• The maintainer makes ordinary human errors
• The system regresses into a more and more failure-prone state
• Maintenance programmer given insufficient time to properly analyze,
repair, and adequately repair due to pressures.
• All programmers are not created equal.
• Regression Testing
—Based on storing / documentation of previous tests.
• Heuristic: put your sharpest new hire into Maintenance!!!!
© Lethbridge/Laganière 2001 20 15
Regression Testing
• Is far too expensive to re-run every single test case every time a
change is made to software.
• Only a subset of the previously-successful test cases is re-run.
• This process is called regression testing.
—The tests that are re-run are called regression tests.
• Regression test cases - carefully selected to cover as much of the
system as possible that can in any way have been affected by a
maintenance change or any kind of change.
The “Law of Conservation of Bugs”:
• The number of bugs remaining in a large system is proportional to
the number of bugs already fixed
© Lethbridge/Laganière 2001 20 16
Deciding When to Stop Testing
• All of the level 1 test cases must have been successfully executed.
• Pre-defined percentages of level 2 and level 3 test cases must have been
executed successfully.
•
• The targets must have been achieved and are maintained for at least two
cycles of ‘builds’.
—A build involves compiling / integrating all components.
—Failure rates can fluctuate from build to build as:
- Different sets of regression tests are run.
- New defects are introduced.
• But the notion of ‘stopping’ is quite real.
• Discuss: Show stoppers!!!!
© Lethbridge/Laganière 2001 20 17
The Roles of People Involved in Testing
• The first pass of unit and integration testing is called developer testing.
—Preliminary testing performed by the software developers who do the design and
programming
—Really, there is/are so many more ‘levels’ than this…Depends on the
organization and how ‘they’ undertake testing strategies…
—Depending on the architecture, there well may be subsystem testing, system
testing, various kinds of integrated testing, etc. (Different shops will call these
by different names – perhaps.
• Independent testing is performed (often) by a separate group.
—They do not have vested interest in seeing as many test cases pass as possible.
—They develop specific expertise in how to do good testing, and how to use testing
tools.
—NOT all organizations have independent test groups! (Discuss)
—Done after ‘unit’ testing. Perhaps for System Testing < Deployment
—Can bet there is an independent test group in medium to large organizations.
• Discuss: Quality Control Branch; Editors; Independent test groups: to whom do
they report? etc.
© Lethbridge/Laganière 2001 20 18
Testing Performed by Users and Clients
• Alpha testing
—Performed by the user or client, but under the supervision of the software
development team.
—Generally software is clearly not ready for release; maybe partial.
—Maybe testing a particular major feature…
• Beta testing
—Performed by the user or client in a normal work environment.
—May be run at client shop…
—Recruited from the potential user population.
—An open beta release is the release of low-quality software to the general
population. (not too low now…)
• Acceptance testing
—Performed by users and customers.
—However, the customers exercise the application on their own initiative often in
real live situations, loading, etc..
• AGAIN, these definitions may vary from organization to organization. (My
experience: Environmental Systems Test 1 and 2 and Operational Field Test (OFT))
© Lethbridge/Laganière 2001 20 19
Beta Testing
Discuss: Selection of beta-test sites
Sizes / Dependencies of shops
Small, Medium, Large
Local; Distributed; Platforms…..
Motivations for them / us
Early look at software
See about interfaces
Get a leg up on ‘market share’
Ensure ‘their’ requirements are met
Costs!
Taken out of their hide!
Run applications in parallel?
More (may be cut a deal to serve as beta test site)
© Lethbridge/Laganière 2001 20 20
Acceptance Testing
End-user
Test the ‘toot’ out of the application
Remember: to the end-user, the interface IS the application
Testing is usually Black Box
Functional; Can users use the application to perform
their jobs: utility, usability, functionality, timing,
response, …
More Black Box:
May include non-functional testing such as loading
situations, performance, response times, transaction
volumes, etc.
Despite all levels of testing, there will be bugs!
This is a fact of life.
Then, Maintenance begins!

Contenu connexe

Similaire à 39.Testing-Part3.ppt

Module V - Software Testing Strategies.pdf
Module V - Software Testing Strategies.pdfModule V - Software Testing Strategies.pdf
Module V - Software Testing Strategies.pdfadhithanr
 
sst ppt.pptx
sst ppt.pptxsst ppt.pptx
sst ppt.pptxPRIANKA R
 
Fundamentals of software part 1
Fundamentals of software part 1Fundamentals of software part 1
Fundamentals of software part 1Siddharth Sharma
 
Automated testing overview
Automated testing overviewAutomated testing overview
Automated testing overviewAlex Pop
 
Software testing & its technology
Software testing & its technologySoftware testing & its technology
Software testing & its technologyHasam Panezai
 
Software testing part
Software testing partSoftware testing part
Software testing partPreeti Mishra
 
6months industrial training in software testing, jalandhar
6months industrial training in software testing, jalandhar6months industrial training in software testing, jalandhar
6months industrial training in software testing, jalandhardeepikakaler1
 
6 weeks summer training in software testing,ludhiana
6 weeks summer training in software testing,ludhiana6 weeks summer training in software testing,ludhiana
6 weeks summer training in software testing,ludhianadeepikakaler1
 
6 weeks summer training in software testing,jalandhar
6 weeks summer training in software testing,jalandhar6 weeks summer training in software testing,jalandhar
6 weeks summer training in software testing,jalandhardeepikakaler1
 
6months industrial training in software testing, ludhiana
6months industrial training in software testing, ludhiana6months industrial training in software testing, ludhiana
6months industrial training in software testing, ludhianadeepikakaler1
 
Lecture (Software Testing).pptx
Lecture (Software Testing).pptxLecture (Software Testing).pptx
Lecture (Software Testing).pptxskknowledge
 
Testing 3: Types Of Tests That May Be Required
Testing 3: Types Of Tests That May Be RequiredTesting 3: Types Of Tests That May Be Required
Testing 3: Types Of Tests That May Be RequiredArleneAndrews2
 
Agile Software Testing the Agilogy Way
Agile Software Testing the Agilogy WayAgile Software Testing the Agilogy Way
Agile Software Testing the Agilogy WayJordi Pradel
 
Software testing mtech project in jalandhar
Software testing mtech project in jalandharSoftware testing mtech project in jalandhar
Software testing mtech project in jalandhardeepikakaler1
 
Software testing mtech project in ludhiana
Software testing mtech project in ludhianaSoftware testing mtech project in ludhiana
Software testing mtech project in ludhianadeepikakaler1
 
SQA PPT by students of tybsc.it 2023--24
SQA PPT by students of tybsc.it 2023--24SQA PPT by students of tybsc.it 2023--24
SQA PPT by students of tybsc.it 2023--24RishiSingh252284
 
softwaretesting-140721025833-phpapp02.pptx
softwaretesting-140721025833-phpapp02.pptxsoftwaretesting-140721025833-phpapp02.pptx
softwaretesting-140721025833-phpapp02.pptxSHAMSHADHUSAIN9
 
Testing throughout the software life cycle
Testing throughout the software life cycleTesting throughout the software life cycle
Testing throughout the software life cycleMusTufa Nullwala
 

Similaire à 39.Testing-Part3.ppt (20)

Module V - Software Testing Strategies.pdf
Module V - Software Testing Strategies.pdfModule V - Software Testing Strategies.pdf
Module V - Software Testing Strategies.pdf
 
sst ppt.pptx
sst ppt.pptxsst ppt.pptx
sst ppt.pptx
 
Fundamentals of software part 1
Fundamentals of software part 1Fundamentals of software part 1
Fundamentals of software part 1
 
Automated testing overview
Automated testing overviewAutomated testing overview
Automated testing overview
 
Software testing & its technology
Software testing & its technologySoftware testing & its technology
Software testing & its technology
 
Software testing part
Software testing partSoftware testing part
Software testing part
 
6months industrial training in software testing, jalandhar
6months industrial training in software testing, jalandhar6months industrial training in software testing, jalandhar
6months industrial training in software testing, jalandhar
 
6 weeks summer training in software testing,ludhiana
6 weeks summer training in software testing,ludhiana6 weeks summer training in software testing,ludhiana
6 weeks summer training in software testing,ludhiana
 
6 weeks summer training in software testing,jalandhar
6 weeks summer training in software testing,jalandhar6 weeks summer training in software testing,jalandhar
6 weeks summer training in software testing,jalandhar
 
6months industrial training in software testing, ludhiana
6months industrial training in software testing, ludhiana6months industrial training in software testing, ludhiana
6months industrial training in software testing, ludhiana
 
Lecture (Software Testing).pptx
Lecture (Software Testing).pptxLecture (Software Testing).pptx
Lecture (Software Testing).pptx
 
Software testing
Software testingSoftware testing
Software testing
 
Testing 3: Types Of Tests That May Be Required
Testing 3: Types Of Tests That May Be RequiredTesting 3: Types Of Tests That May Be Required
Testing 3: Types Of Tests That May Be Required
 
Different Types Of Testing
Different Types Of TestingDifferent Types Of Testing
Different Types Of Testing
 
Agile Software Testing the Agilogy Way
Agile Software Testing the Agilogy WayAgile Software Testing the Agilogy Way
Agile Software Testing the Agilogy Way
 
Software testing mtech project in jalandhar
Software testing mtech project in jalandharSoftware testing mtech project in jalandhar
Software testing mtech project in jalandhar
 
Software testing mtech project in ludhiana
Software testing mtech project in ludhianaSoftware testing mtech project in ludhiana
Software testing mtech project in ludhiana
 
SQA PPT by students of tybsc.it 2023--24
SQA PPT by students of tybsc.it 2023--24SQA PPT by students of tybsc.it 2023--24
SQA PPT by students of tybsc.it 2023--24
 
softwaretesting-140721025833-phpapp02.pptx
softwaretesting-140721025833-phpapp02.pptxsoftwaretesting-140721025833-phpapp02.pptx
softwaretesting-140721025833-phpapp02.pptx
 
Testing throughout the software life cycle
Testing throughout the software life cycleTesting throughout the software life cycle
Testing throughout the software life cycle
 

Dernier

Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen DatingDubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Datingkojalkojal131
 
Internship Report].pdf iiwmoosmsosmshkssmk
Internship Report].pdf iiwmoosmsosmshkssmkInternship Report].pdf iiwmoosmsosmshkssmk
Internship Report].pdf iiwmoosmsosmshkssmkSujalTamhane
 
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big BoodyDubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boodykojalkojal131
 
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
 
Motilal Oswal Gift City Fund PPT - Apr 2024.pptx
Motilal Oswal Gift City Fund PPT - Apr 2024.pptxMotilal Oswal Gift City Fund PPT - Apr 2024.pptx
Motilal Oswal Gift City Fund PPT - Apr 2024.pptxMaulikVasani1
 
Personal Brand Exploration - Fernando Negron
Personal Brand Exploration - Fernando NegronPersonal Brand Exploration - Fernando Negron
Personal Brand Exploration - Fernando Negronnegronf24
 
Vip Modals Call Girls (Delhi) Rohini 9711199171✔️ Full night Service for one...
Vip  Modals Call Girls (Delhi) Rohini 9711199171✔️ Full night Service for one...Vip  Modals Call Girls (Delhi) Rohini 9711199171✔️ Full night Service for one...
Vip Modals Call Girls (Delhi) Rohini 9711199171✔️ Full night Service for one...shivangimorya083
 
Escorts Service Cambridge Layout ☎ 7737669865☎ Book Your One night Stand (Ba...
Escorts Service Cambridge Layout  ☎ 7737669865☎ Book Your One night Stand (Ba...Escorts Service Cambridge Layout  ☎ 7737669865☎ Book Your One night Stand (Ba...
Escorts Service Cambridge Layout ☎ 7737669865☎ Book Your One night Stand (Ba...amitlee9823
 
Call Girls Hoodi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hoodi Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hoodi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hoodi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
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
 
OSU毕业证留学文凭,制做办理
OSU毕业证留学文凭,制做办理OSU毕业证留学文凭,制做办理
OSU毕业证留学文凭,制做办理cowagem
 
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual serviceanilsa9823
 
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...robinsonayot
 
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...Pooja Nehwal
 
Toxicokinetics studies.. (toxicokinetics evaluation in preclinical studies)
Toxicokinetics studies.. (toxicokinetics evaluation in preclinical studies)Toxicokinetics studies.. (toxicokinetics evaluation in preclinical studies)
Toxicokinetics studies.. (toxicokinetics evaluation in preclinical studies)sonalinghatmal
 
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)amitlee9823
 
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...Call Girls in Nagpur High Profile
 
Presentation on Workplace Politics.ppt..
Presentation on Workplace Politics.ppt..Presentation on Workplace Politics.ppt..
Presentation on Workplace Politics.ppt..Masuk Ahmed
 

Dernier (20)

Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen DatingDubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
Dubai Call Girls Starlet O525547819 Call Girls Dubai Showen Dating
 
Internship Report].pdf iiwmoosmsosmshkssmk
Internship Report].pdf iiwmoosmsosmshkssmkInternship Report].pdf iiwmoosmsosmshkssmk
Internship Report].pdf iiwmoosmsosmshkssmk
 
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big BoodyDubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
 
Sensual Moments: +91 9999965857 Independent Call Girls Paharganj Delhi {{ Mon...
Sensual Moments: +91 9999965857 Independent Call Girls Paharganj Delhi {{ Mon...Sensual Moments: +91 9999965857 Independent Call Girls Paharganj Delhi {{ Mon...
Sensual Moments: +91 9999965857 Independent Call Girls Paharganj Delhi {{ Mon...
 
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...
 
Motilal Oswal Gift City Fund PPT - Apr 2024.pptx
Motilal Oswal Gift City Fund PPT - Apr 2024.pptxMotilal Oswal Gift City Fund PPT - Apr 2024.pptx
Motilal Oswal Gift City Fund PPT - Apr 2024.pptx
 
Personal Brand Exploration - Fernando Negron
Personal Brand Exploration - Fernando NegronPersonal Brand Exploration - Fernando Negron
Personal Brand Exploration - Fernando Negron
 
Vip Modals Call Girls (Delhi) Rohini 9711199171✔️ Full night Service for one...
Vip  Modals Call Girls (Delhi) Rohini 9711199171✔️ Full night Service for one...Vip  Modals Call Girls (Delhi) Rohini 9711199171✔️ Full night Service for one...
Vip Modals Call Girls (Delhi) Rohini 9711199171✔️ Full night Service for one...
 
Escorts Service Cambridge Layout ☎ 7737669865☎ Book Your One night Stand (Ba...
Escorts Service Cambridge Layout  ☎ 7737669865☎ Book Your One night Stand (Ba...Escorts Service Cambridge Layout  ☎ 7737669865☎ Book Your One night Stand (Ba...
Escorts Service Cambridge Layout ☎ 7737669865☎ Book Your One night Stand (Ba...
 
Call Girls Hoodi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hoodi Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hoodi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hoodi Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
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...
 
OSU毕业证留学文凭,制做办理
OSU毕业证留学文凭,制做办理OSU毕业证留学文凭,制做办理
OSU毕业证留学文凭,制做办理
 
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
 
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...
 
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Hosur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...
 
Toxicokinetics studies.. (toxicokinetics evaluation in preclinical studies)
Toxicokinetics studies.. (toxicokinetics evaluation in preclinical studies)Toxicokinetics studies.. (toxicokinetics evaluation in preclinical studies)
Toxicokinetics studies.. (toxicokinetics evaluation in preclinical studies)
 
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
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...
 
Presentation on Workplace Politics.ppt..
Presentation on Workplace Politics.ppt..Presentation on Workplace Politics.ppt..
Presentation on Workplace Politics.ppt..
 

39.Testing-Part3.ppt

  • 1. Testing Documentation Writing Test Cases Strategies for Writing Large Systems Roles of People Testing
  • 2. © Lethbridge/Laganière 2001 20 2 Documentation Defects • Defect: —The software has a defect if: - 1) the user manual, - 2) reference manual or - 3) on-line help: » gives incorrect information » fails to give information relevant to a problem. • Testing strategy: —Examine all the end-user documentation, making sure it is correct. —Work through the use cases, making sure each potential problem is adequately explained to the user. —Story: reading levels; SCCQ.
  • 3. © Lethbridge/Laganière 2001 20 3 Writing Formal Test Cases and Test Plans A test case is an explicit set of instructions designed to detect a particular class of defects in a software system. Note: the test cases are DESIGNED to detect errors!!!! There may be a number of individual tests in a test case, such as invalid inputs, invalid formats, missing attributes / fields, and more. A single test case may test for a number of these • Lots of errors (combinations!) arise when more than one field is in error…. • Each test is a particular running of the test case on a particular version of the system. • All are included in a suite of tests…
  • 4. © Lethbridge/Laganière 2001 20 4 Test Plans – A Critical Document. Document contains a complete set of test cases for a system —Along with other information about the testing process. —Who does what; when; how; anticipated results; …. • The Test Plan is one of the standard forms of documentation. • Test Plan - Written long before the testing starts. • Test Plan Development: —once you have developed the requirements, planning for testing should start to occur at ‘that’ time. —Many types of tests can be developed directly from Use Cases. —Why not all from the use cases? Discuss. • If a project does not have a test plan: —Testing will inevitably be done in an ad-hoc manner. —This will lead to poor quality software.
  • 5. © Lethbridge/Laganière 2001 20 5 Information to include in a Formal Test case A. Identification and classification: —Each test case should have a number, title (optional). —Indicate system, subsystem or module being tested —Test case importance – indicate this. — B. Instructions: —Tell the tester exactly what to do. —Tester should not normally have to refer to any other documentation in order to execute the instructions. C. Expected result: —Cite expected results and provide to tester —Report test failure if the expected results are not produced. - All organizations will have some formal procedure for documenting the results of independent testing; failures; successes. - D. Cleanup (when needed): —Inform tester how to restart / recover in the event of failure. —Further, this too should be a specific test.
  • 6. © Lethbridge/Laganière 2001 20 6 All Test Cases are Not Created Equal… • Level 1: —Critical test cases. —Designed to verify the system runs and is safe. • Level 2: —General test cases. —Verify that day-to-day functions correctly. - Still permit testing of other aspects of the system. • Level 3: —Detailed test cases. —Test requirements that are of lesser importance. • Somewhere in these levels may very well be the testing of non- functional requirements such as testing under peak loading (numbers of simultaneous users, files being accessed, etc.), reliability, performance, recovery, simultaneous / concurrent database access, remote object interfacing, … and more.
  • 7. © Lethbridge/Laganière 2001 20 8 Strategies for Testing Large Systems Big Bang Testing versus Integration Testing • Big Bang Testing, you take the entire system and test it as a unit • Incremental Testing: A better strategy in most cases. —Test each individual subsystem in isolation —Continue testing as you add more and more subsystems to the final product —Incremental testing can be performed horizontally or vertically, depending on the architecture - Horizontal testing can be used when the system is divided into separate sub-applications
  • 8. © Lethbridge/Laganière 2001 20 9 Top Down Testing - Stubs • User Interface Start here! • Underlying functionality may be simulated by stubs. —Do not perform any real computations or manipulate any real data. —Placeholders to be completed ‘later.’ • Work downwards, integrating lower and lower levels. • Big drawback: Cost of writing the stubs. —You may need to simulate ‘returns’ or ‘responses’ —This can be problematic. —But it is a good technique too.
  • 9. © Lethbridge/Laganière 2001 20 10 Bottom-Up testing - Drivers •Start at very lowest levels of the software. •Expense here: You needs drivers to test the lower layers. —Drivers are simple programs designed specifically for testing that make calls to the lower layers and/or provide parameters. •Drivers in bottom-up testing have a similar role to stubs in top-down testing, and are time-consuming to write. •Drivers may need to provide various parameters, temporary files, and may have to be coded to recognize the proper value / type of data returned!
  • 10. © Lethbridge/Laganière 2001 20 11 Sandwich Testing • Hybrid between bottom-up and top down testing. • Top down: Test the user interface in isolation, using stubs. • Test the very lowest level functions, using drivers. These may be utility functions or pre-existing functions that are being reused… • When the complete system is integrated, only the middle layer remains on which to perform the final set of tests. • Sandwich testing is very good especially when reusing existing logic.
  • 11. © Lethbridge/Laganière 2001 20 12 Vertical Strategies for Incremental Integration Testing What does all this mean to you? Explain.
  • 12. © Lethbridge/Laganière 2001 20 13 The “Test-Fix-Test” Cycle When a failure occurs during testing: • Each failure report should enter into a failure tracking system. These are likely formalized. • Screened and assigned a Priority. • • Known Bugs List: Low-priority failures might be put here. — May be included with the software’s release notes. • Somebody/some office is assigned to investigate a failure. • That person/office tracks down the defect and fixes it. • Finally a new version of the system is created, ready to be tested again. • We will discuss in detail, as the above is quite simplistic and a number of important facts are not noted.
  • 13. © Lethbridge/Laganière 2001 20 14 The Ripple Effect – Regression Errors High probability efforts to remove defects adds new defects How so? • The maintainer tries to fix problems without fully understanding the ramifications of the changes. • The maintainer makes ordinary human errors • The system regresses into a more and more failure-prone state • Maintenance programmer given insufficient time to properly analyze, repair, and adequately repair due to pressures. • All programmers are not created equal. • Regression Testing —Based on storing / documentation of previous tests. • Heuristic: put your sharpest new hire into Maintenance!!!!
  • 14. © Lethbridge/Laganière 2001 20 15 Regression Testing • Is far too expensive to re-run every single test case every time a change is made to software. • Only a subset of the previously-successful test cases is re-run. • This process is called regression testing. —The tests that are re-run are called regression tests. • Regression test cases - carefully selected to cover as much of the system as possible that can in any way have been affected by a maintenance change or any kind of change. The “Law of Conservation of Bugs”: • The number of bugs remaining in a large system is proportional to the number of bugs already fixed
  • 15. © Lethbridge/Laganière 2001 20 16 Deciding When to Stop Testing • All of the level 1 test cases must have been successfully executed. • Pre-defined percentages of level 2 and level 3 test cases must have been executed successfully. • • The targets must have been achieved and are maintained for at least two cycles of ‘builds’. —A build involves compiling / integrating all components. —Failure rates can fluctuate from build to build as: - Different sets of regression tests are run. - New defects are introduced. • But the notion of ‘stopping’ is quite real. • Discuss: Show stoppers!!!!
  • 16. © Lethbridge/Laganière 2001 20 17 The Roles of People Involved in Testing • The first pass of unit and integration testing is called developer testing. —Preliminary testing performed by the software developers who do the design and programming —Really, there is/are so many more ‘levels’ than this…Depends on the organization and how ‘they’ undertake testing strategies… —Depending on the architecture, there well may be subsystem testing, system testing, various kinds of integrated testing, etc. (Different shops will call these by different names – perhaps. • Independent testing is performed (often) by a separate group. —They do not have vested interest in seeing as many test cases pass as possible. —They develop specific expertise in how to do good testing, and how to use testing tools. —NOT all organizations have independent test groups! (Discuss) —Done after ‘unit’ testing. Perhaps for System Testing < Deployment —Can bet there is an independent test group in medium to large organizations. • Discuss: Quality Control Branch; Editors; Independent test groups: to whom do they report? etc.
  • 17. © Lethbridge/Laganière 2001 20 18 Testing Performed by Users and Clients • Alpha testing —Performed by the user or client, but under the supervision of the software development team. —Generally software is clearly not ready for release; maybe partial. —Maybe testing a particular major feature… • Beta testing —Performed by the user or client in a normal work environment. —May be run at client shop… —Recruited from the potential user population. —An open beta release is the release of low-quality software to the general population. (not too low now…) • Acceptance testing —Performed by users and customers. —However, the customers exercise the application on their own initiative often in real live situations, loading, etc.. • AGAIN, these definitions may vary from organization to organization. (My experience: Environmental Systems Test 1 and 2 and Operational Field Test (OFT))
  • 18. © Lethbridge/Laganière 2001 20 19 Beta Testing Discuss: Selection of beta-test sites Sizes / Dependencies of shops Small, Medium, Large Local; Distributed; Platforms….. Motivations for them / us Early look at software See about interfaces Get a leg up on ‘market share’ Ensure ‘their’ requirements are met Costs! Taken out of their hide! Run applications in parallel? More (may be cut a deal to serve as beta test site)
  • 19. © Lethbridge/Laganière 2001 20 20 Acceptance Testing End-user Test the ‘toot’ out of the application Remember: to the end-user, the interface IS the application Testing is usually Black Box Functional; Can users use the application to perform their jobs: utility, usability, functionality, timing, response, … More Black Box: May include non-functional testing such as loading situations, performance, response times, transaction volumes, etc. Despite all levels of testing, there will be bugs! This is a fact of life. Then, Maintenance begins!