model based test automation - capgemini sogeti … · model-based test automation reporting &...

26
© 2014 Tricentis GmbH. All rights reserved. 1 Accelerate. Innovate. Automate. 1 © 2014 Tricentis GmbH. All rights reserved. Model Based Test Automation Avoiding the maintenance trap Hans Planken Vice President Alliances EMEA January 2015

Upload: trankhue

Post on 12-Apr-2018

231 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 1

Accelerate. Innovate. Automate.

1 © 2014 Tricentis GmbH. All rights reserved.

Model Based Test Automation Avoiding the maintenance trap Hans Planken

Vice President Alliances EMEA

January 2015

Page 2: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 2

Automation level below 25% even

after 30 years of software testing.

Why?

Do we need a different approach?

Agenda

Page 3: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 3

Evolution of Complexity - Testing Challenges

COM_B18

Mainframe Client/Server Web Mobile

Complexity

Page 4: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 4

What’s the problem? A typical test project.

Source: TRICENTIS® customer projects

Total Cost and Effort

100%

0%

50%

Test Case

Specification

Manual Testing

(Execution)

Automated Testing

(Setup, Maintenance

and Execution)

If you don’t know how much

test coverage you have,

you’ll end up with far too

many test cases!

Not effective enough

Automation levels are low

because of it’s difficult to

automate!

Not efficient enough

Risk Coverage

?

Page 5: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 5

Tricentis Tosca Testsuite

Virtualize – Orchestrated Service Virtualization

Technology Integration

Optimize

Risk Coverage

Optimizer

Manage

Test Data

Provisioning

Automate

Model-Based Test

Automation

Target Applications

Reporting & Dashboard

Page 6: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 6

Virtualize – Service Virtualization & Orchestration

Manage

Test Data

Provisioning

Automate

Model-Based Test

Automation

Reporting & Dashboard

Tricentis Tosca Testsuite

Aligns business priorities to test planning & execution

Generates the fewest test cases to maximize risk coverage

Shifts focus from Test Coverage to Risk Coverage

Optimize

Risk Coverage

Optimizer

Page 7: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 7

Source: Customer Projects TRICENTIS®

Total effort/costs

100%

0%

50%

Test Case

Specification

25%

Manual

Test

Execution

75%

Automation

Finding

and

Preparing

Test Data

Execution

of

Test Cases

50 - 75% of manual

execution costs! insufficient control of

test data

Synthetic Test Data Engine

Page 8: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 8

Virtualize – Service Virtualization & Orchestration

Automate

Model-Based Test

Automation

Reporting & Dashboard

Optimize

Risk Coverage

Optimizer

Manage

Test Data

Provisioning

Tricentis Tosca Testsuite

Provides tailored test data basis for test execution

Reduces effort in manual test execution by 40 – 50 %

Stateful test data management is key for high automation rates

Page 9: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 9

Virtualize – Service Virtualization & Orchestration

Reporting & Dashboard

Manage

Test Data

Provisioning

Optimize

Risk Coverage

Optimizer

Automate

Model-Based Test

Automation

Tricentis Tosca Testsuite

Enables extreme automation (rates > 90%)

Covers UI and nonUI test automation

Enables seamless transition from manual to automated testing

Page 10: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 10

Tosca Testsuite – Robust, Cost-Effective, Scalable

Risk Management

Engine: Higher Coverage,

Fewer Tests.

Model-Based Test

Automation:

Robust

Cost-Effective

Scalable

What makes it

different?

Page 11: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 11

Model-Based Automation

Model-Based Test Automation

Robust, Cost-Effective, Scalable

Page 12: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 12

What keeps us from higher

automation levels…

• Prohibitive Maintenance

of Test Scripts

• Missing or inadequate

Object Recognition

• GUI and nonGUI tests require

different teams/skills…

• Autom. Tests require dynamic

and thorough Test Data

Efficiency: Why

are automation

levels so low?

What is the Problem?

MBT_B0

1

Page 13: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 13

The Evolution of Test Automation

Record/

Replay

FRAGILE

1st Generation

Robust

Cost

Effective

Scalable

Page 14: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 14

The Maintenance Problem with Capture/Replay

