kaspar loog kaspar.loog@knowit - ut · [ bs 7925-1] 2010-11-22 15 that the system is correct...

42
Kaspar Loog [email protected]

Upload: others

Post on 30-Apr-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 2: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

”Testing is execution of software in order to show that it doesn’t work” - Glenford Myers, 1979

“Testing is measuring quality” - William Hetzel, 1988

Testing reduces our risks

2010-11-22 2

o

Page 3: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o
Page 4: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

”Measure” quality (”Testing is to knowing everything”)

Release the right product in time

NOT to lose money

Stay in the market

2010-11-22 4

o

Page 5: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o
Page 6: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

Enhance, and help the development of, the product

Verifiy requirements/functionality

Measure the Quality of the Product

2010-11-22 6

Page 7: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

2010-11-22 7

Many defects found Few defects found

Few defects found Few defects found

High

High Low

Low

Test Quality

SW Quality

You think you are here

..but you are here

o

Page 8: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

”Testing is expensive” ◦ Manhours for test

◦ Test environment

Compared to: ◦ What does it cost to recall a release?

◦ What does it cost to get unhappy customers?

◦ What does it cost to lose market volume because the quality is too poor?

◦ etc...

2010-11-22 8

o

Page 9: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

Economical

Communication

Ethical

2010-11-22 9

Page 10: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

Exhaustive-testning

What is Exhaustive-testning?

◦ We test all combinations of in parameters, prerequisites and environments.

How long time does it take? (Yes/No)

◦ Infinitely long time

◦ Short time

◦ Impractically long time

2010-11-22 10

o

Page 11: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

It depends of the risk of:

◦ Miss serious defects

◦ The defects we will find are expensive to correct.

◦ Need to recall a release.

◦ Releasing bad code

◦ Losing market volume

◦ Not be first on the market

◦ Execute effective testing

2010-11-22 11

How is risk normally defined?

Probability * Impact

Risk = S * K o

Page 12: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

2010-11-22 12

Prioritise the testing so that

whenever you stop testing

you have done the best

possible testing on the given

time.

o

Page 13: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

ISO/IEC 12119 ◦ Information technology - Software packages -

Quality requirements and testing

ISO/IEC 14598 ◦ Information technology - Software product

evaluation

IEEE Std 829 ◦ Standard for test documentation

SIGIST ◦ Specialist Interest Group in Software Testing

ISTQB ◦ International Software Testing Qualifications Board

2010-11-22 13

o

Page 14: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

Verification

Validation

Testing

Bug

Error, Defect, Failure

Reliability

2010-11-22 14

o

Page 15: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

”The process of evaluating a system or component to determine whether the products of the given development phase satisfy the conditions imposed at the start of the phase”

[ BS 7925-1]

2010-11-22 15

That the system is correct

according to the written

requirements.

o

Page 16: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

”Determination of the correctnesss of the products of software development with respect to the user needs and requirements”

[ BS 7925-1]

2010-11-22 16

That the system is correct

to the real requirements.

o

Page 17: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

”The process of exercising software to verify that it satisfies specifed requirements and to detect defects”

[ BS 7925-1]

2010-11-22 17

o

Page 18: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

2010-11-22 18

o

Page 19: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

2010-11-22 19

A person does a

programming error.

ERROR

The Error creates

a defect in the code.

DEFECT

The defect can create a

unwanted reaction.

FAILURE

Page 20: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

2010-11-22 20

Test closure activities

Evaluating exit criteria and reporting

Implementation and

execution

Analysis and Design

Planning and

control

Delivery

START

o

Page 21: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

Unit test: The lowest level of testing, often executed by a developer.

Functionality test: Test of the functionality of a controlled part of the system.

System test: Tests the system.

Acceptance test: ◦ User Acceptance Testing

◦ Operational testing

◦ Alpha- & Beta-test

2010-11-22 21

Page 22: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

Entry criteria ◦ The purpose of entry criteria is

to prevent a task from starting which would entail more (wasted) effort compared to the effort needed to remove the failed entry criteria

Exit criteria ◦ The purpose of exit criteria is to

prevent a task from being considered completed when there are still outstanding parts of the task which have not been finished.

Page 23: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

2010-11-22 23

Static testing

Formal / informal review Static

analysis

