Arquillian Drone provides a simple way to write functional tests for web apps. Drone brings the power of WebDriver into the Arquillian, and the power of Arquillian to WebDriver.
Java Other
Permalink
Failed to load latest commit information.
.github Introduces templates for GH issues and PRs Oct 26, 2016
.mvn/wrapper Adds mvn wrapper Mar 21, 2017
build-config [maven-release-plugin] prepare for next development iteration Mar 20, 2018
depchain [maven-release-plugin] prepare for next development iteration Mar 20, 2018
docs chore(ARQ-2179): Upgraded to Selenium 3.11.0 (#130) Mar 20, 2018
drone-api [maven-release-plugin] prepare for next development iteration Mar 20, 2018
drone-bom [maven-release-plugin] prepare for next development iteration Mar 20, 2018
drone-build [maven-release-plugin] prepare for next development iteration Mar 20, 2018
drone-configuration [maven-release-plugin] prepare for next development iteration Mar 20, 2018
drone-impl [maven-release-plugin] prepare for next development iteration Mar 20, 2018
drone-spi [maven-release-plugin] prepare for next development iteration Mar 20, 2018
drone-webdriver [maven-release-plugin] prepare for next development iteration Mar 20, 2018
extension [maven-release-plugin] prepare for next development iteration Mar 20, 2018
.editorconfig Adds .editorconfig Mar 30, 2017
.gitignore Ignores gh-pages folder pointing to another branch Mar 17, 2017
.travis.yml fix(ARQ-2163): Travis: replaced PhantomJS by chromeHeadless Dec 6, 2017
README.adoc chore: Modified readme instructions to use Maven commands for runnig the Nov 3, 2017
mvnw Adds mvn wrapper Mar 21, 2017
mvnw.cmd Adds mvn wrapper Mar 21, 2017
pom.xml [maven-release-plugin] prepare for next development iteration Mar 20, 2018

README.adoc

Arquillian Drone Build Status

To read complete documentation visit http://arquillian.org/arquillian-extension-drone/

The Arquillian Drone 2 extension for Arquillian provides a simple way to include functional tests for an application with a web-based user interface.

Arquillian Drone 2 brings the power of WebDriver into the Arquillian framework. WebDriver serves as a language to communicate with the browser, by filling the forms, navigating the pages and validating their content.

Compared with its predecessor Arquillian Drone 1, it offers new features and tools as part of the SPI as well as multiple life cycle scopes of @Drone points as part of the API.

1. Why should I use Arquillian Drone instead of plain WebDriver?

There are many reasons why you want to do that, the most important being:

  • Life cycle management of the browser

  • Interaction with deployments and containers provided by Arquillian

  • Simple usage of multiple browsers in a single test

  • Configuration kept on a single place, outside of the Java code

  • Fully compatible with the IDE

  • Integration with mobile based browsers testing (Arquillian Droidium)

  • Integration of JavaScript test suite execution (Arquillian QUnit)

  • Compatible with WebDriver (Selenium 2) and Selenium Grids

If you are still not convinced that Arquillian Drone matches your needs, you might have a look at Arquillian Graphene 2, which is a wrapper on top of WebDriver, goes one step further and provides you a convenient way how to write tests for rich AJAX UIs with an ease, injections for Page Objects and Page Fragments and much more.

2. Building the project

Prerequisites:

  • JDK 8 and newer

  • Maven 3.0.3 and newer

2.1. Running test suite

To run only unit tests:

mvn clean test

To run the whole test suite including functional tests using phantomjs browser.

mvn clean verify -Dbrowser=phantomjs

In case you want to modify the browser, you can specify -Dbrowser=firefox for instance. This will run the test suite using firefox defined. Similarly, you can use Chrome, Safari, etc…​

Tip
VNC server instance can be used to let all the browsers pop out in separate display. Just prepend both commands with DISPLAY=:${display.number}

2.2. Releasing new version

Run following commands:

mvn clean release:prepare release:perform

Make sure that you push the tag, close all issues with given version in JIRA and mark version as released.