Top Banner
Test automation in an agile context Guy Van Put
15

Test automation in an agile context - Sogeti Belgium€¦ · Traditional automation •Quick & dirty •Standard functionalities •High maintenance (hard coded, redundancy,…) Record

Jul 24, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Test automation in an agile context - Sogeti Belgium€¦ · Traditional automation •Quick & dirty •Standard functionalities •High maintenance (hard coded, redundancy,…) Record

Test automation in an agile context

Guy Van Put

Page 2: Test automation in an agile context - Sogeti Belgium€¦ · Traditional automation •Quick & dirty •Standard functionalities •High maintenance (hard coded, redundancy,…) Record

Test strategy determination

► Which levels of testing to automate?

► Which parts of the application NEEDS TO / CAN / COULD be automated?

► Which tool and frameworks to use?

► How much test coverage is needed?

• Device, OS, browser, screen resolution, language, network

► Strategy for maintaining the scripts?

► How to structure and organize the test code?

► How to deal with the test data?

► What is the starting information for test automation?

► How are the execution results reported and analyzed?

► How is the automation process linked to the manual testing process?

► Who will do the automation?

2

Manual testing or automated testing?

Page 3: Test automation in an agile context - Sogeti Belgium€¦ · Traditional automation •Quick & dirty •Standard functionalities •High maintenance (hard coded, redundancy,…) Record

Configuration madness

Page 4: Test automation in an agile context - Sogeti Belgium€¦ · Traditional automation •Quick & dirty •Standard functionalities •High maintenance (hard coded, redundancy,…) Record

What to automate?

4

Page 5: Test automation in an agile context - Sogeti Belgium€¦ · Traditional automation •Quick & dirty •Standard functionalities •High maintenance (hard coded, redundancy,…) Record

Where to automate?

5

Non linear Traditional

Triangle of Mike Cohn

Page 6: Test automation in an agile context - Sogeti Belgium€¦ · Traditional automation •Quick & dirty •Standard functionalities •High maintenance (hard coded, redundancy,…) Record

Traditional automation

• Quick & dirty

• Standard functionalities

• High maintenance (hard coded, redundancy,…)Record & playback

• Separate data from script

• Minimal coding skills needed

• Test data maintainable by non-technical profileData driven

• More control on script itself

• Lower maintenance

• Maximum reuse, avoiding redundancyFunction driven

• Call to functions

• Building test cases by non-technical profiles

• High modularityKeyword driven

6

Page 7: Test automation in an agile context - Sogeti Belgium€¦ · Traditional automation •Quick & dirty •Standard functionalities •High maintenance (hard coded, redundancy,…) Record

Test automation in agile context

7

The need for SPEED

The need for REPEATABILITY

The need for an AUTOMATION APPROACH

Page 8: Test automation in an agile context - Sogeti Belgium€¦ · Traditional automation •Quick & dirty •Standard functionalities •High maintenance (hard coded, redundancy,…) Record

Marick Test Matrix

8

TDD

BDD

Page 9: Test automation in an agile context - Sogeti Belgium€¦ · Traditional automation •Quick & dirty •Standard functionalities •High maintenance (hard coded, redundancy,…) Record

Test Driven Development (TDD)

► Ensure developed code is without defects

► Technical, unit level

► Developer

9

Code of the testSource code

Page 10: Test automation in an agile context - Sogeti Belgium€¦ · Traditional automation •Quick & dirty •Standard functionalities •High maintenance (hard coded, redundancy,…) Record

Behavior Driven Development (BDD)Update account info

As a user

I want to fill in my profile details

In order to use more features of the

app

10

Scenario: update account profile

Given I am a authenticated user

When I update my provide details

Then I should see my profile details

are updated

• Behavior driven• Bridging the gap between business (problem

domain) and IT (solution domain)• Verifiable business value

Page 11: Test automation in an agile context - Sogeti Belgium€¦ · Traditional automation •Quick & dirty •Standard functionalities •High maintenance (hard coded, redundancy,…) Record

Example of logical build pipeline

11

DEV TEST ACC PROD

Unittest

System

Systemintegration

QG1 QG2 QG3 QG4

AcceptanceTest

Unitintegration

ManualAutomated

Functional RegressionUsabilityCompatibilityNon-functional

FRUCN

F

F

R

RU

CC

N

N

F R N F R N

Page 12: Test automation in an agile context - Sogeti Belgium€¦ · Traditional automation •Quick & dirty •Standard functionalities •High maintenance (hard coded, redundancy,…) Record

Maturity of development proces

Au

tom

ati

on

level

Maturity

Page 13: Test automation in an agile context - Sogeti Belgium€¦ · Traditional automation •Quick & dirty •Standard functionalities •High maintenance (hard coded, redundancy,…) Record

Best practices

• If it hurts, do it often

• 80% - 20% capacity aim

• Target velocity

• Be clear on the value of a metric

• Pushing down the triangle of Mike Cohn

• “A fool with a tool is still a fool”

• Be transparent

• Respect the methodology

• Automating manual tasks

• Time to market

• Continuous delivery is a mindset

13

Page 14: Test automation in an agile context - Sogeti Belgium€¦ · Traditional automation •Quick & dirty •Standard functionalities •High maintenance (hard coded, redundancy,…) Record

Q&A

14

Page 15: Test automation in an agile context - Sogeti Belgium€¦ · Traditional automation •Quick & dirty •Standard functionalities •High maintenance (hard coded, redundancy,…) Record

Thank you

Guy Van Put

[email protected]