Add hostname to simple test
This commit is contained in:
parent
90651ed6aa
commit
1b8787547e
2 changed files with 7 additions and 2 deletions
|
@ -9,7 +9,12 @@ dotnet run
|
|||
|
||||
Then in a seperate terminal window run the tests using the commands below.
|
||||
|
||||
I have added a HOSTNAME variable to each of the scripts (except simple-test.js) which needs to be added when running them.
|
||||
I have added a HOSTNAME variable to each of the scripts which needs to be added when running them.
|
||||
|
||||
## Simple Test
|
||||
```sh
|
||||
k6 run -e HOSTNAME=localhost:5157 tests/simple-test.js
|
||||
```
|
||||
|
||||
## Stress Test
|
||||
```sh
|
||||
|
|
|
@ -6,5 +6,5 @@ export const options = {
|
|||
};
|
||||
|
||||
export default () => {
|
||||
http.get('http://localhost:5157/age/1987-09-01');
|
||||
http.get(`http://${__ENV.HOSTNAME}/age/1987-09-01`);
|
||||
};
|
Loading…
Reference in a new issue