Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jmeter readme #564

Merged
merged 1 commit into from
Apr 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions server/performanceStatistics/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

Performance tests are done with [jmeter](https://jmeter.apache.org/).

## Cheatsheet

### File types

`.jmx` -- these are test plans. They can be created and edited using the jmeter GUI.

`.tsv` -- these hold variables that are used by test plans.

`.jtl` -- test reports. Created by running test plans.

`htmlReports/*` -- graphical reports generated by running test plans.

### Commands

Run these commands inside `/server/performanceStatistics`.

#### open jmeter GUI
Run `jmeter` to start jmeter in GUI mode. This will open a window where you can create and edit test plans. To open a test plan for editing, choose Open from the file menu and select the plan in the finder.

#### run tests and generate html report
Once you have a test plan, you can run the tests from the command line like this:
```
jmeter -n -t {PLAN_NAME}.jmx -l {REPORT_NAME}.jtl -e -o htmlReports/{HTML_REPORT_NAME}
```
This will produce a report file (ending in `.jtl`) and an html report that you can view in the browser.

#### generate html report from existing .jtl file
If you already have a report file, you can create an html report from it by running:
```
jmeter -g {JTL_FILE_NAME} -o htmlReports/{HTML_REPORT_NAME}
```

## Installing jmeter (mac only)

#### 1. update homebrew
`brew update`

#### 2. Install java if you don't have it.
Run `java -version` to see if java is installed. If not, run `brew cask install java`.

#### 3. install jmeter
`brew install jmeter`