-
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.
Merge pull request #58 from rabestro/poc/automation
Add counter increment and update conditions in HTTP requests
- Loading branch information
Showing
5 changed files
with
39 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@sut = actuator/translation-count | ||
|
||
### Read Translation Counter | ||
GET {{host}}/{{sut}} | ||
|
||
> {% | ||
const counter = parseInt(response.body.count + 5).toString(); | ||
client.global.set('counter', counter); | ||
%} | ||
|
||
### Set Translation Counter | ||
POST {{host}}/{{sut}} | ||
Content-Type: application/json | ||
|
||
{ | ||
"count": {{counter}} | ||
} |
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,8 +1,7 @@ | ||
# @disabled | ||
GET {{host}}/actuator/health | ||
|
||
?? status == 200 | ||
?? body status == UP | ||
?? body components.diskSpace.status == UP | ||
?? body components.diskSpace.details.total > 0 | ||
?? body components.diskSpace.details.free > 0 | ||
?? body components.diskSpace.details.total > 1 | ||
?? body components.diskSpace.details.free > 1 |
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
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,6 +1,5 @@ | ||
# @disabled | ||
{{host}}/actuator/translation-count | ||
|
||
?? status == 200 | ||
?? body count isNumber | ||
?? body count >= 0 | ||
?? body count > -1 |
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,17 @@ | ||
@sut = actuator/translation-count | ||
|
||
### Read Translation Counter | ||
# @name translationCounter | ||
GET {{host}}/{{sut}} | ||
|
||
{{ | ||
translationCounter.count += 5 | ||
}} | ||
|
||
### Set Translation Counter | ||
# @ref translationCounter | ||
|
||
POST {{host}}/{{sut}} | ||
Content-Type: application/json | ||
|
||
{{translationCounter}} |