Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
2014/8/23@yando
Testing your App

with 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
Selenium
control browser remotely
tests entire app includes JavaScript,
pixel, click, etc..
WebDriver accepts call from PH...
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 VM
xVfb
firefox
Java
Selenium
PHP
WebApp
phpunit
turn into phpunit
screenshot
DEMO?
Do you really keep DIY?
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Testing your app with Selenium on Travis CI
Upcoming SlideShare
Loading in …5
×

Testing your app with Selenium on Travis CI

3,137 views

Published on

Use Travis CI

Published in: Technology

Testing your app with Selenium on Travis CI

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

×