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).
- Browse Test
- Gateway Complete Browse.
- Portal Loop
- Login
- All Sites Complete Browse.
- Logout
- Gateway Complete Browse.
The Random test execute:
- Random Test
- Gateway Complete Browse.
- Portal Loop
- Login
- Site Loop
- Browse Site
- Page Loop
- Browse Page
- Browse Tool
- Page Loop
- Browse Site
- Logout
- Gateway Complete Browse.
Test sizes
Test framework provides up to 4 different kind of load charge tests.
- Default: 1 thread, 1 portal loop, 1 site loop, 1 page loop.
- Low: 5 threads, 1 portal loop, 2 site loops, 10 page loops.
- 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.
noshowpages: Avoid displaying page load times (only tool load times).
norandomuser: Uses a file of users to run load tests, it's possible to use a downloaded file of users.
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.