Example:

“…select invoice with the car registration number VIC-3456”

CheckBox Click,

“/usr/cntlCONTAINER/

shellcont/

shell[2]/chbx[1,3]”

Does your business team understand this command?

Is this command stable?

Conclusion: Capture/Replay does not work!

Checkbox Name Reg Number Invoice

John Smith NSW-1234 90035560

Jim Courier NSW-2345 90035561

John Cook VIC-3456 90035562

Tim Rebhorn VIC-4567 90035563

Dale Howard WA-5678 90035564

Frank Rose WA-6789 90035565

Page 15: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 15

The Evolution of Test Automation

Record/

Replay

FRAGILE

Test

Automation

Frameworks

EXPENSIVE

Model-Based

1st Generation 2nd Generation Next Generation

Script-Based Model-Based

Robust

Cost

Effective

Scalable

Page 16: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 16

• Cognitive Test Cases: business language - not scripts!

• Requires only business SME skills

• Highly stable from a technical as well as from a business point of view

• Independent from technologies, HTML, Java, .NET, SAP, Manual execution, …

Page 17: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 17

CheckBox Click,

“/usr/cntlCONTAINER/she

llcont/

shell[2]/chbx[1,3]”

Example:

Do you understand the business instruction?

Do you remember it?

“…select invoice with the car registration number VIC-3456”

Page 18: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 18

Model Based Test Automation

How does it work?

Page 19: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 19

Model-Based Automation

UI Technology

System Under Test

Model(s)

Test Cases

decoupling

Action Action

non

UI

Business

Page 20: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 20

W/S

OneView: UI/nonUI; Robustness over Change

Model

Systems HTML JAVA .NET HOST SWIFT XML SQL

ST SIT (E2E) UAT CT

SCAN &

SYNCHRONIZE

Test Cases in plain English

CHANGE

SYNCHRONIZE

Page 21: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 21

Consistent User Experience & On-Demand Staffing

TOSCA User Interface

Base Engine decouples

DB

We

b S

erv

ice

s

SW

IFT

Die

se

l

Gas

50

0 H

P

Pe

tro

l

GW

T

HT

ML

Test Logic

Technology

Page 22: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 22

Broad coverage or technologies & applications

TOSCA allows for easy tests across any technology and/or platform!

Ad

ap

ter

Ad

ap

ter

Ad

ap

ter

Ad

ap

ter

… > 30 technology specific adapters …

Model Based Test Automation

Customer-specific

extensions

Te

ch

no

log

ies

SA

P

32

70

, E

mu

lato

rs

xB

row

se

r

Ja

va

Cen

tura

/Gu

pta

Win

32

, C

++

, V

B

Po

we

rBu

ilde

r, D

elp

hi

PD

F-D

ocu

me

nts

Sie

be

l, O

racle

Wo

rd, X

L, O

utlo

ok

.NE

T, W

PF

Data

ba

se

s

Ava

loq

We

bS

erv

ice

s, X

ML

Mo

bile

RE

ST

JS

ON

Page 23: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 23

Traditional Automation

Traditional automation from a manual to an automated

Test Case…

Manual (Prose)

Automated (Code)

Page 24: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 24

Only Tosca offers seamless test automation

Model

You decide!

Traditional testing: two sets; typically out of sync!

Page 25: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 25

Finding

and

Preparing

Test Data

Execution

of

Test Cases

Source: Customer Projects Tricentis®

Total costs

100%

0%

50%

Test Case

Specification

25%

Pre Tosca

Cost

Manual

Test

Execution

75%

Automation

Test Case

Spec.

Test

Automation

Manual

Testing

Test Case

Design

Risk-Based

Test Structure

Post Tosca

Cost

The Bottom Line

Poor automation coverage due to

(i) maintenance trap

(ii) insufficient control of test data

Page 26: Model Based Test Automation - Capgemini Sogeti … · Model-Based Test Automation Reporting & Dashboard Optimize Risk Coverage Optimizer Manage Test Data Provisioning Tricentis Tosca

© 2014 Tricentis GmbH. All rights reserved. 26 26 © 2014 Tricentis GmbH. All rights reserved.

Thank You!