Upload
hoang-nguyen
View
2.776
Download
3
Tags:
Embed Size (px)
DESCRIPTION
Fundamentals of Testing
Citation preview
Tester Training Course
Hoang V. Nguyen
startnewday85.blogspot.com
Dept. of Computer Science – FIT - HUA
Tester Training Course
FUNDAMENTALS OF TESTING
Tester Training Course 2011
Tester Training Course 2011
Tester Training Course 2011
Tester Training Course 2011
Tester Training Course 2011
Tester Training Course 2011
Plan
nin
g
Monitoring and control
An
alysis
De
sign
Imp
leme
ntatio
n
Execution
Evaluating exit criteria
Reporting test result
Clo
sure
Tester Training Course 2011
Tester Training Course 2011
Company Level
Project Level
Test stage Level
Tester Training Course 2011
Run a test, it fails, fault reported
New version of software with fault “fixed”
Re-run the same test (i.e. re-test)• must be exactly repeatable
• same environment, versions (except for the softwarewhich has been intentionally changed!)
• same inputs and preconditions
If test now passes, fault has been fixedcorrectly - or has it?
Tester Training Course 2011
Tester Training Course 2011
To eliminate unexpected-side effects, butcan still exist
Are performed:• after software changed, including faults fixed
• when environment changes, even if applicationfunctionality not change
• for emergency fixes(possibly a subset)
Regression test suites• evolve over time
• are run often
• may become rather large
Tester Training Course 2011
Impl. & exe., planning & control, analysis & design
Analysis & design, eval. exit criteria & reporting, test closure activities;
Eval. exit criteria & reporting, impl. And exe., analysis and design.
The five parts of the fundamental test process have a broad chronological order. Which of the options gives three different parts in the correct order?
Question
Eval. exit criteria & reporting, test closure activities, analysis and design.
Tester Training Course 2011
Developing the tests;
Comparing actual and expected results;
Writing a test summary;
Analysing lessons learnt for future releases.
Which option is part of the ’implementation andexecution’ area of the fundamental test process?
Question
Tester Training Course 2011
Test planning;
Test closure;
Evaluating exit criteria and reporting;
As part of which test process do you determine the exit criteria?
Question
Test control.
Tester Training Course 2011
Measuring and anslyzing results;
Reporting discrepancies as incidents;
Identifying test conditions or test requirements;
Assessing if more tests are needed.
Which of the following is a Major task of testimplementation and execution?
Question
Tester Training Course 2011
Implementatin and execution;
Planning and control;
Analysis and design;
Which activity in the fundamental test process creates test suites for efficent test execution?
Question
Test closure.
To define when a test level is complete;
To determine when a test has completed;
To identify when a software system should be retired;
To determine whether a test has passed.
What is the purpose of exit criteria?
Question
Tester Training Course 2011
i, ii & iv are true; iii & v are false
ii & iii are true; iv & v are false
iv & v are true; ii & iii are false
Which activities form part of test planningi. Developing test casesii. Defining the overall approach to testingiii. Assigning resourcesiv. Building the test environmentv. Writing test conditions
Question
i, ii & iii are true; iv & v are false
Tester Training Course 2011
Regression testing;
Maintenance testing;
Confirmation testing;
None of the above.
When a defect is detected and fixed then thesoftware should be retested to confirm that theoriginal defect has been successfully removed.This called?
Question
Tester Training Course 2011
ii & iv
ii & iii
i, iii & iv
Which of the following are chracteristic of regression testing
i. Regression testing is run Oly oneii. Regression testing is used after fixes have been
madeiii. Regression testing is often automatediv. Regression testing need not be maintained
Question
iii
Tester Training Course 2011
Confirmation testing is testing fixes to a set of defects and regression testing is testing to establish whether any defects have been introduced as a result of changes;
Which of the following is true?
Question
Confirmation testing is testing to establish whether any defects have been introduced as a result of changes and regression testing s testing fixes to a set of defects;
Confirmation testing and regression testing are both testing to establish whether any defects have been introduced as a result of changes;
Confirmation testing and regression testing are both testing fixes to a set of defects.
Tester Training Course 2011
Re-testing is running a test again; regression testing looks for unexpected side effects
Re-testing looks for unexpected side effects; regression testing is repeating those tests
Re-testing is done after faults are fixed; regression testing is done earlier
The different between re-testing and regression testing is
Question
Re-testing uses different environments; regression testing uses the same environment
Re-testing is done by developer; regression testing is done by independent testers
Tester Training Course 2011
Tester Training Course 2011
Tester Training Course 2011
Tester Training Course 2011
Tester Training Course 2011
Tester Training Course 2011
Tester Training Course 2011
Tester Training Course 2011
Demonstrate conformance to requirements
Find faults
Prove that the software is correct
Build confidence
Assess the software quality
Tester Training Course 2011
Goal: show that the system works correctly
Show that the system:
• does what it should
• doesn’t do what it shouldn’t
Success: the system work correctly
Tester Training Course 2011
Goal: show that the system fails
Show that the system:
• does what it shouldn’t
• doesn’t do what it should
Success: the system fails
Tester Training Course 2011
Tester Training Course 2011
Tester Training Course 2011
Test your own work
Is inefficient(30%-50% faults)
Because:
• same assumptions and thought processes
• see what you meant or want to see, not what is there
• actively want not find faults
Tester Training Course 2011
Independence
Levels of dependence
• None: tests designed by the person who wrote the software
• Tests designed by a different person
• Tests designed by someone from a different department or team (e.g. test team)
• Tests designed by someone from a different organisation (e.g. Agency)
Tester Training Course 2011
• The fundamental test process
• Psychology of testing