From dfeb35b5e6edc2fcffdca136fdf3145f69c858cd Mon Sep 17 00:00:00 2001 From: Tomas Kyjovsky Date: Fri, 5 Feb 2016 04:16:01 +0100 Subject: [PATCH] Updated Arquillian testsuite README / UI Testing. --- testsuite/integration-arquillian/README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/testsuite/integration-arquillian/README.md b/testsuite/integration-arquillian/README.md index 36a8252533..5f7f831649 100644 --- a/testsuite/integration-arquillian/README.md +++ b/testsuite/integration-arquillian/README.md @@ -52,13 +52,24 @@ The `AbstractKeycloakTest` has an initialized instance of AdminClient. Subclasse ## UI Testing -PageObjects can be injected to tests by `@Page` annotation. +### Page Objects -The base class for all page objects is `AbstractPage`. +Page Objects are used by tests to access and operate on UI. +They can be injected using annotation `@Page` provided by the *Arquillian Graphene* extension. + +The base class for all page objects used throughout this Arquillian testsuite is `AbstractPage`, and it's subclass `AbstractPageWithInjectedUrl`. + +For the page objects for the *adapter test apps* the URLs are injected automatically by Arquillian depending on actual URL of the deployed app/example. + +For the pages under the `/auth` context the URL is only injected to the `AuthServerContextRoot` page object, +and the URL hierarchy is modeled by the class inheritance hierarchy (subclasses/extending of `AuthServerContextRoot`). + + +### Browsers The default browser for UI testing is `phantomjs` which is used for fast "headless" testing. Other browsers can be selected with the `-Dbrowser` property, for example `firefox`. -See *Arquillian Graphene* documentation for more details. +See Arquillian Graphene documentation for more details. ## Test Modules