From ff78ef472f8e481afb39f24a1d37737ef8dfab60 Mon Sep 17 00:00:00 2001 From: talig Date: Thu, 9 Aug 2018 13:13:23 +0300 Subject: Add activity spec code Move code from sdc repository and: 1. place according to this project structure 2. refactor DTOs and use mapstruct 3. change errorResponse to be a json instead of a string (for all workflow code) Change-Id: Ia85590b53ab59ff7600e05b8a6d52e06b1773220 Issue-ID: SDC-1606 Signed-off-by: talig --- workflow-bdd/stepDefinitions/General_Steps.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'workflow-bdd/stepDefinitions/General_Steps.js') 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 @@ -80,6 +80,16 @@ Then('I want to set property {string} to value {string}', function(string, strin _.set(this.context, string, string2); }); +/** + * @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) -- cgit 1.2.3-korg