15 november 2010. essay 1 methodologies points on the spectrum all can adapt to changes required...
Post on 20-Jan-2016
214 views
TRANSCRIPT
![Page 1: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/1.jpg)
TESTING15 November 2010
![Page 2: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/2.jpg)
Methodologies and User Experience
![Page 3: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/3.jpg)
Essay 1
MethodologiesPoints on the spectrumAll can adapt to changesRequired vs. permitted
Releases vs. iterations Spool’s points
Vision: what are the REAL requirements?Users: prior releasesRecognizing errors: manage WITHIN scope
![Page 4: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/4.jpg)
Consider waterfall
How could you improve the user experience component?What can you do beyond what is required?
![Page 5: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/5.jpg)
Testing
![Page 6: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/6.jpg)
Why do we care? Therac-25 (1985)
6 maasive radiation overdoses Multiple space fiascos (1990s)
Ariane V exploded after 40 seconds (conversion)Mars Pathfinder computer kept turning itself off
(system timing)Patriot missile misquided (floating point accuracy)
Millenium bug (2000) Microsoft attacks (ongoing)
NIST: cost to US, $59 billion
![Page 7: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/7.jpg)
Quality and testing “Errors should be found and fixed as close
to their place of origin as possible.” Fagan
“Trying to improve quality by increasing testing is like trying to lose weight by weighing yourself more often.” McConnell
![Page 8: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/8.jpg)
Life Testing Used regularly in hardware
Addresses “normal use”
n specimens put to test Test until r failures have been observed Choose n and r to obtain the desired
statistical errors As r and n increase, statistical errors
decrease Expected time in test = mu0 (r / n)
Where mu0 = mean failure time
![Page 9: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/9.jpg)
Butler and Finelli
“The Infeasibility of Experimental Quantification of Life-Critical Software Reliability”
In order to establish that the probability of failure of software is less than 10-9 in 10 hours, testing required with one computer is greater than 1 million years
![Page 10: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/10.jpg)
Types of Testing: Purpose
Conformance testing Usability testing Performance testing Acceptance testing Reliability testing …
![Page 11: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/11.jpg)
Other classifications
ScopeUnit, component, system, regression, …
Access to codeBlack box vs. white box(Note that black box testing still assumes
knowledge of coding and development in general)
![Page 12: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/12.jpg)
How important is unit test? The Voyager bug (sent the probe into the
sun). 90: The AT&T bug that took out 1/3 of US
telephones (crash on receipt of crash notice).
The DCS bug that took out the other 1/3 a few months later.
93: The Intel Pentium chip bug (it was software, not hardware).
96: The Ariane V bug: auto-destruct (data conversion).
![Page 13: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/13.jpg)
What are you trying to test?
Most common actions? Most likely problem areas?
Risk-based testing
![Page 14: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/14.jpg)
Risks Identify criteria of concern: availability,
quality, performance, … Risk of it not being met
likelihoodconsequences
If I’m testing code for a grocery store, what is the impact of the code not being highly available?
![Page 15: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/15.jpg)
How to identify what to test
New features New technology Overworked
developers Regression Dependencies Complexity Bug history Language specific bugs Environment changes
Late changes Slipped in “pet”
features Ambiguity Changing requirements Bad publicity Liability Learning curve Criticality Popularity
![Page 16: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/16.jpg)
Four Parts of Testing
Model Select test cases Execute test cases Measure
![Page 17: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/17.jpg)
Basic Software Model
capabilities
environment
User interfaces
APIs
Operating system
Files
Input
Output
Storage
Processing
![Page 18: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/18.jpg)
Test Case Selection
EnvironmentsWhat happens if a file changes out from under you?Consider all error cases from system calls
○ (e.g., you can’t get memory)Test on different platforms: software and hardwareTest on different versions and with different languages
CapabilitiesInputsOutputsStatesProcessing
![Page 19: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/19.jpg)
From the User Interface: Inputs Error messages Default values Character sets and data types Overflow input buffers Input interactions Repeated inputs
How easy is it to find bugs in Word?
![Page 20: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/20.jpg)
Questions to Ask for Each Test
How will this test find a defect? What kind of defect? How powerful is this test against
that type of defect? Are there more powerful ones?
![Page 21: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/21.jpg)
Other Tools for Improving Quality Reviews and inspections Formal specification Program verification and validation Self-checking (paranoid) code Deploy with capabilities to repair
![Page 22: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/22.jpg)
Formal Methods and Specifications Mathematically-based techniques for
describing system properties Used in inference systems
Do not require executing the programProving something about the specification not
already statedFormal proofsMechanizableExamples: theorem provers and proof checkers
![Page 23: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/23.jpg)
Uses of Specifications Requirements analysis
rigor System design
Decomposition, interfaces Verification
Specific sections Documentation System analysis and evaluation
Reference point, uncovering bugs
![Page 24: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/24.jpg)
Examples
Abstract data typesAlgebras, theories, and programsVDM (Praxis: UK Civil aviation display system
CDIS), Z (Oxford and IBM: CICS), Larch (MIT) Concurrent and distributed systems
State or event sequences, transitionsHoare’s CSP, Transition axioms, Lamport’s
Temporal Logic Programming languages!
![Page 25: 15 November 2010. Essay 1 Methodologies Points on the spectrum All can adapt to changes Required vs. permitted Releases vs. iterations Spool’s](https://reader035.vdocuments.us/reader035/viewer/2022070415/56649d2c5503460f94a02e77/html5/thumbnails/25.jpg)
References Bugs
Therac-25: http://courses.cs.vt.edu/~cs3604/lib/Therac_25/Therac_1.htmlPatriot missile: http://www.fas.org/spp/starwars/gao/im92026.htmAriane 5: http://www.esa.int/export/esaCP/Pr_33_1996_p_EN.html
Testing
Whittaker, How to Break Software (presentation)