Automated Testing: Software Quality Assurance
Automated Testing: Software Quality Assurance
ASSURANCE
John Abbott College z Involvement makes us blind
z Expectations mask reality
Automated z
z
Interactions are unpredictable
Testing takes too much time
z Testing is repetitive and tedious
Testing
M. E. Kabay, PhD, CISSP
Director of Education, NCSA
President, JINBU Corp
QA 9 - 3 QA 9 - 4
we implement a
change Fix Defects
QA 9 - 5 QA 9 - 6
Why QA? Why automated testing?
QA 9 - 7 QA 9 - 8
QA 9 - 9 QA 9 - 10
Limitations of
Automated Testing
Capture/Playback
z Capture/Playback z Merely automate manual procedures
– record macros showing mouse z Difficult to maintain as application changes
mouvements and alphanumeric input z Cannot build regression database
– typically no editing language z Must wait until application is ready
z Structured Automated Testing z No mechanism for detecting errors
– tool creates structured, editable script z No mechanism for reporting results
– can use databases as source of input
– intelligent handling of errors
QA 9 - 11 QA 9 - 12
Good Applications Are Easily
Structured Testing
Maintained and Enhanced
z Structured development z Modular design
z System documentation z Documentation
z Metric: ease of reliably changing application z Segregation of data from procedures
z QA must learn from general programming z Re-usability
experience
QA 9 - 13 QA 9 - 14
QA 9 - 15 QA 9 - 16
QA 9 - 17 QA 9 - 18
Case Study:
AutoTester at COGNOS
HRL CANADA / Ottawa
z 5 days elapsed time z Jacques Joanisse, manager
z 6 people z Built regression database
z 3 test phases z 80% of the application features were tested
z 24,000 tests/phase z Redeployed 60-80% of test group back into
z $27,000/phase using AutoTester development
QA 9 - 19 QA 9 - 20
Case Study:
Sample ROI
New York Life / Toronto
z Business case showed that up-front cost of z Take $1,000,000 SW development budget
implementing automated QA process will be z Manual testing costs 60% = $600,000
repaid in the first year
z Manual testing: ~20% of application features
z Cost-reduction: lower staffing, shorter cycle
z Automated testing: test 90-95% of features
z Cost-avoidance: identifying more errors
z Automated testing costs 24% = $260,000
z Real savings: $300,000 including cost of
testing tool
QA 9 - 21 QA 9 - 22
QA 9 - 23 QA 9 - 24
Solution to the Software
AutoTester Plus Components
Quality Gap
z Script Station z Structured development is key to effective
– Uses screen image and screen definitions maintenance
– Fully generate all scripts for application z Tie test cases to application specs
tests z Don’t write programs to test
z Test Station application
– Menu-driven application z Test-procedures stored in database
– Uses generated scripts to guide users
– Users create, manage and execute test
cases
– Apply meaningful and comprehensive
tests
QA 9 - 25 QA 9 - 26
QA 9 - 27 QA 9 - 28
QA 9 - 29 QA 9 - 30
Demonstration Disks Homework
z Readings: Chapters 7, 11, and 13 from your
z Load the demo disk onto a workstation textbook
z Follow the instructions to proceede through z Answer all the review questions distributed
the demonstration. by the instructor
– Avoid copying the textbook blindly -- you
will not remember as much as if you think
about the answers yourself
– Use simple language; usually a few words
or sentences will be ample
z Submit your work by 09:00 tomorrow
morning.
z Because of the short time available, do not be
late in submitting your review answer
QA 9 - 31 QA 9 - 32