welcome! test early, test often - rural software testing · sdet qa stays current in technologies...

28
IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL Test Early, Test Often Shift Left, Automation, and Other Smart Strategies for Getting Ahead in QA Welcome!

Upload: others

Post on 14-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

Test Early, Test OftenShift Left, Automation, and Other Smart Strategies for Getting Ahead in QA

Welcome!

Page 2: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

• Jeff Van Fleet – President and CEO | Lighthouse Technologies

• 30+ years software/QA experience

• Expert in QA processes and systems

• Tami Lamb – General Manager, Quality Assurance | Kroger

• 20+ years business/QA experience

• Led countless teams through Lean Agile transformation

A little bit about us…

2

Page 3: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

• The challenges we all face in

testing and QA

• Shift Left/Shift Right

• Quality At Speed – A Kroger Case

Study

What we will discuss today

3

Page 4: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

A quick note before

we get started…

4

Page 5: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

Common Challenges in QA

5

Page 6: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

• Widespread adoption of Agile principles has

placed a premium on speed and agility

• In response, QA teams are having a hard time

keeping up

• 2-week sprints make manual regression testing

impossible

• Moving to automation has its own challenges

• Poorly-defined user stories can waste entire sprints

• How do you balance time-to-market, agility,

quality, and cost?

Challenges with Agile

6

Page 7: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

• Emphasis on time-to-market requires

careful consideration and strategy

• When dev. teams drive forward, QA

can suffer

• When testers are left out of sprint

planning, it can cause roadblocks,

bottlenecks

• Costly rework from late-stage defects

• Technical debt

Challenges with time-to-market

7

Page 8: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

We must evolve to

stop these issues from

derailing our projects

8

Page 9: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

Are you experiencing

similar issues?

9

Page 10: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

Shift Left

10

Page 11: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

• Simply put, it’s “testing” earlier

• Getting QA/test team involved

early in dev. process is fundamental

• Find defects earlier

• Identify potential bottlenecks

• Promotes TDD/BDD

What is Shift Left?

11

Page 12: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

• QA/Testing team is involved in

project planning and backlog

grooming

• “How will we test this?”

• What is considered “done | done”?

• User story inspections

• Code analysis

• Consistent/better quality code

• Memory leaks

• Security risks

• Cyclomatic Complexity

What Shift Left looks like

12

Page 13: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

Defects resolved early

13

Page 14: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

What about Shift Right?

• CI/CD

• Testing continues into production

• Controlled experiments

• Insights help future tests

• Fail fast

• Learn quickly and adjust

14

Page 15: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

Defects delivered to UAT by team maturity

15

Data adapted from Capers Jones,

for 1,000 NCSLOCs in C#

Estimating Software Costs, 2nd Edition.

0

1

2

3

4

5

6

7

8

1 2 3 4 5Ad-hoc Managed Defined Metrics Optimized

Page 16: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

0

1

2

3

4

5

6

7

8

1 2 3 4 5

16

Ad-hoc Managed Defined Metrics Optimized

Time to 99% defect free:

Ad-hoc: 36 months

Defined: 6 months

Page 17: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

17© Copyright 2017 The Kroger Co., Confidential© Copyright 2017 The Kroger Co., Confidential

Quality At Speed

A case study by Kroger

Page 18: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

18© Copyright 2017 The Kroger Co., Confidential

The Context

Page 19: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

19© Copyright 2017 The Kroger Co., Confidential

Digital(90%)

Retail Merch

1/2

RetailMerch

2/2

RetailStore

Systems

RetailREE

(30%)

Retail H&W(30%)

Level 1: All testing is manual but prioritized.- All Testing is Manual, Test suite prioritized-Some automated unit test

Test

Au

tom

atio

n

Level 2 – Partial Regression Test Automation + Unit Test + CI.- Smoke test run as part of build deployment process, regression partially automated- Unit test part of definition of done

Level 3 – Full Regression Test Auto + Consistent Unit Test + CI.- Tests run daily- Regression fully automated- Unit Test covers critical part of app- More Unit test than GUI tests.

