Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

junit report does not include the failed assertion information #873

Closed
IndraniBiswas opened this issue Feb 24, 2016 · 0 comments
Closed
Labels

Comments

@IndraniBiswas
Copy link

see below example where junit report is missing "Expected "/abc.*Sig In/" but got: "abc.com Sign In"

from console logs :
✔ Expected element <#ap_email> to be visible in 15000ms - condition was met in 1642ms
✖ Testing if the URL match the regex "abc._Sig In". - expected "/abc._Sig In/" but got: abc.com Sign In
at Object.verifyTitle (/usr/local/lib/node_modules/nightwatch/lib/page-object/command-wrapper.js:103:25)
at Object.exports.command (/Users/indrani/uitest/src/WebPlayerTests/commands/doLogin.js:22:26)
at Object.F.command (/usr/local/lib/node_modules/nightwatch/lib/core/api.js:274:31)
at Object.commandFn (/usr/local/lib/node_modules/nightwatch/lib/core/api.js:287:24)
at AsyncTree.runCommand (/usr/local/lib/node_modules/nightwatch/lib/core/queue.js:159:30)
at AsyncTree.runChildNode (/usr/local/lib/node_modules/nightwatch/lib/core/queue.js:119:8)
at AsyncTree.walkDown (/usr/local/lib/node_modules/nightwatch/lib/core/queue.js:85:10)
at AsyncTree.traverse (/usr/local/lib/node_modules/nightwatch/lib/core/queue.js:73:10)
at queueRunner as run

FAILED: 1 assertions failed and 1 passed (5.438s)
Closing down...


TEST FAILURE: 1 assertions failed, 1 passed (5.649s)
✖ loginTest

  • Verify login with valid existing user is successful
    Testing if the URL match the regex "Amazon._Sig In". - Expected "/abc._Sig In/" but got: "abc.com Sign In"

from junit xml report :
at Object.verifyTitle (/usr/local/lib/node_modules/nightwatch/lib/page-object/command-wrapper.js:103:25)
at Object.exports.command (/Users/indrani/uitest/src/WebPlayerTests/commands/doLogin.js:22:26)
at Object.F.command (/usr/local/lib/node_modules/nightwatch/lib/core/api.js:274:31)
at Object.commandFn (/usr/local/lib/node_modules/nightwatch/lib/core/api.js:287:24)
at AsyncTree.runCommand (/usr/local/lib/node_modules/nightwatch/lib/core/queue.js:159:30)
at AsyncTree.runChildNode (/usr/local/lib/node_modules/nightwatch/lib/core/queue.js:119:8)
at AsyncTree.walkDown (/usr/local/lib/node_modules/nightwatch/lib/core/queue.js:85:10)
at AsyncTree.traverse (/usr/local/lib/node_modules/nightwatch/lib/core/queue.js:73:10)
at queueRunner as run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants