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

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

Oct 01, 2018

Download

Documents

vuongque
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: 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

1

Jekyll and Hyde with Jubula

Alex Schladebeck Markus Tiede

BREDEX GmbH

13/03/15

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

Page 2: 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

2

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

13/03/15 Jekyll and Hyde with Jubula

Page 3: 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

3

Introductions

13/03/15 Jekyll and Hyde with Jubula

Page 4: 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

4

Why do we test?

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

Page 5: 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

5

Why do we automate tests?

13/03/15 Jekyll and Hyde with Jubula

http://www.freedigitalphotos.net Chaiwat 100300308

Page 6: 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

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

Page 7: 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

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

Page 8: 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

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

Page 9: 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

9

Demo ITE

13/03/15 Jekyll and Hyde with Jubula

Page 10: 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

10

Let’s spend some time with Mr Hyde

13/03/15 Jekyll and Hyde with Jubula

Page 11: 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

11

Let’s spend some time with Mr Hyde

13/03/15 Jekyll and Hyde with Jubula

Page 12: 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

12

Let’s spend some time with Mr Hyde

13/03/15 Jekyll and Hyde with Jubula

Page 13: 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

13

Let’s spend some time with Mr Hyde

13/03/15 Jekyll and Hyde with Jubula

Page 14: 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

14

Let’s spend some time with Mr Hyde

13/03/15 Jekyll and Hyde with Jubula

Page 15: 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

15

The AUT’s lifecycle

13/03/15 Jekyll and Hyde with Jubula

Page 16: 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

16

The AUT’s lifecycle

13/03/15 Jekyll and Hyde with Jubula

Page 17: 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

17

The AUT’s lifecycle

13/03/15 Jekyll and Hyde with Jubula

Page 18: 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

18

Accessing a UI component

13/03/15 Jekyll and Hyde with Jubula

Page 19: 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

19

Accessing a UI component

13/03/15 Jekyll and Hyde with Jubula

Page 20: 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

20

Accessing a UI component

13/03/15 Jekyll and Hyde with Jubula

Page 21: 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

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

Page 22: 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

22

Available for all toolkits

13/03/15 Jekyll and Hyde with Jubula

Page 23: 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

23

200+ CAPs / Test Steps

13/03/15 Jekyll and Hyde with Jubula

Page 24: 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

24

Executing CAPs

13/03/15 Jekyll and Hyde with Jubula

Page 25: 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

25

Executing CAPs

13/03/15 Jekyll and Hyde with Jubula

Page 26: 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

26

Executing CAPs

13/03/15 Jekyll and Hyde with Jubula

Page 27: 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

27

Demo API

13/03/15 Jekyll and Hyde with Jubula

Page 28: 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

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

Page 29: 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

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!

Page 30: 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

+1        0        -­‐1  

Sign  in:  www.eclipsecon.org  

Evaluate  the  sessions