Skip to content

Developing Framework First Steps

Catalin edited this page May 22, 2019 · 2 revisions

macOS

You'll need to install Java (Version 8) and Maven (3.x). To do this you can use a package manager such as brew.

To check the tools are pathed using the following commands:

java -version
mvn -version

Then you'll need to clone the repo into the path you'd like to work from.

git clone https://github.com/NTTDATA-UK/cinnamon.git

Once completed you can get immediately to compiling the code to verify your system configuration. The following command will download the shared packages using Maven into your local cache.

NOTE: On an intermitent network this can sometimes fail due to package download failures. Be persistent.

mvn compile

Now that we are sure that we can compile the code we should move onto building and executing the tests for the framework itself. This will verify that the rest of your environment is compatible.

Change the directory of your shell into the "acceptance-tests" folder and run for Chrome or the browser of your choice.

mvn clean verify -DbrowserProfile=chrome

Upon successful completion of this task we are ready to single step through the some of the tests.