Graphene & Droidium in action

Who am I?

Agenda

What is Arquillian Graphene ?

Writing and maintaining tests

development.jpg

Writing and maintaining tests

maintenance.jpg
dry.jpg

Testers

tester2.jpg tester3.jpg

Arquillian

ike.png

Arquillian crash course

deploymentScenario.png

JUnit runner & client mode

deploymentScenario1.png

Injecting URL and browser

deploymentScenario2.png

Deployment definition

deploymentScenario3.png

Test method

deploymentScenario4.png

Rewrap

deploymentScenario.png

Arquillian Graphene

graphene-logo.png

Graphene crash course

googleTestBasic.png

Wiring up page & test

googleTestBasic1.png

Graphene test

googleTestBasic2.png

@Page Objects

What is wrong ?

googleTestBasic.png

Page objects declaration

googleFrontPageObject.png

Page objects declaration

googleResultPageObject.png

Test with page objects

googleTestWithPageObjects.png

@Page annotation

googleTestWithPageObjects1.png

Test with page objects

googleTestWithPageObjects2.png

Improved maintenance, from this

maintenance.jpg

to this

maintenance2.jpg

Page Fragments

Page fragments declaration

autocompleteFragment.png

Wiring up fragment & page

autocompleteFragment1.png

Services of fragment

autocompleteFragment2.png

Help methods of fragment

autocompleteFragment3.png

Page fragments injection

testWithAutocompleteFragment.png

Declaring fragment root element

testWithAutocompleteFragment1.png

Test with page fragments

testWithAutocompleteFragment2.png

Improved DRY, from this

dry.jpg

to this

dry2.png

@Location over page object declaration

frontPageObjWithLocation.png

@Location over page object declaration

frontPageObjWithLocation1.png

@InitialPage

googleTestWithLocation.png

@InitialPage

googleTestWithLocation1.png

Wanna test some mobile, huh?

Arquillian Droidium

Droidium from high level

Concept of Arquillian containers

What does Droidium solve?

Role of Selendroid in Droidium

Web testing workflow

Native testing workflow

No difference between web and native testing

One API

@Page == activity

Demo

Wrapping it up

Final recap

Get testing done!

Q&A

success.png

Resources