Skip to end of metadata
Go to start of metadata

Graphene strongly ties to Arquillian Core and its extensions Containers and Drone to manage lifecycle of the application server, selenium server and Graphene.

In the common scenarios, you need only to choose container you would like to deploy application into and the framework you would like to use for testing.

Test Frameworks Options

In case of Java testing frameworks, you can choose between

  • JUnit
  • TestNG

and use appropriate dependency chain in your Maven POM as you can see bellow

Arquillian Mode Options

You can choose between following Arquillian modes:

  • Standalone
    • runs tests without container integration, only lifecycle of extensions is managed
  • Container
    • runs tests with container, managed lifecycle of container including deployment

and use appropriate dependency chain in your Maven as you can see bellow.

JUnit Standalone

JUnit Container

TestNG Standalone

TestNG Container

These dependencies will make available all of the following dependencies:

  • JUnit/TestNG
  • Arquillian JUnit/TestNG Standalone/Container
  • Arquillian Graphene
    • API / Impl
  • Arquillian Drone
    •  API / Impl
    • Selenium Server
  • Selenium Server
    • SLF4J (required by server)

All of the dependencies manages their required versions.

Although you can manage them and override versions in your project, however there are no guarantee all of the features will work as expected when doing so.

Starting with testing from Java

The sample Graphene test can look like this one:

Other Samples of Usage

For complete sample of usage, you can inspect functional test of Graphene:

  • Maven POM
    • arquillian-graphene dependency
    • container dependency
  • arquillian.xml
    • container settings
    • selenium server settings
    • Graphene settings
  • Sample Test and its Abstract Part
    • @Drone GrapheneSelenium selenium;
    • @ArquillianResource URL applicationPath;
    • @Deployment static WebArchive createDeployment();
    • @Test void test();

Application Container Options

Arquillian has been chosen as suitable container for running Selenium tests since it provides support of managing application servers and deployments.

Refer Arquillian Documentation for complete reference of Arquillian Core and specifically Container adapters.

You will need to define container dependencies and setup arquillian.xml.

Using Drone

Drone is extension for Arquillian that manages lifecycle of the Selenium Server and Selenium clients as Selenium 1.x, Selenium 2.x and Graphene.

For using Drone, refer to Drone Extension Documentation.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.