Skip to content

Commit da4bd88

Browse files
erkanntfcsonline
authored andcommitted
Extend documentation to better explain usage of with_items_range, shuffle, pick
1 parent 4dd9fd5 commit da4bd88

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,15 @@ plan:
169169
- 75
170170
shuffle: true
171171
pick: 1
172+
173+
- name: Three requests with random items from a range
174+
request:
175+
url: /api/users/{{ item }}
176+
with_items_range:
177+
start: 1
178+
stop: 1000
179+
shuffle: true
180+
pick: 3
172181
```
173182
174183
As you can see, you can play with interpolations in different ways. This

SYNTAX.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ All those three items can be combined with `name` property to be show in logs.
4646
- `method`: HTTP method in the requests. Valid methods are GET, POST, PUT, PATCH, HEAD or DELETE. (default: GET)
4747
- `body`: Request body for methods like POST, PUT or PATCH.
4848
- `with_items`: List of items to be interpolated in the given request url.
49-
- `with_items_range`: Generates items from an iterator from start, step, stop.
49+
- `with_items_range`: Generates items from an iterator from start, step (optional, default: 1), stop.
5050
- `with_items_from_csv`: Read the given CSV values and go through all of them as items.
51+
- `shuffle`: Shuffle given items randomly (default: false).
52+
- `pick`: Number of items to pick and perform requests with.
5153
- `assign`: Save the response in the context to be interpolated later.
5254
- `tags`: List of tags for that item.
5355

0 commit comments

Comments
 (0)