DESERT WEB APPLICATION TESTING FRAMEWORK
Prepare environment
JDK
- Download and Install
Oracle JDK 7
- Create system environment variable
JAVA_HOME
with the path to the installed JDK
Maven
- Download
Apache Maven 3.2.2
(or the latest) and extract all files from the archive - Create system environment variable
M2_HOME
with the path to the extracted files - Add
M2_HOME/bin
path to the system variablePATH
Compilation and Installation
- Go to the project directory
- Call:
mvn install
When everything is finished you must have the desert.jar
and desert-sources.jar
have been installed to the local Maven repository.
Configuration
Property files
The library has the built in property file with name desert-base.properties
.
Any property could be overwritten by the user defined property file desert.properties
.
The property file must be available in standard resources paths of your project.
Property search sequence:
desert.properties
-> desert-base.properties
Properties types
- Time: Milliseconds
- Time-Out: Milliseconds
- Window dimensions: Pixels
Properties
browser.name
: Browser name
Default:firefox
Values:firefox
,chrome
,safari
,internet explorer
browser.window.width
: Browser window width
Default: 1280browser.window.height
: Browser window height
Default: 1024timeout.implicitlyWait
: Sets the amount of time the driver should wait when searching for an element if it is not immediately present
Default: 15000timeout.pageLoadTimeout
: Sets the amount of time to wait for a page load to complete before throwing an error
Default: 120000timeout.pageConstructorLatency
: Sets additional latency between Making a new instance ofPageObject
class and Initialization of elements of the page. It gives a chance to load some parts of the page.
Default: 300