test sets the general method

22
1 TEST SETS the general method data models extraction functional criterias data sets data sets before tests selection test execution extraction anonymisation / data generation analysis / validation data sets after tests execution traces test coverage

Upload: britanni-hoover

Post on 01-Jan-2016

30 views

Category:

Documents


1 download

DESCRIPTION

TEST SETS the general method. data models. selection. extraction functional criterias. extraction. data sets. anonymisation / data generation. data sets before tests. test execution. data sets after tests. execution traces. analysis / validation. test coverage. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: TEST SETS the general method

1

TEST SETSthe general method

data models

extraction functional criterias

data sets

data sets before tests

selection

test execution

extraction

anonymisation / data generation

analysis / validation

data sets after tests execution traces

test coverage

Page 2: TEST SETS the general method

2

FUNCTIONAL SUBSET

derived from the model

…and the usage graph

SELECTIONfunctional division

The subset is the minimum list of necessary tables

Page 3: TEST SETS the general method

3

VOLUMETRIC SUBSET

rules definition for all the functional

subset attributes

SELECTIONvolumetric division

Page 4: TEST SETS the general method

4

RULE TYPES

1. Simple criteriax = valeur

2. borders

x <= 0007 0008 <= x <= 0011 0012 <= x

3. Addition or suppression of known records

SELECTIONvolumetric division

Page 5: TEST SETS the general method

5

extraction method

F = first record S = 1 amongst N R = random number

combination types U = union I = intersection X = exclusion

processingsequence

nbr of records to be extracted, per type

ResultsPrimary keys

69713694191178948751743735477533857145089472608114583220876524177596810 10001100091001610017

SELECTIONvolumetric division

Page 6: TEST SETS the general method

6

data models

extraction functional criterias

data sets

data sets before tests

selection

test execution

extraction

anonymisation / data generation

analysis / validation

data sets after tests execution traces

test coverage

TEST SETSthe general method

Page 7: TEST SETS the general method

7

EXTRACTION

Page 8: TEST SETS the general method

8

Extraction combination coming from different DB

ABCDEFGH…XYZT

Schema 1

ExtracteurDB 1

69713694191178…10017

Key 1

Key 2

Schema 2

Rule 1

Attribute 1 = ‘X’

Rule 2

Attribute 2 = ‘Y’

DB 2Extracteur

Links element

Data 1

Data 2

EXTRACTION

Page 9: TEST SETS the general method

9

data models

extraction functional criterias

data sets

data sets before tests

selection

test execution

extraction

anonymisation / data generation

analysis / validation

data sets after tests execution traces

test coverage

TEST SETSthe general method

Page 10: TEST SETS the general method

10

ANONYMISATION

Page 11: TEST SETS the general method

11

ListeRS.txt

To define the data anonymisation rules

The values of the attribute “RAISON SOCIAL” are read in the file "D:\Dgi\Database\ListeRS.txt"

RAISON SOCIALE 00001RAISON SOCIALE 00002RAISON SOCIALE 00003RAISON SOCIALE 00004RAISON SOCIALE 00005RAISON SOCIALE 00006RAISON SOCIALE 00007RAISON SOCIALE 00008RAISON SOCIALE 00009…

ANONYMISATION

Page 12: TEST SETS the general method

12

ANONYMISATION

Page 13: TEST SETS the general method

13

For each record “ SUPPORT JURIDIQUE” create randomly 1 to 3 record TIERS

DATA GENERATION

Generation rules

Page 14: TEST SETS the general method

14

Contents generation

DATA GENERATION

Page 15: TEST SETS the general method

15

data models

extraction functional criterias

data sets

data sets before tests

selection

test execution

extraction

anonymisation / data generation

analysis / validation

data sets after tests execution traces

test coverage

TEST SETSthe general method

Page 16: TEST SETS the general method

16

Use of the extractors to obtain the data sets to be compared

DB before tests

69713694191178948751743735477533857145089472608114583220876524177596810 10001100091001610017

Extractor

DB after tests

ANALYSIS / VALIDATION

Page 17: TEST SETS the general method

17

To define comparison criteria’s

Looking for differences

Some attributs might be different

ANALYSIS / VALIDATION

Page 18: TEST SETS the general method

18

<SUPPORTJURIDIQUE IDSJU = "53385"  <TIERS IDTIERS = "85524"  <DEFAILLANCE IDDEFAILLANCE="80307"/> > </TIERS> <TIERS IDTIERS = "85523" > </TIERS></SUPPORTJURIDIQUE>

<SUPPORTJURIDIQUE IDSJU = "53385"  <TIERS IDTIERS = "85524"  <DEFAILLANCE IDDEFAILLANCE="80307"/> > </TIERS> </SUPPORTJURIDIQUE>

record TIERS 85523 was cancelled

DB 1 extraction DB 2 extraction

ANALYSIS / VALIDATION

Page 19: TEST SETS the general method

19

VALUE DIFFERENCES

Some value difference between attributes were ignored ex: MODIFICATIONDATE

The path to the record is detailed

The critical differences are detected

ANALYSIS / VALIDATION

Page 20: TEST SETS the general method

20

data models

extraction functional criterias

data sets

data sets before tests

selection

test execution

extraction

anonymisation / data generation

analysis / validation

data sets after tests execution traces

test coverage

TEST SETSthe general method

Page 21: TEST SETS the general method

21

PROGRAMS ARE AUTOMATICALLY INSTRUMENTED

COVERAGE

Page 22: TEST SETS the general method

22

RESULTS FROM THE ANALYSIS OF A PROGRAM TRACE FILE

INCLUDING 5.424 ARCS

Arc numberNumber of processes

Procedure name

6 032 15 499 704 SR1CH1S11

6 033 15 499 704 SR1CH1S11 end

… …  …

6 018 3 219 761 SR8

6 017 3 219 761 SR8 end

… … …

6 016 278 110 SR5

6 017 278 110 SR5 end

… … …

6 186 0 OPTI-EMPI

6 187 0 OPTI-EMPI end

The most used arcs

The less used arcs

COVERAGE