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
/**
* Stores the value of the response field found by json path /
this.Then(/^(api) user stores the value '(.)' from response in variable (.*)$/, function(keyPath, name, callback) {
keyPath = helperCommon.getTreatedValue(keyPath);
var varName = helperCommon.getTreatedValue(name);
//get value from JSON using JSONPATH
jsonparser.init(trest.response.body);
var varValue = jsonparser.getValue(keyPath)[0];
// Add the value to variables
helperVars.addVariable(varName, varValue);
this.delayCallback(callback);
});
The text was updated successfully, but these errors were encountered:
vboldor
changed the title
Add method to store a variable from a response field found by xpath
Add method to store a variable from a response field found by json path
Jul 31, 2017
/**
* Stores the value of the response field found by json path
/
this.Then(/^(api) user stores the value '(.)' from response in variable (.*)$/, function(keyPath, name, callback) {
});
The text was updated successfully, but these errors were encountered: