hh.js - state of the automation

20
@admc State of the Automation Monday, April 23, 12

Upload: adam-christian

Post on 06-May-2015

1.112 views

Category:

Technology


0 download

DESCRIPTION

My perspectve on the current state of automated testing.

TRANSCRIPT

Page 1: HH.JS - State of the Automation

@admc

State of the Automation

Monday, April 23, 12

Page 2: HH.JS - State of the Automation

Ich: github.com/admc

• I’m a web developer• OSAF 2007, released Windmill Project• Slide 2008, released WatiN, FlexPilot• Mozilla 2009, released MozMill• Sauce Labs 2010 - 2012

• Selenium Builder• Jellyfish• WD, WD-Candy

Monday, April 23, 12

Page 3: HH.JS - State of the Automation

Introduction

Thanks for having us!

Hamburg is an amazing city

You may know all of this, already.

I hope you find something new to take away.

Monday, April 23, 12

Page 4: HH.JS - State of the Automation

Some HistorySelenium - 2006

Windmill - 2007

Node.JS - Appears at JS.EU - 2009

JSDOM - Spurs headless

Soda - Node drives Selenium 1!

Phantom, Zombie, Tobi - 2010

WebDriver - Starts talking about mobile

WebDriver + Selenium = Selenium 2

Monday, April 23, 12

Page 5: HH.JS - State of the Automation

Test Stack

VowsMocha

QUnitJasmine

Zombie, Phantom, Tobi

WebDriver: wd-candy (wd pronounced wood), WebDriverJS, webdriver-js

Manual, otherwise still not impressed.

Monday, April 23, 12

Page 6: HH.JS - State of the Automation

Do what works

• Automation success needs immediate value• The easier it is, the more success you will have• Javascript is awesome, but there tools for each

language• Some is better than none

Monday, April 23, 12

Page 7: HH.JS - State of the Automation

6 Commandments of test

• Only run after passing headless• Small succinct test cases• No test case dependencies• Abstract fragile locators• Parallelize test runs to the max• Focus on the money path

Monday, April 23, 12

Page 8: HH.JS - State of the Automation

Evangelism

• Push to do things right• Testing automation is a community• Your testing work is never done• Selenium Conf 2011 - Automated Battle Scars

http://youtu.be/vZTi02tSs_M

Monday, April 23, 12

Page 9: HH.JS - State of the Automation

Continuous Integration is HOT

Jenkins (commercial: cloudbees)

Travis-CI: OSS Only

Waterfall test flow, fail early

Only SMS on critical

Careful about the hours it can bug you

Incredible speed up in development

Monday, April 23, 12

Page 10: HH.JS - State of the Automation

WebDriver (Se 2)

W3C Standard

Name situation

Selenium Conference: Community

Does web automation amazingly

Cares about mobile

Selenium Grid

Monday, April 23, 12

Page 11: HH.JS - State of the Automation

All the browsers

We’re just getting started..

Monday, April 23, 12

Page 12: HH.JS - State of the Automation

The Holy Grail

Monday, April 23, 12

Page 13: HH.JS - State of the Automation

Mobile Native

• A work in progress• Searching for a community• NativeDriver -- awesome, discontinued :-(• calabash -- appears to have momentum

Monday, April 23, 12

Page 14: HH.JS - State of the Automation

Future

Full mobile web coverage as part of Selenium

Faster Android emulation solution

Faster browser testing due to browser side optimizations

Blessed mobile native solution with WebDriver API’s

Robots.

Monday, April 23, 12

Page 15: HH.JS - State of the Automation

Sauce LabsOpen Source projects!

Se Builder -> Node Selenium Libraries

Cleaner integration: QUnit, Jasmine

Integration with Selenium Grid

Better ways to • debug your JS via the cloud• profile your JS on the cloud

Monday, April 23, 12

Page 16: HH.JS - State of the Automation

Seriously, Robots

http://bitbeam.org/Monday, April 23, 12

Page 17: HH.JS - State of the Automation

The Clouds• General

• EC2, RackSpace, MacMiniCloud etc.• Specific

• Sauce OnDemand - Functional, Client JS Unit• Testling - Client JS Unit• Browserstack - Client JS Unit• TestBot - Client Functional

Monday, April 23, 12

Page 18: HH.JS - State of the Automation

Vielen Dank HH.JS!

Thanks @hblank for making this happen!

Sharing your great city.

Keeping the JS Community growing in .de

Allowing us to come talk to you!

Monday, April 23, 12

Page 19: HH.JS - State of the Automation

LinksMocha: http://visionmedia.github.com/mocha/Calabash: https://github.com/calabash/Selenium Grid: http://selenium-grid.seleniumhq.org/WD: https://github.com/admc/wdWD-Candy: https://github.com/admc/wd-candyVows: http://vowsjs.org/QUnit: http://docs.jquery.com/QunitWebDriverJS: http://code.google.com/p/selenium/wiki/WebDriverJswebdriver-js: https://github.com/dmachi/webdriver-jsSelenium/WebDriver: http://seleniumhq.org/Zombie.JS: https://github.com/assaf/zombieTobi: https://github.com/learnboost/tobiSe-Builder: http://www.sebuilder.com

Monday, April 23, 12

Page 20: HH.JS - State of the Automation

Q & A

Bierzeit?Monday, April 23, 12