sakaiproject/Hilary — pull request #161 by simong (2012-10-03 20:28:18+00:00)
Title: Review: Tsung module

This module introduces easy-to-write tsung tests. It uses https://github.com/sakaiproject/node-tsung to generate a `Tsung` compatible XML file. I'm mainly looking for feedback on the files under ./tests/ and ./lib/.

# APIs
I've been working with the assumption that each module under `lib` represents a page.
The `load` method will load that page and will probably do multiple requests (ex: content.load will load the me feed and content data) where the other methods assume that these are user actions that occur on the page.

# Some terminology
A test represents a Tsung session.
A suite represents a collection of tests and thus a collection of Tsung sessions.

# Tests
I've written 2 basic tests:
* groupprofile
* Login
* Load the dashboard
* Load a group
* Get the members of that group
* Logout
* content
* Login
* Load the dashboard
* Load the library
* Create a link
* View the "content profile" of that link
* Share the link
* Logout

Both of these are gathered in the `standard` suite, each with a probability of 50%.

# Running a suite
The suite can be generated with:
`node node_modules/oae-tsung/run_suite.js -s standard`