-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# altinn2-tests | ||
Tests for the Altinn 2 solution | ||
# End-to-end tests | ||
This repo holds end-to-end tests for Altinn 3. | ||
Any tests that uses elements from different apis from different repos. Can be both functional and non-functional tests. Further descriptions: | ||
|
||
- [Performance tests](performance-tests/README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Performance tests | ||
## Requirements | ||
- [Install k6](https://grafana.com/docs/k6/latest/set-up/install-k6/) | ||
- [Install k6 extentions](https://github.com/grafana/xk6/) | ||
### Test cases: | ||
- [tax report](tax-report/README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Load test for tax report | ||
Load test for tax report, does the following, divided in two separate steps | ||
|
||
## Steps | ||
1. create tokens | ||
2. upload tax report: | ||
- create instance | ||
- upload tax report | ||
- callbacks and confirm (twice) | ||
- get receipt id | ||
- get receipt | ||
## Run locally | ||
1. Clone this repo | ||
2. Go to src directory | ||
3. build k6 with fileextention | ||
4. run k6 extention to create tokens | ||
4. run test | ||
``` | ||
git clone <this repo> | ||
cd altinn-test/performance-tests/tax-report/src | ||
xk6 build v0.46.0 --with github.com/avitalique/xk6-file@latest | ||
./k6 run -e env=<> -e tokengenuser=<> -e tokengenuserpwd=<> generate-tokens.js | ||
k6 run -e serviceowner=<> tax-report.js | ||
``` | ||
## Github actions | ||
### On push | ||
Runs a test for every push to the performance-loadtest/tax-report directory | ||
- one vu | ||
- one minute | ||
### Scheduled | ||
Runs every morning at 06:15 | ||
- 40 vus | ||
- 15 minutes | ||
### Ondemand | ||
Runs when requested | ||
- selectable number of vus | ||
- selectable duration | ||
- selectable runner | ||
|