aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-bdd/stepDefinitions/General_Steps.js
diff options
context:
space:
mode:
authortalig <talig@amdocs.com>2018-08-09 13:13:23 +0300
committertalig <talig@amdocs.com>2018-08-09 13:13:23 +0300
commitff78ef472f8e481afb39f24a1d37737ef8dfab60 (patch)
tree2116f2cbc63de2bf82dbf358dbf16268a900a2d0 /workflow-bdd/stepDefinitions/General_Steps.js
parent923910109f7796aca1263df1a7fa13f7d6bc072c (diff)
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 <talig@amdocs.com>
Diffstat (limited to 'workflow-bdd/stepDefinitions/General_Steps.js')
-rw-r--r--workflow-bdd/stepDefinitions/General_Steps.js10
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