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
Use primary test functions to initialize and execute tests. Primary test functions are grouped under the `utils.test` namespace and include:
90
90
*[utils.test.initialize](#utilstestinitialize):
91
-
Use to initialize request data in the pre-request script.
91
+
Use to initialize request data in pre-request scripts.
92
92
*[utils.test.positive](#utilstestpositive):
93
-
Use to execute a positive test.
93
+
Use to execute positive tests.
94
94
*[utils.test.negative](#utilstestnegative):
95
-
Use to execute a negative test.
95
+
Use to execute negative tests.
96
96
*[utils.test.neutral](#utilstestneutral):
97
97
Use if you need to execute additional tests that must run separately from the primary (positive or negative) test defined for a request.
98
98
@@ -109,7 +109,7 @@ Inline function containing the code to be executed (this function is optional fo
109
109
The optional error handler that can be handy if you need to implement special logic (like stopping test execution or skipping to a specific test) on operation failure in the default or custom `process` function.
110
110
111
111
### `utils.test.initialize`
112
-
Use this function to initialize request data in the pre-request script.
112
+
Use to initialize request data in pre-request scripts.
Use this function to run a negative tests. By default, it will check the response's HTTP status code against the specified value. If the returned HTTP status code matches the expected value, this function will call additional custom code if one is specified via the `process` parameter.
129
+
Use to run negative tests. By default, it will check the response's HTTP status code against the specified value. If the returned HTTP status code matches the expected value, this function will call additional custom code if one is specified via the `process` parameter.
Use this function to run negative tests. By default, it will check the response's HTTP status code against the specified value. If the returned HTTP status code matches the expected value, this function will also check the value of the `serviceCode` (or similar) property defined in the data object returned in HTTP response. You can also add additional checks in the custom code defined in the `process` parameter.
168
+
Use to run negative tests. By default, it will check the response's HTTP status code against the specified value. If the returned HTTP status code matches the expected value, this function will also check the value of the `serviceCode` (or similar) property defined in the data object returned in HTTP response. You can also add additional checks in the custom code defined in the `process` parameter.
0 commit comments