39
Tester Training Course Hoang V. Nguyen [email protected] startnewday85.blogspot.com Dept. of Computer Science FIT - HUA Tester Training Course FUNDAMENTALS OF TESTING

Fundamentals of Testing 2

Embed Size (px)

DESCRIPTION

Fundamentals of Testing

Citation preview

Page 1: Fundamentals of Testing 2

Tester Training Course

Hoang V. Nguyen

[email protected]

startnewday85.blogspot.com

Dept. of Computer Science – FIT - HUA

Tester Training Course

FUNDAMENTALS OF TESTING

Page 2: Fundamentals of Testing 2

Tester Training Course 2011

Page 3: Fundamentals of Testing 2

Tester Training Course 2011

Page 4: Fundamentals of Testing 2

Tester Training Course 2011

Page 5: Fundamentals of Testing 2

Tester Training Course 2011

Page 6: Fundamentals of Testing 2

Tester Training Course 2011

Page 7: Fundamentals of Testing 2

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

Page 8: Fundamentals of Testing 2

Tester Training Course 2011

Page 9: Fundamentals of Testing 2

Tester Training Course 2011

Company Level

Project Level

Test stage Level

Page 10: Fundamentals of Testing 2

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?

Page 11: Fundamentals of Testing 2
Page 12: Fundamentals of Testing 2

Tester Training Course 2011

Page 13: Fundamentals of Testing 2

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

Page 14: Fundamentals of Testing 2

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.

Page 15: Fundamentals of Testing 2

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

Page 16: Fundamentals of Testing 2

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.

Page 17: Fundamentals of Testing 2

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

Page 18: Fundamentals of Testing 2

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.

Page 19: Fundamentals of Testing 2

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

Page 20: Fundamentals of Testing 2

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

Page 21: Fundamentals of Testing 2

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

Page 22: Fundamentals of Testing 2

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

Page 23: Fundamentals of Testing 2

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.

Page 24: Fundamentals of Testing 2

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

Page 25: Fundamentals of Testing 2

Tester Training Course 2011

Page 26: Fundamentals of Testing 2

Tester Training Course 2011

Page 27: Fundamentals of Testing 2

Tester Training Course 2011

Page 28: Fundamentals of Testing 2

Tester Training Course 2011

Page 29: Fundamentals of Testing 2

Tester Training Course 2011

Page 30: Fundamentals of Testing 2

Tester Training Course 2011

Page 31: Fundamentals of Testing 2

Tester Training Course 2011

Page 32: Fundamentals of Testing 2

Tester Training Course 2011

Demonstrate conformance to requirements

Find faults

Prove that the software is correct

Build confidence

Assess the software quality

Page 33: Fundamentals of Testing 2

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

Page 34: Fundamentals of Testing 2

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

Page 35: Fundamentals of Testing 2

Tester Training Course 2011

Page 36: Fundamentals of Testing 2

Tester Training Course 2011

Page 37: Fundamentals of Testing 2

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

Page 38: Fundamentals of Testing 2

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)

Page 39: Fundamentals of Testing 2

Tester Training Course 2011

• The fundamental test process

• Psychology of testing