diff options
Diffstat (limited to 'workflow-bdd/stepDefinitions/General_Steps.js')
-rw-r--r-- | workflow-bdd/stepDefinitions/General_Steps.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/workflow-bdd/stepDefinitions/General_Steps.js b/workflow-bdd/stepDefinitions/General_Steps.js index 69a703cc..5968d406 100644 --- a/workflow-bdd/stepDefinitions/General_Steps.js +++ b/workflow-bdd/stepDefinitions/General_Steps.js @@ -81,6 +81,16 @@ Then('I want to set property {string} to value {string}', function(string, strin }); /** + * @module ContextData + * @description sets context property to a random value + * @exampleFile Example_Rest_Calls.feature + * @step I want to update the input property {string} with a random value + **/ +Then('I want to set property {string} with a random value', function (string) { + _.set(this.context, string, util.random()); +}); + +/** * @module ResponseData * @description Will check the output data for a property and a value. property can be a path (example: results[0].id) * @exampleFile ResponseDataChecks.feature |