You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/data/markdown/translated-guides/en/02 Using k6/01 HTTP requests.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: 'HTTP Requests'
3
3
excerpt: 'Define the HTTP requests and methods you want to use. k6 adds tags to the requests, making it easier to filter results. You can customize tags as you wish.'
4
4
---
5
5
6
-
When you create a new load test, you'll often first define the HTTP requests that you will use to test your system.
6
+
When testers create new load test, the first step is often to define the HTTP requests to test the system with.
7
7
8
8
## Making HTTP Requests
9
9
Collapse file: src/data/markdown/translated-guides/en/02 Using k6/08 Tags and Groups.md
Copy file name to clipboardExpand all lines: src/data/markdown/translated-guides/en/02 Using k6/08 Tags and Groups.md
+16-12Lines changed: 16 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ filter your test results.'
7
7
A load test usually targets a service with different subsystems and resources.
8
8
This can make it hard to pinpoint the issues that are degrading performance.
9
9
10
-
k6 provides two scripting APIs to help you visualize, sort, and filter your test results.
10
+
To help you visualize, sort, and filter your test results, k6 adds the following to your results.
11
11
12
12
-*Tags* categorize your checks, thresholds, custom metrics, and requests for in-depth filtering.
13
13
-*Groups* apply tags to the script's functions.
@@ -23,10 +23,10 @@ Tags are a powerful way to categorize your k6 entities and filter test results.
23
23
24
24
k6 provides two types of tags:
25
25
26
-
-*System tags* are tags that k6 automatically assigns.
27
-
-*User-defined* tags are tags that you add when you write your script.
26
+
-**System tags.** Tags that k6 automatically assigns.
27
+
-**User-defined tags.** Tags that you add when you write your script.
28
28
29
-
## System tags
29
+
###System tags
30
30
31
31
Currently, k6 automatically creates the following tags by default:
32
32
@@ -47,9 +47,12 @@ Currently, k6 automatically creates the following tags by default:
47
47
|`service`| the RPC service name for gRPC |
48
48
|`expected_response`|`true` or `false` based on the [responseCallback](/javascript-api/k6-http/setresponsecallback/); by default checks whether the status is 2xx or 3xx |
49
49
50
-
To disable some of the above tags, you can use the [`systemTags` option](/using-k6/k6-options/reference/#system-tags).
51
-
Keep in mind that some data collectors (e.g. `cloud`) may require certain tags.
52
-
You can also enable some additional system tags if you need them:
50
+
To disable some of the preceding tags, use the [`systemTags` option](/using-k6/k6-options/reference/#system-tags).
51
+
Note that some data collectors, for example `cloud` runs, may require certain tags.
52
+
53
+
54
+
55
+
The following system tags are optional. You can enable them if you you need them:
@@ -60,7 +63,7 @@ You can also enable some additional system tags if you need them:
60
63
61
64
## User-defined tags
62
65
63
-
You can define your own tags to categorize k6 entities based on your test logic.
66
+
Define your own tags to categorize k6 entities based on your test logic.
64
67
You can tag the following entities:
65
68
66
69
- requests
@@ -166,9 +169,10 @@ export default function () {
166
169
167
170
## Tagging stages
168
171
169
-
Thanks to some helper functions in the [k6-jslib-utils](/javascript-api/jslib/utils) project, if an executor supports the `stages` option, then a tag can be added with the current ongoing stage. Similar to the other ways for tagging, the tag will be added to all the samples collected during the iteration.
172
+
Thanks to some helper functions in the [k6-jslib-utils](/javascript-api/jslib/utils) project, if an executor supports the `stages` option, you can add tags with the current ongoing stage.
173
+
Similar to other tags tag, the tag is added to all samples collected during the iteration.
170
174
171
-
The first way for tagging the executed operations is invoking the `tagWithCurrentStageIndex` function for setting a `stage` tag for identifying the stage that has executed them:
175
+
One way to tag the executed operations is to invoke the `tagWithCurrentStageIndex` function for setting a `stage` tag for identifying the stage that has executed them:
172
176
173
177
```javascript
174
178
importhttpfrom'k6/http';
@@ -219,7 +223,7 @@ The profile value based on the current stage can be one of the following options
219
223
|`steady`| The current stage has a target equal to the previous stage's target |
220
224
|`ramp-down`| The current stage has a target less than the previous stage's target |
@@ -258,7 +262,7 @@ To see how tags affect your test-result output, refer to the [k6 results output
258
262
259
263
## Groups
260
264
261
-
For extra organization, you can use *groups* to organize a load script by functions.
265
+
For extra organization, use *groups* to organize a load script by functions.
262
266
You can also nest groups for BDD-style testing.
263
267
264
268
All metrics emitted in a [group](/javascript-api/k6/group/) have the tag `group` with a value of all wrapping group names separated by `::` (two colons).
0 commit comments