Running in a Cloud

Introduction

If you have a cloud account like cloudbees, you will be able to run test framework on it.

The next steps are an example of deployment on cloudbees.

Maven artifacts

First you need to deploy testframework artifacts to your private repository.

You have meny options to do this, but maybe Jenkins is the easiest one.

  1. Create a maven task on Jenkins.
  2. Select https://source.sakaiproject.org/contrib/qa/tags/plugins/plugins-VERSION as source svn repository.
  3. Add a maven step with clean install goal.
  4. Check install to private cloudbees repository.
  5. Create a maven task on Jenkins.
  6. Select https://source.sakaiproject.org/contrib/qa/tags/testcases/testcases-VERSION as source svn repository.
  7. Add a maven step with clean install goal.
  8. Check install to private cloudbees repository.

Jenkins Tests

Now you can add a test task.

  1. Create a maven task on Jenkins.
  2. Select  https://source.sakaiproject.org/contrib/qa/tags/testframework-VERSION as source svn repository.
  3. Add maven steps:
    1. mvn clean
    2. mvn test site ...
    3. mvn test site ...
    4. ...
    5. mvn site -Preport
    6. mvn package -Pwar
  4. Check deploy to CloudBees, choose an application id and type "target/testframework-*.war" as file pattern.

Now you have a Jenkis server like this.

You can configure test execution daily, hourly, monthly, etc...

The test results will be publish on your application's website like this.

Enjoy !!