Model based testing @ICS
Model based testing @ICS with TOSCA Michelle Kuijt Senior Test Tool Engineer, Test Automation Vianen, 24 May 2016
Model based testing Van documentatie naar model Van model naar Van naar testuitvoering Model Based Testing & Tosca @ICS 3
@ICS Model Based Testing & Tosca @ICS 4
Start situatie Systeem gebruik TOSCA Systeem kennis Test uitvoering handmatig Documentatie Fysieke Model Based Testing & Tosca @ICS 5
Start situatie Voorbeeld Rente script Systeem gebruik TOSCA 0 Systeem kennis Test uitvoering handmatig 70 3 weken Documentatie Fysieke 3 regressie scripts 101 Model Based Testing & Tosca @ICS 6
Waarom modellen? Communicatie Kennis Test basis Model Based Testing & Tosca @ICS 7
Huidige situatie Systeem gebruik [stakeholders] TOSCA Systeem kennis [functioneel] Modellen Logische Test uitvoering handmatig Documentatie [technisch] Fysieke Model Based Testing & Tosca @ICS 8
Huidige situatie Voorbeeld Rente script Systeem kennis [functioneel] Input Systeem gebruik [stakeholders] Input Modellen Logische 18 modellen 75 testsituaties 260 TOSCA 23 8 uur Test uitvoering handmatig 0 test gevallen 10 min (check) Documentatie [technisch] Input Fysieke Resultaat formules per model Model Based Testing & Tosca @ICS 9
Tool gebruik Systeem gebruik [stakeholders] TOSCA TOSCA Jira Systeem kennis [functioneel] Confluence Modellen CoverHD Logische Test uitvoering handmatig Jira Documentatie [technisch] Fysieke Model Based Testing & Tosca @ICS 10
Model based werken Stap voor stap Systeem gebruik [stakeholders] TOSCA Systeem kennis [functioneel] Modellen Logische 2 Test uitvoering handmatig Documentatie [technisch] 1 Fysieke 3 Model Based Testing & Tosca @ICS 11
Stap 1 Van documentatie naar model Systeem gebruik [stakeholders] TOSCA Systeem kennis [functioneel] Modellen Logische Test uitvoering handmatig Documentatie [technisch] 1 Fysieke Model Based Testing & Tosca @ICS 12
Stap 1 Van documentatie naar model Model COVERAGE based Model EXPERIENCE based TMap HD Test ontwerp technieken Handmatig of Cover HD Test situaties Model Based Testing & Tosca @ICS 13
Stap 1 Van documentatie naar model Voorbeeld model COVERAGE BASED Test specification 3. Interest Capitalization If accrued interest > capitalization threshold Then if previous balance is paid in full Then accrued interest is waived Else accrued interest is charged to the account Else accrued interest is handled according to waive interst last period -settings Model Based Testing & Tosca @ICS 14
Stap 1 Van documentatie naar model Voorbeeld model COVERAGE BASED Test specification 3. Interest Capitalization Accr Int > Capt. thresh? Yes Prev. balance Paid in full? Yes Waive interest No No Capt. interest Waive according to waive interest - settings Model Based Testing & Tosca @ICS 15
Stap 1 Van documentatie naar model Voorbeeld test situaties Test specification 3. Interest Capitalization # Description Outcome 1 Accrued interest is over threshold Balance not paid in full Charge interest 2 Accrued interest is over threshold Balance is paid in full Waive interest 3 Accrued interest is below threshold n/a waive interest last period -settings Model Based Testing & Tosca @ICS 16
Stap 1 Van documentatie naar model Voorbeeld model EXPERIENCE BASED Variable Values Interest model 1, 2, 3, 4, 5, 6, 7 Accrued interest Capitalization threshold Account status Balance paid in full. Debit (IBB), Debit (IF), Debit (NW), Credit Debit, Credit Standard, Over limit, Arrears, Arrears & over limit Previous balance / no previous balance (Near) payments / no (near) payments Remaining balance < Minimum balance to bill etc.. Model Based Testing & Tosca @ICS 17
Stap 1 Van documentatie naar model Model COVERAGE based Model EXPERIENCE based TMap HD Test ontwerp technieken Handmatig of Cover HD Test situaties Model Based Testing & Tosca @ICS 18
Voordeel voor het team [Stap 1] Communicatie Kennis Test basis Inzicht Kennisoverdracht Model Based Testing & Tosca @ICS 19
Stap 2 Van model naar Systeem gebruik [stakeholders] TOSCA Systeem kennis [functioneel] Modellen Logische 2 Test uitvoering handmatig Documentatie [technisch] Fysieke Model Based Testing & Tosca @ICS 20
Stap 2 Van model naar Model Based Testing & Tosca @ICS 21
Stap 2 Van model naar INT3.B1.1-2.1 INT3 Test specificatie B1.1 Model -2 Test situatie.1 Logisch testgeval Model Based Testing & Tosca @ICS 22
Voordeel voor het team [Stap 2] Communicatie Kennis Test basis Logisch niveau Voorkom meerwerk Gaten in specs Bekende test dekking Traceerbare tests Model Based Testing & Tosca @ICS 23
Stap 3 Van naar testuitvoering Systeem gebruik [stakeholders] Test uitvoering TOSCA automatisch Systeem kennis [functioneel] Modellen Logische Test uitvoering handmatig Documentatie [technisch] Fysieke 3 Model Based Testing & Tosca @ICS 24
Stap 3 Van naar testuitvoering Model Based Testing & Tosca @ICS 25
Stap 3 Van naar testuitvoering Model Based Testing & Tosca @ICS 26
Stap 3 Van naar testuitvoering Model based Testing & Tosca @ICS 27
Stap 3 Van naar testuitvoering Model based Testing & Tosca @ICS 28
Voordeel voor het team [Stap 3] Communicatie Kennis Test basis Vertrouwen in TOSCA Rolverdeling Onderhoudbaar Schaalbaar Traceerbaar Model based Testing & Tosca @ICS 29
Tool gebruik Systeem gebruik [stakeholders] TOSCA TOSCA Jira Systeem kennis [functioneel] Confluence Modellen CoverHD Logische Test uitvoering handmatig Jira Documentatie [technisch] Fysieke Model Based Testing & Tosca @ICS 30
Successen - Voorbeeld Rente script Communicatie Kennis Test basis Regressie & Progressie Kortere overleggen Inwerken: 2 mnd >2 wk Waarom -kennis Test wat nodig Testen: 3 wk > 8 uur Model based Testing & Tosca @ICS 31
Bedankt!