Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test...

26
© 2016 by Winterboer Agile Analy4cs www.WinterboerAgileAnaly4cs.com Test Automation: Agile Enablement for Data Warehousing and Business Intelligence Teams Presented to the So>ware Quality Associa4on of Denver (SQuAD) March 8, 2016 Denver, Colorado Lynn Winterboer, Agile Analy4cs Educator and Coach, @AgileLynn Brad Ewald, DW/BI Solu4on Architect, @JBEwald

Transcript of Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test...

Page 1: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com

Test Automation: Agile Enablement for Data Warehousing and Business Intelligence Teams

PresentedtotheSo>wareQualityAssocia4onofDenver(SQuAD)March8,2016Denver,ColoradoLynnWinterboer,AgileAnaly4csEducatorandCoach,@AgileLynnBradEwald,DW/BISolu4onArchitect,@JBEwald

Page 2: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com

Agenda

• Whyistestautoma4onimportantforagiledatateams?

• Whyaren’talldatateamsautoma4ngtheirteststoday?

• Whatisthepathtotestautoma4on?

• WhatdoessimpleDWtestautoma4onlooklike?

Page 3: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com

Why is test automation important to agile data teams?

Page 4: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com©KenCollier,2016,AllRightsReserved

Agile Demands Something Different Agilecallsforsmallincrementsof“poten4allyshippablecode”.ThatmeansQAisessen4alonaregular,frequentbasis.

Howcanwebesurethatsomethingwedo

here

Doesn’tbreaksomethingwedidback

here

Test Suite Test Suite Test

Suite Test Suite Test

Suite Test Suite Test

Suite

Manualtes4ngquicklybecomesinfeasible.Thetestsuitegrowslargereachitera4on.

Page 5: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com©KenCollier,2016,AllRightsReserved

Testing is Central to Agile

AgileBIdevelopmentisdrivenbytests

Acceptancecriteriaarethedefini4onof“done”

Passingtestsarethemeasureof“done”

Regressiontestsarethemeasureof“s4lldone”

Page 6: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com©KenCollier,2016,AllRightsReserved

Agile Teams Understand…

 …thattestautoma4onis  akeytechnicalenabler

 to“beingagile”

Page 7: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com

Why aren’t all data teams automating their tests

today?

Page 8: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com

DW/BI Test Automation Challenges Dataindustrydoesnotfocusontes4ngasmuchasotherdisciplines:

Educa4onTeamMembers

Skills&Discipline

Page 9: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com

DW/BI Test Automation Challenges Exis4ngtoolsarenoteasilyadaptedtothedataworld:

DevelopmentLanguages

WebandMobileFocus

Page 10: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com

DW/BI Test Automation Challenges Goodtestdatasetsarehardtocomeby:

Largevolumes(onsmallenvironments)

SharedtestenvironmentsDatasensi4vity

Smallsetsneedextraplanninganddesign

Page 11: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com

What is the path to test automation?

Page 12: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com©KenCollier,2016,AllRightsReserved

Agile Testing Perspectives

HighQualityDW/BISystem

3) Tools & Automa/on

1) A2tudes & Culture

2) Skills & Prac/ces

Tes4ngisaTeamSportLearningCultureBuildQualityIn

Tes4ngSkillsTestDesign,Organiza4on&MaintenanceRepeatableTestsFeedbackLoopsBusinessDomain

TestEnvironmentBuildAutoma4onTestDataSetsTestAutoma4onTool

Page 13: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com©KenCollier,2016,AllRightsReserved

Test Automation Pyramid

AppTests

AcceptanceTests

Unit&ComponentTests

ManualTests

Lisa Crispin & Janet Gregory, Agile Tes6ng: A Prac6cal Guide for Testers and Agile Teams

Pushasmanytestsaspossibletothislayer

Writetheseinbusinessdomainlanguage

BrifleteststhatareaffectedbyUIchanges

Subjec4veuserfeedbackisessen4al

Page 14: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com©KenCollier,2016,AllRightsReserved

Where to Start?

Wheredoesithurtthemost?

