Week 8
Week 8
1 Regression testing
2 Automated testing
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 1 / 19
Regression testing
Regression Testing
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 2 / 19
Regression testing
Regression testing
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 3 / 19
Regression testing
Regression testing
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 4 / 19
Regression testing
Regression testing
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 5 / 19
Regression testing
Regression testing
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 6 / 19
Regression testing
Regression testing
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 7 / 19
Regression testing
Regression testing
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 8 / 19
Regression testing
Regression testing
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 9 / 19
Automated testing
Automated testing
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 10 / 19
Automated testing
Automated testing
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 11 / 19
Automated testing
When to automate?
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 12 / 19
Automated testing
Method
An automatic test does not last forever. At some point the product
will change in a way that that breaks the test.The test has to be
repaired or discarded.
If the test hasn’t repaid the automation effort by that point, you
would have been better off leaving it is a manual test.
Must estimate how many code changes the automatic test will
survive.
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 13 / 19
Automated testing
How to automate?
Automated test script is a program that does the same operations like the
manual tester does.
Languages (C++, Basic, Java script, Perl, Ruby, etc)
The script can be generated by using a keyboard capture/playback
tool
Feature that enables the user to record keystrokes and mouse
movements while interacting with an application.
Keystrokes are recorded in a script and played back during test
execution
Drawback?
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 14 / 19
Automated testing
Problem
The code under test is divided in 2: feature code and support code.
The tester tests the feature code, but support code also can change.
The scripts generated by record/play tools contain hard coded values
which must change if anything changes in the application
If the tester made a error during recording the test has to be
re-recorded
Solution : Data driven automated testing
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 15 / 19
Automated testing
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 16 / 19
Automated testing
Watir
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 17 / 19
Automated testing
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 18 / 19
Automated testing
Wondimagegn D. (AAIT ) Quality Assurance and Software Testing March 22, 2020 19 / 19