Skip to content

Install RMTestframework

petost edited this page Dec 3, 2014 · 29 revisions

Prerequisites

Verify that you have the following software installed: Java, to check installed version: java -version

Maven, to check installed version: mvn -version

Install Android SDK: http://developer.android.com/sdk/index.html

Initial installation

Go to folder where you want the installation and clone repo:

git clone https://github.com/RedmindAB/RMTest.git

Go to the newly created "RMTest" folder and execute the installation script.

cd RMTest

./install.sh The test will fail if the Hub-server and the Node-server aren't running. (See below). Ignore the test results.

Eclipse Setup and import project

Import RMTest (File -> Import -> Maven -> Existing Maven project -> Next. Search for the RMTest directory and press finish).

Run a Test

Go to the shell and navigate to the RMTest-folder.

To start the Grid-server: RMTest/cmd/startHub.sh

To start the node-server: RMTest/mac/startMacNode.sh

In Eclipse, choose a test in the src/test/java-folder and run it as a jUnit-test.

Run test through Maven

Go to the shell and navigate to the RMTest-folder: mvn -Dtest=(YourTest).java

Run tests through Jenkins on the Mac Mini

First, make sure the Jenkins server is running. If not, open a shell on the mac mini and type : java -jar /usr/local/opt/jenkins/libexec/jenkins.war

(The grid and node servers need to be up and running on here if you want to run your tests through Jenkins.)

On your computer, navigate to Jenkins on a browser: http://192.168.75.222:8080/

Open the project RMTest and click Start new build.

Clone this wiki locally