Page 15: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com©KenCollier,2016,AllRightsReserved

Where Does It Hurt the Most? Painfultestsetup?

Deployinganewbuild?

Breaksinproduc4on?

Regressiontes4ng?

Tes4ngnewfeatures?

Pronetomanualtesterror?

Page 16: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com©KenCollier,2016,AllRightsReserved

Where to Start?

Whatisthesmallest,simplestwayyoucouldrelievethatpain?

Page 17: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com

What does simple data warehousing test automation

look like?

Page 18: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com©KenCollier,2016,AllRightsReserved

Basic Approach

Sta4cTestData

ExpectedResults

TestQueries

loadtestdata

compareresults

executetests

Componentundertest

SourceSchema

TargetSchema

ActualResults

TestData

TestRunner

Setup Execute Test Report CleanUp

Page 19: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com

Demonstration

Page 20: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com

Testing Framework Func4onality•  Screensfordescribingandcrea4ngtestcases•  Proceduresthatexecutetestsandcreateexpected

results•  BIReportsandDashboardsformonitoringComponents•  SQLServerandRelatedModel•  Microso>Access(inputscreens)•  SQLServerStoredProcedures(testexecu4on)•  PowerShellscripts(batchexecu4on)•  MSPowerBIforRepor4ng

Page 21: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com

What Constitutes a Test?

ActualResult(orDataset)

ExpectedResult(orDataset)

Page 22: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com

Testing Demo

Page 23: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com

Session Intent

 1)Why:   TestAutoma9oniskeytoDW/BIagilesuccess

 2)How:   Automateasolidtes9ngprac9ce;don’tautomatechaos

 3)Show:   DW/BItestautoma9onisnotthathard

Page 24: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com

Thank You!

Lynn Winterboer Agile Analy/cs Educator & Coach

www.lynnwinterboer.com [email protected]

@agilelynn

Brad Ewald DW/BI Solu/on Architect [email protected]

@jbewald

Page 25: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com

DW/BI Test Automation Tools Tool Descrip,on

DBFithfp://dbfit.github.io/dbfit/

Opensourcedatabasetes4ngtool

iCEDQhfp://icedq.com

AunifiedplajormforETLtes4nganddatamigra4ontes4ng

Analy,xDataServiceshfp://analy4xds.com

EnterprisedatamappingandETLcodeautoma4on,includingnewautoma4cgenera4onofreusabletestcasesassociatedwithSourcetoTargetMappings

WhereScapehfps://www.wherescape.com

Datawarehouseautoma4onso>ware,includingatestharnessframeworkwithuser-configurableprofilingmethods.

Tricen,sToscahfp://www.tricen4s.com/tricen4s-tosca-testsuite/

DW-friendlytestautoma4ontool

Page 26: Test Automation: Agile Enablement for Data Warehousing and ... › 2625872 › Test automation... · Agile Enablement for Data Warehousing and Business Intelligence Teams Presented

©2016byWinterboerAgileAnaly4cs�www.WinterboerAgileAnaly4cs.com

DW/BI Test Automation References Reference Descrip,on

AgileAnaly*cs:AValue-DrivenApproachtoBusinessIntelligenceandDataWarehousingbyDr.KenCollier

Chapter7:Test-DrivenDataWarehouseDevelopment

AgileDataWarehousingfortheEnterprise:AGuideforSolu9onArchitectsandProjectLeadersByRalphHughes

PartV:AgileEDWQualityManagementPlanning

AutomatedDataWarehouseTes*ng:Beginner’sStep-by-StepGuidebyG.Suden

Java-basedtestautoma4onforsimpledatawarehousingtests

AgileTes*ng:APrac9calGuideforTestersandAgileTeamsbyLisaCrispinandJanetGregory

Greatintroduc4ontoagiletes4ngforanytypeofdevelopment

MoreAgileTes*ng:LearningJourneysfortheWholeTeambyLisaCrispinandJanetGregory

Includesseveralchaptersontestautoma4onaswellasonededicatedtoagiletes4ngforDW/BI