Sakai CLE

Introduction

Test framework use JMeter to perform load tests.

There are two different tests, Generic and Random. The Generic test browse all sites
pages and tools of the user several times (portal loop count).

  1. Browse Test
    1. Gateway Complete Browse.
    2. Portal Loop
      1. Login
      2. All Sites Complete Browse.
      3. Logout
      4. Gateway Complete Browse.

The Random test execute:

  1. Random Test
    1. Gateway Complete Browse.
    2. Portal Loop
      1. Login
      2. Site Loop
        1. Browse Site
          1. Page Loop
            1. Browse Page
            2. Browse Tool
      3. Logout
      4. Gateway Complete Browse.

Test sizes

Test framework provides up to 4 different kind of load charge tests.

  1. Default: 1 thread, 1 portal loop, 1 site loop, 1 page loop.
  2. Low: 5 threads, 1 portal loop, 2 site loops, 10 page loops.
  3. High: 20 threads, 2 portal loops, 5 site loops, 50 page loops.

Run Tests

In order to run low test with small site users type:

mvn clean test site [-Dtest-properties-file=small-low.properties|medium-low.properties|...] [-Dtest-file=browse.jmx|random.jmx]

browse.jmx: To run only the generic test.
random.jmx: To run only random test.

Complete explanation of all options could be found at readme.txt file in the source repository.

Test Results

Results of maven command are stored in html format inside tests/target/site dir.
Here is an example of create results.

In order to index all the results in one page type:

mvn site -Preport

This command produces the complete site.