Skip to content
kgribov edited this page Aug 2, 2013 · 33 revisions

#Getting Started

##Creating a jagger test-suite project with Maven

Go to the folder, where you would like to save your jagger test-suite project, and run next command -

mvn archetype:generate -DarchetypeGroupId=com.griddynamics.jagger -DarchetypeArtifactId=jagger-suite-archetype -DarchetypeVersion=1.2.1 -DarchetypeRepository=https://nexus.griddynamics.net/nexus/content/repositories/jagger-releases/

Maven will ask you to enter groupId, artifactId, version and package name. The result if this operation must be a folder with artifactId name.

!Note - Use a name of artifact, that not equals jagger-suite-archetype. Use a name of package, that start with letter, and contains only letters, numbers and character '_'.

###Example Let's try to create your first jagger test-suite project.

I choose next parameters - groupId= com.griddynamics.jagger, artifactId= test-suite-1. In your terminal you will see something like this -

maven generate project screenshot

Maven will create a folder with name 'test-suite-1'. It is a folder of your jagger test-suite project. You can open this project with your favourite IDE as maven project.

The structure of your test-suite must looks like this -

project structure

There are jagger properties in folder profiles/basic, configuration files in folder suite and [custom components](Custom component) in package com.griddynamics.jagger.

Run jagger test-suite

1 Step - Build project

Now you need to build your test-suite project. Go to generated folder and run a command

mvn clean install

2 Step - Launch test-suite

If your build was succesful, go to the folder - /target/{artifactdId}-{version}-full/ and execute next command

./start.sh profiles/basic/environment.properties

!Note - don't forget to change permissions for .sh script.

Where start.sh is a launch script and profiles/basic/environment.properties is a configuration properties how to launch jagger.

3 Step - Jagger results

All results jagger write to database and to report, which you can find in current folder.

###Example

Now let's try to run our example project.

Build your project. If build was succesful you'll see next lines -

build successful status

Now go to the folder target/test-suite-1-1.0-SNAPSHOT-full and launch test-suite.

Jagger will execute some examples -

jagger example of launch

After execution you will find a report in this folder -

jagger example of report

Clone this wiki locally