Skip to content

Commit e137367

Browse files
VIA-537 AS/SB Update jmeter test plan and load generator readme
1 parent bbdb10f commit e137367

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,8 @@ terraform.tfstate*
124124

125125
# Content validation
126126
*.temp.json
127+
128+
# Jmeter and Performance Testing
129+
/performance/performance.logs
130+
/performance/*.jtl
127131
/performance/report/

infrastructure/environments/test/load-generator/readme.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Load generator for performance testing
22

3+
## Running load generator locally
4+
5+
Install jmeter and jq: `brew install jmeter jq`
6+
7+
```shell
8+
cd performance
9+
10+
# Run jmeter load test with defaults
11+
./run-vita-load-test.sh
12+
13+
# Analyse results
14+
# Take header from one of the logs and merge all logs into one file
15+
head -n 1 $(ls *.jtl | head -n 1) > performance.logs
16+
for file in *.jtl; do
17+
tail -n +2 "$file" >> performance.logs
18+
done
19+
20+
# Generate an HTML report
21+
jmeter -g performance.logs -o report
22+
open report/index.html
23+
```
24+
325
## Deploying to Test environment
426

527
You'll need to have installed [docker](https://www.docker.com/) and the [AWS CLI tools](https://aws.amazon.com/cli/): `brew install docker colima awscli` if necessary.

performance/vita-user-journey.jmx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
<hashTree/>
147147
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
148148
<collectionProp name="Asserion.test_strings">
149-
<stringProp name="-1512529882">href=&quot;/check-and-book-rsv&quot;&gt;Check and book an RSV vaccination&lt;/a&gt;</stringProp>
149+
<stringProp name="2070171466">&lt;span class=&quot;nhsuk-header__service-name&quot;&gt;Check and book vaccinations&lt;/span&gt;</stringProp>
150150
</collectionProp>
151151
<stringProp name="Assertion.custom_message"></stringProp>
152152
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>

0 commit comments

Comments
 (0)