o

Page 24: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

2010-11-22 24

Effective -Finds defects

Well constructed -represents other TC

Maintanable -easy to maintain

Economical -easy to use

o

Page 25: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

System with 2 input fields

◦ Choose a method for black-box testing

◦ How many test cases would you write?

2010-11-22 25

o

Age

Shoe size

Page 26: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

Statical (does not execute any code)

Whitebox (glassbox)

Blackbox

Other (ex. experience based)

2010-11-22 26

Goto 10 for i=1 to 100

o

Page 27: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

Black-box methods: ◦ Equivalence partitioning (EP) ◦ Boundary value analysis (BVA) ◦ Random input ◦ etc...

White box methods ◦ Statements, decisions, test path coverage, dataflow,

branch coverage etc...

Experience based ◦ Error guessing ◦ Exploratory testing

Page 28: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

System with 2 input fields

◦ Choose a method for black-box testing

◦ How many test cases would you write?

2010-11-22 28

o

Age

Shoe size

Page 29: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

2010-11-22 29

UC1-1 UC2-1 .. ..

Requirement spec.

TEST CASE 1 UC1-1

TEST CASE2 UC2-1

Test spec..

TestCase1 UC1-1 OK

TestCase2 UC2-1 NOK

Test Protocol

UC2-1 NOK Testcase2, Step X

Incident report

o

Page 30: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

2010-11-22 30

Page 31: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

Examples of risk criterias: ◦ Test where the defect has the most impact

◦ Test where the defects are most visible

◦ Test where defects are most probable

◦ Ask the customer to prioritise

◦ Test where many changes have been done

◦ Test where many defects have been found

◦ Test where most complexity or complicated functions exist

2010-11-22 31

Page 32: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

Evil messsenger, ”your baby is ugly”

32

Page 33: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

A creative work

Learn more and deeper than most people

In the middle of the action

Wide technical skills

Deep technical skills

Hard, a challenge

May sometimes pretend that he is a customer

33

Page 34: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

ISTQB – www.istqb.org -- downloads

TMap & TMap Next

TPI (Test Process Improvement)

www.stickyminds.com

2010-11-22 34

Page 35: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

Creating a test plan

Page 36: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

Management doc not a techincal doc

What (tested items, deliverables)

Why? – give reasoning for decisions

How? – give indications for methods

Who? – how many people, what kind of people?

When? – at what stage, when to stop

Where? – which environment, technical requirements etc.

Page 37: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

Define the purpose of testing

Define test items ◦ Funcional

◦ Non-functional Performance

Response-time

Scalability

Security and authentication

Robustness, handling errors, wrong intput etc.

Tested or not tested

Give reasoning for each!

Page 38: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

Approach – white-box, black-box

Acceptance criteria

Deliverables – test spec, instructions, protocols, reports, scripts, programs

Envirionmental needs – OS, browser etc.

Testing tasks – writing spec, install, test data creation, execution, bug reports, reporting

Roles/responsibilities - creator-reviewer

Staff & training

Schedule

Risks

Page 39: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

1. Write a test plan with your group 1. Purpose & exit criteria 2. Test items 3. Environment needs 4. Tasks 5. Risks (project/product risks not testing risks!)

2. Write a review of your neighbours test plan 3. Submit when done ◦ Put your names on!!!

4. ASK QUESTIONS!

Page 40: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

An application or documentation?

Page 41: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o
Page 42: Kaspar Loog kaspar.loog@knowit - ut · [ BS 7925-1] 2010-11-22 15 That the system is correct according to the written requirements. o

The Seaga Mechanical Combo is a great way to start vending in any location! Super simple - just insert exact coins and turn the knob to vend. The attached bill

changer is a great convenience and increases sales! Offer nine selections of snacks - 3 snack/chip and 6 candy - for a total of 89

snack items. Also provide five selections of cold beverages - cans only - with a great 155 can

capacity! The bill changer holds 120 USD worth of quarters, dimes and nickels. Some

assembly is required. Shipping is included, as well as operation manuals and price decals

Specifications 3 chip/snack, 6 candy selections 5 cold beverage selections (12 oz. cans only) Capacity: 89 items 155 cold beverages For indoor use only Electicity needed for refrigerating Vend is mechanical - exact coins required