Skip to content

Commit abb9483

Browse files
AJ Fix readme
1 parent 5e5d688 commit abb9483

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

infrastructure/environments/test/fake-api/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Run the above command and follow the instructions in the output to update `~/.do
2525
The first argument to the `create_tokens` script below is the [VitA application private key](https://github.com/NHSDigital/vaccinations-app#simulating-nhs-login-sso-flow), i.e. the file you are using to populate your `NHS_LOGIN_PRIVATE_KEY` variable.
2626

2727
```sh
28-
./create_tokens.sh "../../../../../vita-app-sandpit.pid" "http://localhost:9123" 86400
28+
./create_tokens.sh "<path/to/file/containing/NHS_LOGIN_PRIVATE_KEY>" "http://localhost:9123" 315569520
2929

3030
docker stop local-fake-api ## Will fail if the contain doesn't exist, which is fine
3131

@@ -72,7 +72,7 @@ aws sso login --profile vita-test
7272

7373
fake_api_url="http://"$(aws elbv2 describe-load-balancers --profile vita-test | jq -r '.LoadBalancers[] | select(.LoadBalancerName == "fake-api-project-alb") | .DNSName')
7474

75-
./create_tokens.sh "../../../../../vita-app-sandpit.pid" "$fake_api_url" 315569520
75+
./create_tokens.sh "<path/to/file/containing/NHS_LOGIN_PRIVATE_KEY>" "$fake_api_url" 315569520
7676

7777
docker build --no-cache --platform linux/amd64 -t fake-api .
7878
```

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,19 @@ Number of concurrent users = (Number of tasks) x (Number of threads/task)
6868

6969
## Analysing the results
7070

71-
Download the *.jtl files locally, as they might be big and many and use the following script (change the sample values).
71+
Download the test logs locally and generate a report using the following commands.
7272

7373
```shell
74-
# download the logs locally
75-
AWS_PROFILE=vita-test aws s3 sync s3://gh-vita-741448960880-load-testing/results/2025/10/02/ .
74+
# download the logs locally, replace yyyy/mm/dd with test date
75+
AWS_PROFILE=vita-test aws s3 sync s3://gh-vita-741448960880-load-testing/results/yyyy/mm/dd/ .
7676

7777
# take header from one of the logs and merge all logs into one file
78-
head -n 1 16_34_59_655_29833.jtl > combined.jtl
78+
head -n 1 $(ls *.jtl | head -n 1) > performance.logs
7979
for file in *.jtl; do
80-
tail -n +2 "$file" >> combined.jtl
80+
tail -n +2 "$file" >> performance.logs
8181
done
8282

8383
# generate an HTML report
84-
jmeter -g combined.jtl -o report
84+
jmeter -g performance.logs -o report
8585
open report/index.html
8686
```

0 commit comments

Comments
 (0)