diff options
Diffstat (limited to 'openecomp-bdd/stepDefinitions/General_Steps.js')
-rw-r--r-- | openecomp-bdd/stepDefinitions/General_Steps.js | 12 |
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). |