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: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,9 +32,9 @@ The `utils` functions are logically grouped in nested classes (namespaces) and i
32
32
## Folder level functions
33
33
Use folder level functions to run test or pre-request code attached to test collection folders (not request scripts). Folder level functions are grouped under the `utils.run` namespace and include:
34
34
*[utils.run.once](#utilsrunonce):
35
-
Invokes code in the specified custom inline function once per collection test run.
35
+
Invokes code in the specified custom inline function once per test collection run.
36
36
*[utils.run.always](#utilsrunalways):
37
-
Invokes code in the specified custom inline function for every request during collection test run.
37
+
Invokes code in the specified custom inline function for every request during test collection run.
38
38
39
39
### Parameters
40
40
The following parameters are common to all folder level functions:
@@ -49,7 +49,7 @@ Inline function containing the code to be executed once or always.
49
49
Optional function containing code to be executed on error in the `process` function.
50
50
51
51
### `utils.run.once`
52
-
Invokes code in the specified custom inline function once per collection test run.
52
+
Invokes code in the specified custom inline function once per test collection run.
53
53
54
54
#### Prototype
55
55
```JavaScript
@@ -60,14 +60,14 @@ Initialize settings for the test collection run in the collection folder's pre-r
console.log("This code will be executed once in the begining of the collection test run.");
63
+
console.log("This code will be executed once in the begining of the test collection run.");
64
64
}, function() {
65
65
console.log("This code will be executed if an error occurs in code above.");
66
66
});
67
67
```
68
68
69
69
### `utils.run.always`
70
-
Invokes code in the specified custom inline function for every request during collection test run.
70
+
Invokes code in the specified custom inline function for every request during test collection run.
71
71
72
72
#### Prototype
73
73
```JavaScript
@@ -597,7 +597,7 @@ Trace functions belong to the `utils.trace` namespace and are divided into two g
597
597
*[Trace logging](#trace-logging)
598
598
599
599
### Trace initialization
600
-
To set the trace level (which will be stored in an environment variable for the duration of the collection test run), call one of the trace initialization functions from the test collection's pre-request folder (you only need to do this once). Trace initialization functions belong to the `utils.trace.set` namespace and include:
600
+
To set the trace level (which will be stored in an environment variable for the duration of the test collection run), call one of the trace initialization functions from the test collection's pre-request folder (you only need to do this once). Trace initialization functions belong to the `utils.trace.set` namespace and include:
0 commit comments