testing your app with selenium on travis ci
DESCRIPTION
Use Travis CITRANSCRIPT
2014/8/23@yando
Testing your Appwith Selenium on Travis CI
me
Yusuke Ando
2002
10~20 meetups / month
Engine Yard / Japan
mean while in Japan
yando
github.com/yandod
seene.co/u/yando
candycane
Agenda
Why Travis CI
Overview
Selenium on Travis CI
Why Travis CI?
Testing Era
Every
project
night
commit
Jenkins
HELL
on Jenkins
Application A
Application B
Application C
Yak Shaving
SAVE US
CI as a Service
February 2011 born in Berlin
Mathias Meyer & Josh Kalderimis
Open Source
Travis CI
Distributed
Disposable VM
parallel, multiple version
for library developer
Features
C C++ Clojure Erlang Go Groovy Haskell Java
JavaScript Objective-C Perl PHP Python Ruby Scala …
polyglot
Email IRC Campfire Flowdock
HipChat Sqwiggle Slack Webhook
Notification
Price
Getting Started
Ubuntu 12.04 LTS Server Edition 64bit
Mac OSX as option
Chef
VM
push to github
account registration
turn on
pre requirement
configuration file
language, version, scripts
encrypted key
.travis.yml
.travis.yml
php versions
badges
flexible
override default if necessary
phpunit or any commands
composer pyrus pear
pecl, apt-get, make
phalcon/cphalcon
Unity?
coverage report?
encryption
secret key, email address, endpoint
travis gem
secure: ‘aaabbbbccccdddeeeee’
will be decoded on travis vm
example
re-run
network timeout
api error?
stay calm, click a button
skip build?changing only README
put [ci skip] or [skip ci]
Mobile App
with just a yml file
easy of use
great of productivity
Travis CI for Unit Testing
Travis for Unit Testing
major use case
modern library might use Travis
CakePHP uses Travis
if you on cake way
app/Console/Cake test app All
call extra tests if necessary
just rewrite line of .travis.yml
Travis CI for App Testing
Seleniumcontrol browser remotely
tests entire app includes JavaScript,
pixel, click, etc..
WebDriver accepts call from PHPUnit
require java, x, firefox
No..
Selenium RC
Selenium IDE
Phantom.js
Selenium on Travis
firefox, xVfb, java by default
selenium-server
phpunit-selenium
boot webserver by php -S or https
Travis CI VMxVfbfirefox
JavaSelenium
PHP
WebApp
phpunit
turn into phpunit
screenshot
DEMO?
Do you really keep DIY?