Skip to content

Commit

Permalink
added readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
dagfinno committed Sep 30, 2024
1 parent 0c4c114 commit 2a72eba
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
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)
6 changes: 6 additions & 0 deletions performance-tests/README.md
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)
39 changes: 39 additions & 0 deletions performance-tests/tax-report/README.md
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

0 comments on commit 2a72eba

Please sign in to comment.