summaryrefslogtreecommitdiffstats
path: root/openecomp-bdd/stepDefinitions/General_Steps.js
diff options
context:
space:
mode:
authorayalaben <Ayala.Benzvi@Amdocs.Com>2018-02-18 10:03:22 +0200
committerayalaben <ayala.benzvi@amdocs.com>2018-02-18 10:03:22 +0200
commitaad2781298db9c48ef4be167709b905af39bf9e4 (patch)
tree76d1e2ea2c6827d8d31de7bc5faaded2a2cf62f6 /openecomp-bdd/stepDefinitions/General_Steps.js
parent7866faac17505ef230f4e01c487a0b72621ee409 (diff)
Flow Tests - delete item and Toggle
Change-Id: I73ed5fdc13891b3ad56ab5c8f00083bf8f7d13f3 Issue-ID: SDC-1034 Signed-off-by: ayalaben <ayala.benzvi@amdocs.com>
Diffstat (limited to 'openecomp-bdd/stepDefinitions/General_Steps.js')
-rw-r--r--openecomp-bdd/stepDefinitions/General_Steps.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/openecomp-bdd/stepDefinitions/General_Steps.js b/openecomp-bdd/stepDefinitions/General_Steps.js
index 389112da84..bf35cb8499 100644
--- a/openecomp-bdd/stepDefinitions/General_Steps.js
+++ b/openecomp-bdd/stepDefinitions/General_Steps.js
@@ -172,6 +172,18 @@ Then('I want the following to fail with error code {string}', function(string)
this.context.errorCode = string;
});
+
+/**
+ * @module ContextData
+ * @description Set this in order to check that the following Rest call will have the error message on the return data
+ * @exampleFile DeleteVLMCertified.feature
+ * @step I want the following to fail with error message {string}
+ **/
+Then('I want the following to fail with error message {string}', function(string) {
+ this.context.shouldFail = true;
+ this.context.errorMessage = string;
+});
+
/**
* @module ZipData
* @description Use this in order to extract a file from a zip file and to compare it to a local file (string comparison).