29
J2J JAVAFX TESTING WITH JUBULA by - @MarkusTiede BREDEX GmbH

JAVAFX TESTING WITH JUBULA

  • Upload
    letuong

  • View
    230

  • Download
    0

Embed Size (px)

Citation preview

Page 1: JAVAFX TESTING WITH JUBULA

J2JJAVAFX TESTING WITH JUBULA

by - @MarkusTiede BREDEX GmbH

Page 2: JAVAFX TESTING WITH JUBULA

AGENDAWhat's Jubula?

The concepts...

JavaFX support in Jubula

Having some fun...

Some insights...

Getting started...

Page 3: JAVAFX TESTING WITH JUBULA

WHAT'S JUBULA?

@ since 2011

automated functional GUI testing

Code-free keyword-based black-box approach

human-readable test steps + robust UI widget recognition

eclipse.org/jubula

Page 4: JAVAFX TESTING WITH JUBULA

JUBULA - THE BIG PICTURE

AUT: Application under Test

Page 5: JAVAFX TESTING WITH JUBULA

THE CONCEPT: TOOLKITS

Page 6: JAVAFX TESTING WITH JUBULA

THE CONCEPT: TOOLKIT ABSTRACTION

Page 7: JAVAFX TESTING WITH JUBULA

THE CONCEPT: TOOLKIT ABSTRACTION

Page 8: JAVAFX TESTING WITH JUBULA

THE CONCEPT: TOOLKIT ABSTRACTION

Page 9: JAVAFX TESTING WITH JUBULA

THE CONCEPT: TOOLKIT ABSTRACTION

Page 10: JAVAFX TESTING WITH JUBULA

THE CONCEPT: OBJECT MAPPING

Page 11: JAVAFX TESTING WITH JUBULA

THE CONCEPT: OBJECT MAPPING

Page 12: JAVAFX TESTING WITH JUBULA

THE CONCEPT: OBJECT MAPPING

Page 13: JAVAFX TESTING WITH JUBULA

THE CONCEPT: OBJECT MAPPING

Page 14: JAVAFX TESTING WITH JUBULA

THE CONCEPT: AUT START

Page 15: JAVAFX TESTING WITH JUBULA

DEMO: SIMPLE ADDER

Page 16: JAVAFX TESTING WITH JUBULA

JAVAFX SUPPORT IN JUBULAJavaFX on Java 8

Standalone and e(fx)clipse based AUTs

Supported wigdets: Accordion, Button, ButtonBase, CheckBox,ChoiceBox, ComboBox, Hyperlink, ImageView, Label, ListView,MenuButton, PasswordField, RadioButton, Stage, TableView,

TabPane, Text, TextInputControl, TitledPane, TextArea, TextField,TreeView, TreeTableView, ToggleButton

current status: http://www.eclip.se/421595

Page 17: JAVAFX TESTING WITH JUBULA

SUPPORTING CUSTOM COMPONENTS(1) write extension for ITE: o.e.jubula.toolkit.common.toolkitsupport

information about type-system and supported CAPs

Page 18: JAVAFX TESTING WITH JUBULA

SUPPORTING CUSTOM COMPONENTS(2) provide fragments for RC bundles in AUT-Agent

provide toolkit dependent technical realization

Page 19: JAVAFX TESTING WITH JUBULA

LET'S HAVE SOME FUN...show 3 high-level tests using only 4 test steps (out of 270+)

store a value

wait for some time

compare expected and actual value

move the mouse

demonstrate strength in object recognitionreliabilityspeed

Page 20: JAVAFX TESTING WITH JUBULA

... AND BREAK STH!

official Oracle JavaFX example application

Page 21: JAVAFX TESTING WITH JUBULA

SOME INSIGHTS...no modifications in AUT necessary

but to improve object heursitic in JavaFX use:

/** * The id of this {@code Node}. This simple string * identifier is useful for finding a specific Node * within the scene graph ... */void javafx.scene.Node.setId(String value)

Page 22: JAVAFX TESTING WITH JUBULA

GETTING STARTED?Get the latest version of Jubula!

Recommended: Eclipse for Testers Mars M3 - Friday, November 14

First steps: Help → Cheat Sheets...

http://testing.bredex.de

Eclipse Magazin - 5.2014 - Jubula goes JavaFX

Page 23: JAVAFX TESTING WITH JUBULA

A SNEAK PEEK...

Page 24: JAVAFX TESTING WITH JUBULA

A SNEAK PEEK... TO AN API

Page 25: JAVAFX TESTING WITH JUBULA

A SNEAK PEEK... TO AN API

Page 26: JAVAFX TESTING WITH JUBULA

A SNEAK PEEK... TO AN API

Page 27: JAVAFX TESTING WITH JUBULA

A SNEAK PEEK... TO AN API

Page 28: JAVAFX TESTING WITH JUBULA

A SNEAK PEEK... TO AN API

Page 29: JAVAFX TESTING WITH JUBULA

THANKS!Twitter:

Copyright BREDEX GmbH 2014. Made available under the Eclipse Public License v1.0.

@[email protected]