30
1 Jekyll and Hyde with Jubula Alex Schladebeck Markus Tiede BREDEX GmbH 13/03/15 http://www.freedigitalphotos.net artur84 ID 100161961

Jekyll and Hyde with Jubula - EclipseCon France2018 · 2 Agenda Introductions and motivation Dr Jekyll: the Jubula ITE Mr Hyde: the Jubula Client API 13/03/15 Jekyll and Hyde with

Embed Size (px)

Citation preview

1

Jekyll and Hyde with Jubula

Alex Schladebeck Markus Tiede

BREDEX GmbH

13/03/15

http://www.freedigitalphotos.net artur84 ID 100161961

2

Agenda Introductions and motivation Dr Jekyll: the Jubula ITE Mr Hyde: the Jubula Client API

13/03/15 Jekyll and Hyde with Jubula

3

Introductions

13/03/15 Jekyll and Hyde with Jubula

4

Why do we test?

13/03/15 Jekyll and Hyde with Jubula http://www.freeimages.com brainlocID 418215

5

Why do we automate tests?

13/03/15 Jekyll and Hyde with Jubula

http://www.freedigitalphotos.net Chaiwat 100300308

6

Automating tests with Jubula   Code-free functional (black box) testing •  Swing, SWT/RCP/GEF, HTML, iOS, JavaFX

  Tests through the GUI •  No / minimal difference to manual test •  All layers tested •  Use cases, workflows: begins with requirements •  Intelligent and well-structured tests

  Communication! •  Whole team involvement •  Continuous Integration = Continuous Information

  “Why can’t we also write code…?”

13/03/15 Jekyll and Hyde with Jubula

7

CAP: the quintessence of automation

13/03/15 Jekyll and Hyde with Jubula

Into the username field, enter “admin“

CAP (Test Step) Component Action Parameter (Which) (What) (How)

http://www.freedigitalphotos.net Stuart Miles 100146476

8 13/03/15 Jekyll and Hyde with Jubula

"Janus-Vatican" by Fubar Obfusco - Foto taken himself. Licensed under Public Domain via Wikimedia Commons http://commons.wikimedia.org/wiki/File:Janus-Vatican.JPG#mediaviewer/File:Janus-Vatican.JPG

Jubula ITE

Create test

Add data

Add components

Do mapping

Execute

Analyse

Jubula Client API

Java API

Jubula‘s Core

“Raw“ low-level

AUT lifecycle execute CAPs

9

Demo ITE

13/03/15 Jekyll and Hyde with Jubula

10

Let’s spend some time with Mr Hyde

13/03/15 Jekyll and Hyde with Jubula

11

Let’s spend some time with Mr Hyde

13/03/15 Jekyll and Hyde with Jubula

12

Let’s spend some time with Mr Hyde

13/03/15 Jekyll and Hyde with Jubula

13

Let’s spend some time with Mr Hyde

13/03/15 Jekyll and Hyde with Jubula

14

Let’s spend some time with Mr Hyde

13/03/15 Jekyll and Hyde with Jubula

15

The AUT’s lifecycle

13/03/15 Jekyll and Hyde with Jubula

16

The AUT’s lifecycle

13/03/15 Jekyll and Hyde with Jubula

17

The AUT’s lifecycle

13/03/15 Jekyll and Hyde with Jubula

18

Accessing a UI component

13/03/15 Jekyll and Hyde with Jubula

19

Accessing a UI component

13/03/15 Jekyll and Hyde with Jubula

20

Accessing a UI component

13/03/15 Jekyll and Hyde with Jubula

21

Accessing a UI component

13/03/15 Jekyll and Hyde with Jubula

  UI component proxy instances •  factories for executable CAPs •  searched when CAPs getting executed

22

Available for all toolkits

13/03/15 Jekyll and Hyde with Jubula

23

200+ CAPs / Test Steps

13/03/15 Jekyll and Hyde with Jubula

24

Executing CAPs

13/03/15 Jekyll and Hyde with Jubula

25

Executing CAPs

13/03/15 Jekyll and Hyde with Jubula

26

Executing CAPs

13/03/15 Jekyll and Hyde with Jubula

27

Demo API

13/03/15 Jekyll and Hyde with Jubula

28

Some facts   Java 6+   Exceptions for execution events   Consumable in different flavors •  plain JARs •  Maven artifacts from m2-repo •  OSGi bundles   Small footprint ~2MB   Part of Jubula 3.1.0 – coming with Mars •  Standalone version: http://testing.bredex.de

13/03/15 Jekyll and Hyde with Jubula

29

Dual personalities Jubula ITE •  Code-free

•  + test design •  Communication •  Offers shiny extras

•  ALM •  Test result reports •  BIRT

Jubula Client API •  Very code-y

•  + coding practices ;) •  Communication •  Offers shiny features

•  Complex test flows •  Use the world of Java •  Integration into SCM

13/03/15 Jekyll and Hyde with Jubula

Choose your poison!

+1        0        -­‐1  

Sign  in:  www.eclipsecon.org  

Evaluate  the  sessions