Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Introduction

Test framework allows you to perform tests through Jenkis. Show this screencast to see Jenkis and Test Framework working together.

Configuration

The next lines describe one way to run test framework with jenkins. You need only one jobs to achieve this.
First you need to configure maven and jdk inside Jenkis, go to Jenkins website to do this.

Populate Environment

This Jobs create and remove the test environment. You could run this jobs outside Jenkins, or prepare the environment manually.

Name: CreateTest
Svn: https://source.sakaiproject.org/contrib/qa/tags/testframework-YOUR-FAVOURITE-VERSION
Steps:
# mvn clean test site -Dtest-dir=init -Dtest-file=create.jmx -Dtest-properties-file=small.properties
Name: RemoveTest
Svn: https://source.sakaiproject.org/contrib/qa/tags/testframework-YOUR-FAVOURITE-VERSION
Steps:
# mvn clean test site -Dtest-dir=init -Dtest-file=remove.jmx -Dtest-properties-file=small.properties

Schedule this tests once a week to remove and recreate the environment data, and before Report
to collect performance data.

Test Job

Name: TestFramework
Svn: https://source.sakaiproject.org/contrib/qa/tags/testframework-YOUR-FAVOURITE-VERSION
Steps:
# mvn clean -Dclean-target=cleanHistory

# mvn test site
# mvn test site
# mvn site -Preport

You could check results inside Jenkins, or run site-deploy to publish results in other location.

  • No labels