@@ -45,11 +45,12 @@ const _ = require('lodash'),
45
45
* @param {Execution } execution -
46
46
* @param {Function } onRequest -
47
47
* @param {Function } onAssertion -
48
+ * @param {Object } onConnection -
48
49
* @param {Object } cookieStore -
49
50
* @param {Object } [options] -
50
51
* @param {Array.<String> } [options.disabledAPIs] -
51
52
*/
52
- function Postman ( execution , onRequest , onAssertion , cookieStore , options = { } ) {
53
+ function Postman ( execution , onRequest , onAssertion , onConnection , cookieStore , options = { } ) {
53
54
// @todo - ensure runtime passes data in a scope format
54
55
let iterationData = new VariableScope ( ) ;
55
56
@@ -167,6 +168,8 @@ function Postman (execution, onRequest, onAssertion, cookieStore, options = {})
167
168
*/
168
169
response : execution . response ,
169
170
171
+ message : execution . message ,
172
+
170
173
/**
171
174
* The cookies object contains a list of cookies that are associated with the domain
172
175
* to which the request was made.
@@ -250,7 +253,9 @@ function Postman (execution, onRequest, onAssertion, cookieStore, options = {})
250
253
} ) ;
251
254
252
255
return self ;
253
- }
256
+ } ,
257
+
258
+ connection : onConnection
254
259
} , options . disabledAPIs ) ;
255
260
256
261
// extend pm api with test runner abilities
0 commit comments