Level 4 – Automation Optimization- Automation Suite is maintained in accordance with prod usage- Automation run time is optimized- Optimal automation coverage (More unit than functional automation)

Level 0- No functional automation exist- Some manual test cases exist- Ad hoc unit test

Corp Corp Sys Non HR

CorpFMJ

Level 5 – Zero Touch Testing + CICD- Security tests automated- End to end test automation- Test Environment provisioning- Test Data provisioning- TDD

2

3

2

1

3

2

1

11

5

1

1

2

4

Page 20: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

20© Copyright 2017 The Kroger Co., Confidential

Learning and Recommendation• Not every team has the same destination• There are cost implications of speed• Drive unit test consistency

– Part of definition of done– Needs to be measured– Train team on its value

• Needs for measuring code health– Validate that Sonar is the adequate tool to do so and provide training to

the teams

• Learnings to be applied to all new solutions

Page 21: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

21© Copyright 2017 The Kroger Co., Confidential

Page 22: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

22© Copyright 2017 The Kroger Co., Confidential

PM: My project just entered integration test and turned red

Developer: I met my code complete

date…did not have much time for unit

test…

BO: Should I accept this premature release or wait

another quarter?Tester: I did my

best to cover the high risk areas

QA: Lots of defects, Lots of

charts

WHO CARES ABOUT

QUALITY???

Leader: Can we overlap integration, end to end

and UAT??GO FASTER!

Page 23: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

23© Copyright 2017 The Kroger Co., Confidential

SCRUM MASTERI do not mark a story

complete until it has been Unit Tested and passed

acceptance criteria.

DEVELOPER / TESTER PAIR: We collaborated on test automation coverage. In

reviewing Unit test coverage, we happen to have avoided a defect

I own Quality

OPS: I just got here. What’s

going on?

LEADER: I am your servant leader,

but … GO FASTER!

I own Quality I want to own Quality too!

I own Quality

I own Quality

I own Quality

Page 24: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

24© Copyright 2017 The Kroger Co., Confidential

Skills Evolution

SDET

Test Automation Engineer UI / SOA

Developer

Page 25: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

25© Copyright 2017 The Kroger Co., Confidential

SDET

QA

Stays current in technologies

Makes Automation Engineers life easier:- Develops framework- Develop scripting standards- Creates test tools / utilities- Research new tools- Conduct POC’s and implement

new tools

Dev Skills + QA Skills + Test Automation skills = SDET

Developer skills with a passion for QA

Identifies test automation opportunities to improve efficiency and effectiveness of a feature team:- Checks the code written by

developers for testability, readability and scalability

- Writes unit / integration / UI automated test at all layers

- Develops automated mechanisms to track code coverage

- Develops mocks / stubs to facilitate unit / integration testing by developers

- Executes tests in an automated fashion through continuous build integration mechanism

Page 26: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

26© Copyright 2017 The Kroger Co., Confidential

Roles Evolution

• QA Lead -> QA Coach

• Manual Tester -> Test Automation Eng.

• Test Automation Eng.-> Test Automation SME

• Test Automation Eng. -> SDET

Page 27: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

• Testing must evolve along with development

• The faster we get, we need to think differently

• Manual testers must evolve

• Shift Left/Right, Automation, CI/CD, etc.

• Smart QA strategies keep projects on course

• Increase Time-To-Market, Agility, Quality, Value

• Clear goals, exit criteria, and lessons learned

• Decrease risk

• More consistency between releases

Key takeaways

27

Page 28: Welcome! Test Early, Test Often - Rural Software Testing · SDET QA Stays current in technologies Makes Automation Engineers life easier: - Develops framework - Develop scripting

IF YOU SEE THIS, GO TO THE “INSERT” TAB, CLICK “HEADER & FOOTER”, CHECK “FOOTER” AND “SLIDE NUMBER”, AND APPLY TO ALL

Test Early, Test OftenShift Left, Automation, and Other Smart Strategies for Getting Ahead in QA

Thanks for attending!