Skip to content

Commit

Permalink
Update readme and changelog about load test
Browse files Browse the repository at this point in the history
  • Loading branch information
amymok committed Jun 24, 2016
1 parent f93b98e commit f6c17b8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ All notable changes to this project will be documented in this file.
We follow the [Semantic Versioning 2.0.0](http://semver.org/) format.

## Unreleased
- Added load tests

## 2.1.2
- Parent PLUS loans separated from other family contributions
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,14 @@ The app is set up to run as a component of CFPB's website, [consumerfinance.gov]


### Running tests

#### Python Tests
You can run python tests from the project root with this command:
```bash
./pytest.sh
```

#### Javascript Tests
To run JavaScript unit tests:

```bash
Expand All @@ -87,6 +90,23 @@ python manage.py runserver
protractor test/functional/conf.js
```

##### Load Tests
Before you run load tests, you will first need to download and unzip [JMeter 3.0](http://jmeter.apache.org/download_jmeter.cgi).

In terminal, execute JMeter and run the following command to open JMeter GUI:

```shell
[Path to JMeter Folder]/bin/jmeter.sh -t [Path to this repository]/college-costs/test/load_testing/Offer.jmx -Jserver_url [parent domain to test] -Jthreads [number of users hitting the site, default: 1] -Jrampup [adding 1 user per specified second, default 5]
```

As an example to if I am in a folder where JMeter and this repository were in, and I am testing it locally on port 8000 with 8 users and add 1 user per 3 seconds:

```shell
apache-jmeter-3.0/bin/jmeter.sh -t college-costs/test/load_testing/Offer.jmx -Jserver_url localhost:8000 -Jthreads 8 -Jrampup 3
```

The corresponding `Offer.csv` in `test/load_testing` specified the parameters being used for testing. The order and name of each column is specified in the JMX file under CSV Offer.

<!-- INCLUDE IN setup.sh
- Build the front-end requirements and the JavaScript files.
Expand Down

0 comments on commit f6c17b8

Please sign in to comment.