In the cucumber console it returns the string relative to the block that goes into error but with an error...
Often when there is a failure in the test, in the cucumber console it returns as failed a string relative to a "When" block that works correctly, while in the description of the error, a reference is made to an error on a different point of the code with respect to the relative string to the indicated block:
× When I look at the summary after the product # definitionsnode_modulescucumbersrcsupport_code_library_builderdefine_helpers.js:90
AssertionError: expected 'https://www.mgmysite.com/products/797-396aa93696ce' to include 'WU '
The string error is related to a check, the description is related to another check. Why? What can I do to solve this problem?
Thank you for your help.
javascript console protractor cucumber
add a comment |
Often when there is a failure in the test, in the cucumber console it returns as failed a string relative to a "When" block that works correctly, while in the description of the error, a reference is made to an error on a different point of the code with respect to the relative string to the indicated block:
× When I look at the summary after the product # definitionsnode_modulescucumbersrcsupport_code_library_builderdefine_helpers.js:90
AssertionError: expected 'https://www.mgmysite.com/products/797-396aa93696ce' to include 'WU '
The string error is related to a check, the description is related to another check. Why? What can I do to solve this problem?
Thank you for your help.
javascript console protractor cucumber
Post code, what you have so far. where it breaks.
– ASPiRE
Nov 15 '18 at 13:55
@ASPiRE Hi, thank you for your answer. I know which is the problem related to the errors and this is a bug of the site so I don't have to fix this. But I don't understand why in console is shown as failed not the string related to the block where there is the error, but another block that never fails is shown as failed
– Spicchio
Nov 15 '18 at 14:01
add a comment |
Often when there is a failure in the test, in the cucumber console it returns as failed a string relative to a "When" block that works correctly, while in the description of the error, a reference is made to an error on a different point of the code with respect to the relative string to the indicated block:
× When I look at the summary after the product # definitionsnode_modulescucumbersrcsupport_code_library_builderdefine_helpers.js:90
AssertionError: expected 'https://www.mgmysite.com/products/797-396aa93696ce' to include 'WU '
The string error is related to a check, the description is related to another check. Why? What can I do to solve this problem?
Thank you for your help.
javascript console protractor cucumber
Often when there is a failure in the test, in the cucumber console it returns as failed a string relative to a "When" block that works correctly, while in the description of the error, a reference is made to an error on a different point of the code with respect to the relative string to the indicated block:
× When I look at the summary after the product # definitionsnode_modulescucumbersrcsupport_code_library_builderdefine_helpers.js:90
AssertionError: expected 'https://www.mgmysite.com/products/797-396aa93696ce' to include 'WU '
The string error is related to a check, the description is related to another check. Why? What can I do to solve this problem?
Thank you for your help.
javascript console protractor cucumber
javascript console protractor cucumber
edited Nov 15 '18 at 14:57
Ankur Chrungoo
60839
60839
asked Nov 15 '18 at 13:53
SpicchioSpicchio
577
577
Post code, what you have so far. where it breaks.
– ASPiRE
Nov 15 '18 at 13:55
@ASPiRE Hi, thank you for your answer. I know which is the problem related to the errors and this is a bug of the site so I don't have to fix this. But I don't understand why in console is shown as failed not the string related to the block where there is the error, but another block that never fails is shown as failed
– Spicchio
Nov 15 '18 at 14:01
add a comment |
Post code, what you have so far. where it breaks.
– ASPiRE
Nov 15 '18 at 13:55
@ASPiRE Hi, thank you for your answer. I know which is the problem related to the errors and this is a bug of the site so I don't have to fix this. But I don't understand why in console is shown as failed not the string related to the block where there is the error, but another block that never fails is shown as failed
– Spicchio
Nov 15 '18 at 14:01
Post code, what you have so far. where it breaks.
– ASPiRE
Nov 15 '18 at 13:55
Post code, what you have so far. where it breaks.
– ASPiRE
Nov 15 '18 at 13:55
@ASPiRE Hi, thank you for your answer. I know which is the problem related to the errors and this is a bug of the site so I don't have to fix this. But I don't understand why in console is shown as failed not the string related to the block where there is the error, but another block that never fails is shown as failed
– Spicchio
Nov 15 '18 at 14:01
@ASPiRE Hi, thank you for your answer. I know which is the problem related to the errors and this is a bug of the site so I don't have to fix this. But I don't understand why in console is shown as failed not the string related to the block where there is the error, but another block that never fails is shown as failed
– Spicchio
Nov 15 '18 at 14:01
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53321015%2fin-the-cucumber-console-it-returns-the-string-relative-to-the-block-that-goes-in%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53321015%2fin-the-cucumber-console-it-returns-the-string-relative-to-the-block-that-goes-in%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Post code, what you have so far. where it breaks.
– ASPiRE
Nov 15 '18 at 13:55
@ASPiRE Hi, thank you for your answer. I know which is the problem related to the errors and this is a bug of the site so I don't have to fix this. But I don't understand why in console is shown as failed not the string related to the block where there is the error, but another block that never fails is shown as failed
– Spicchio
Nov 15 '18 at 14:01