artes 1.0.64 → 1.0.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js
CHANGED
|
@@ -11,6 +11,7 @@ const {
|
|
|
11
11
|
page,
|
|
12
12
|
request,
|
|
13
13
|
random,
|
|
14
|
+
resolveVariable
|
|
14
15
|
} = require("./src/helper/imports/commons");
|
|
15
16
|
const {
|
|
16
17
|
keyboard,
|
|
@@ -30,6 +31,7 @@ module.exports = {
|
|
|
30
31
|
selector,
|
|
31
32
|
saveVar,
|
|
32
33
|
extractVarsFromResponse,
|
|
34
|
+
resolveVariable,
|
|
33
35
|
context,
|
|
34
36
|
api,
|
|
35
37
|
random,
|
package/package.json
CHANGED
|
@@ -86,7 +86,7 @@ class Elements {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
static extractVarsFromResponse(vars, customVarName) {
|
|
89
|
-
const responseBody = context.response
|
|
89
|
+
const responseBody = context.response["Response Body"];
|
|
90
90
|
|
|
91
91
|
function getValueByPath(obj, path) {
|
|
92
92
|
const keys = path.split(".");
|
|
@@ -180,7 +180,7 @@ When("User wants to see request body", async function () {
|
|
|
180
180
|
});
|
|
181
181
|
|
|
182
182
|
When("User wants to see response body", async function () {
|
|
183
|
-
console.log("
|
|
183
|
+
console.log("Response Body: ", context.response["Response Body"]);
|
|
184
184
|
});
|
|
185
185
|
|
|
186
186
|
When(
|