6. ➢ Ruby >= 1.9.3 (JRuby and C-Ruby/YARV are
supported)
➢ Capistrano support these source code version control
systems out of the box:
○ Git 1.8 or higher
○ Mercurial
○ SVN
Requirements
10. Mercury Vagrant
“Mercury project is meant
to allow people in the
WordPress community to
run a single Vagrant for
developing, debugging,
and deploying HHVM
based code.”
11. Requirements
➢ Git
➢ Virtual machine software (VMware or VirtualBox are
recommended)
➢ Vagrant
➢ Node
➢ Vagrant Ghost plugin - for automation of hosts file updates
12. Local Install Set-Up
New project folder in hgv/sites
provisioning/default-install.
yml →
hgv_data/config/sites/default.yml
Config the yml file
Run vagrant provision.
13. What do you get?
➢ Fresh WordPress install with some useful
plugins
➢ All config files set up
➢ DB set up
➢ Debug tools
➢ ssh access to the vagrant files
➢ caching if needed – Memcache / Varnish
14. WP CLI
WP-CLI is a set of
command-line tools for
managing WordPress
installations. You can
update plugins, set up
multisite installs and much
more, without using a web
browser.
20. What we can test?
➢ Forms
➢ Clicks
➢ Check Elements
➢ Grabbers
➢ Cookies, Urls, Title
21. Selenium
WebDriver
Selenium-WebDriver was developed to better support dynamic web pages
where elements of a page may change without the page itself being reloaded.
WebDriver’s goal is to supply a well-designed object-oriented API that provides
improved support for modern advanced web-app testing problems.
Selenium-WebDriver makes direct calls to the browser using each browser’s
native support for automation.
24. Usage
// login as administrator using username and password
public function loginAsAdmin();
// login as user
public function loginAs($username, $password);
// go the plugins page
public function amOnPluginsPage();
// activate a plugin from the plugin page
public function activatePlugin($pluginSlug);
// deactivate a plugin from the plugin page
public function deactivatePlugin($pluginSlug);
27. Features
➢ Different stages of deployment
➢ Secure deployment via SSH
➢ Sets different WordPress versions on server
➢ Symlinks to protect not deployed folders
➢ Backups
➢ Roll Back