Skip to content

Synesso/jomsocial-automation-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

Phantom.js

This component emulates the browser. Download and install using the instructions at http://phantomjs.org/download.html

Java

JDK 7 is required to execute the tests. Download and install from http://java.oracle.com

Gradle

This is the build tool that drives the tests. Download and install using the instructions at http://www.gradle.org/downloads

IntelliJ

For now, tests can only be run via intellij (until Gradle issues are fixed). Download and install from http://confluence.jetbrains.com/display/IDEADEV/IDEA+13+EAP (community edition should be fine).

To open the project in intellij, choose import project and select the file build.gradle. It should take some time to download dependencies and then it will be ready.

Configuration

.env

Create the file .env in the base of the project (same level as build.gradle). Edit it to include:

# The base URL for your JomSocial instance
BASE_URL = http://localhost/jomsocial

# The path to your installation of phantomjs
PHANTOMJS_BIN = C:/Tools/phantomjs-1.9.2-windows/phantomjs.exe

# The number of milliseconds selenium should wait for an element before giving up. Defaults to 1500.
TIMEOUT = 1500

# The web driver to use. Choose from DriverName enum values (firefox/phantomjs) Defaults to phantomjs.
WEB_DRIVER = firefox

# Setting User A login Credential
USER_A=usera
USER_A_PASSWORD=usera

# Setting User B login Credential

USER_B=userb
USER_B_PASSWORD=userb

Testing

For now there are problems with running the test via Gradle. Run the test in IntelliJ instead. First make sure JomSocial is running and then open the test class ActivityLikingTest and press SHIFT``F10.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published