combinatorial testing lyntale - testdagen odin 2016

11
Combinatorial testing Sverre Thomassen Mats Gimming Myhre

Upload: mats-myhre

Post on 25-Jan-2017

51 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Combinatorial Testing Lyntale - Testdagen Odin 2016

Combinatorial testing

Sverre ThomassenMats Gimming Myhre

Page 2: Combinatorial Testing Lyntale - Testdagen Odin 2016

2

Sverre Thomassen / Mats Gimming Myhre

Konsulent / SeniorkonsulentSogeti Norge AS

Page 3: Combinatorial Testing Lyntale - Testdagen Odin 2016

3

Combinatorial testing

Lyntale Presentasjon Rom Kaffepause

TRUE TRUE Hugin TRUEFALSE FALSE Munin FALSE

Sleipner

Page 4: Combinatorial Testing Lyntale - Testdagen Odin 2016

4

Combinatorial testing - Fordelene

Økt effektivitet

Høyere kvalitet

Forbedret utviklings- og testprosess

Redusert kostnad

csrc.nist.gov/groups/SNS/acts/documents/kuhn-kacker-lei-hunter09.pdf

Page 5: Combinatorial Testing Lyntale - Testdagen Odin 2016

5

Combinatorial testing-PairwiseAlle kombinasjoner av

2 parametreAlle verdier til hvert

paramenter dekkes av minst en test

Meget effektivt

Relativt liten ressursbruk

Avhengig av verktøy

Page 6: Combinatorial Testing Lyntale - Testdagen Odin 2016

6

Pairwise finner 60% - 95%1

1 D.R. Kuhn, D.R. Wallace, and A. Gallo, “Software Fault Interactions and Implications for Software Testing,” IEEE Trans. Software Eng., vol. 30, no. 6, 2004, pp. 418–421.

Figur: Introducing Combinatorial Testing in a Large Organization:  Experience Report, (poster); full paper in IEEE Computer, April 2015.J. Hagar. D.R. Kuhn, R.N. Kacker, T. Wissink.

Figur 1

Page 7: Combinatorial Testing Lyntale - Testdagen Odin 2016

7

4-6 kombinasjoner avdekker alt!1

1 D.R. Kuhn, D.R. Wallace, and A. Gallo, “Software Fault Interactions and Implications for Software Testing,” IEEE Trans. Software Eng., vol. 30, no. 6, 2004, pp. 418–421.

Type Pairwise 100% dekning

Medisinske enheter 95 % 4 kombinasjonerNASA database 95 % 4 kombinasjonerNettverksikkerhet 60 % 5 kombinasjonerNettlesertest 70 % 6 kombinasjonerServer-applikasjon 75 % 6 kombinasjoner

Page 8: Combinatorial Testing Lyntale - Testdagen Odin 2016

8

Vurder pairwise (2-way) sammen med andre testteknikker!►Er pairwise godt nok?

• Vurder risiko►Avansert løsning m/mange kombinasjoner krever flere

kombinasjoner►Kombiner med flere testteknikker

• Tmap.net

1 D.R. Kuhn, D.R. Wallace, and A. Gallo, “Software Fault Interactions and Implications for Software Testing,” IEEE Trans. Software Eng., vol. 30, no. 6, 2004, pp. 418–421.

Page 9: Combinatorial Testing Lyntale - Testdagen Odin 2016

9

ACTS – 4-way eksempel

Page 10: Combinatorial Testing Lyntale - Testdagen Odin 2016

10

ACTS– 2-way (pairwise) eksempel

Page 11: Combinatorial Testing Lyntale - Testdagen Odin 2016

11

Takk for oss!► ACTS:

• http://csrc.nist.gov/groups/SNS/acts/index.html• Her finner du også lenker til diverse artikler av Rick Kuhn.

► Testmetoder:• http://tmap.net/

► Referanser:• D.R. Kuhn, D.R. Wallace, and A. Gallo, “Software Fault Interactions and

Implications for Software Testing,” IEEE Trans. Software Eng., vol. 30, no. 6, 2004, pp. 418–421.

• Figur 1: Introducing Combinatorial Testing in a Large Organization:  Experience Report, (poster); full paper in IEEE Computer, April 2015.J. Hagar. D.R. Kuhn, R.N. Kacker, T. Wissink.

► Presentasjon:• Twitter: @matsgmyhre