This talk has been delivered at London Tester Gathering #TesterGathering on 26 June, 2013. This talk was all about demo of Behat and Cucumber with headless drivers Zombie and PhantomJS (Poltergeist).
Event Url : http://www.meetup.com/agiletesting/events/123049092/
Why Teams call analytics are critical to your entire business
Headless BDD
1. Headless BDD
Shashikant Jagtap
Twitter: @Shashikant86
Blogs: http://shashikantjagtap.net
Disclaimer: The opinions expressed here represent my
own/personal views and not those of my current employer
or previous employers
2. Topics
BDD Tools + Test Frameworks + Drivers
Benefits of using Headless Drivers with
BDD tools
Zombie and Phantomjs
Demo Behat + Mink + Zombie
Demo Cucumber + Capybara + Poltergeist
Hashtag #TesterGathering
4. Browser Vs Headless
There are few drivers which pop up
browser to run scenarios
e.g Selenium, WebDriver, Watir
There are some which don't have real
browsers but they are headless
browsers
e.g Phantomjs, Zombie
5. Why Headless?
Fast
No XVFB, X11, XVNC etc etc on Linux
servers
HTTP, Cookies and Network Traffic
Screenshots and JavaScript execution
Error Detections on Page [JS Error]
Debug Options
6. Zombie
Headless Driver with full support to
JavaScript
Uses Node.js, NPM, C++ Compiler &
Python
Installation: OSX [Xcode, HomeBrew]
GitHub: https://github.com/assaf/zombie
7. PhantomJS
PhantoJS is Headless Webkit with full
JavaScript support.
Multipurpose
Install on Mac OSX
$ brew install phantomjs
Website: http://phantomjs.org/index.html