You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone,
we are using gauge+taiko for E2E testing. I am currently wondering if it is possible to improve the output when a test fails. Most of the time, I do not see the corresponding line number in the test implementation where an exception occurs. This is probably due to the async handling.
Here is an example of an output from https://github.com/getgauge-examples/js-taiko
# API
## Combo Box ✔DEPRECATION WARNING: comboBox is deprecated, use dropDown to select from the options using value or text.
✔
## Check Box ✔ ✔
## Radio Button ✔ ✔
## Radio Button without for ✔ ✔
## Attach file ✔ ✔
## Text Field ✔[DEPRECATED] gauge.screenshotFn will be removed soon, use gauge.customScreenshotWriter instead.
✘
Failed Step: Text Field
Specification: specs/HTMLElementsAPI.spec:34
Error Message: Error: TypeError: this.focus is not a function
at Text.focusElement (<anonymous>:3:14)
Stacktrace:
Error: TypeError: this.focus is not a function
at Text.focusElement (<anonymous>:3:14)
at _focus (node_modules/taiko/lib/taiko.js:2741:11)
at async node_modules/taiko/lib/taiko.js:1036:9
at async doActionAwaitingNavigation (node_modules/taiko/lib/taiko.js:2642:5)
at async module.exports.focus (node_modules/taiko/lib/taiko.js:1034:5)
at async module.exports.<computed> (node_modules/taiko/lib/taiko.js:2899:20)
## Scroll ✔ ✔
## Alert ✔ ✔
Hi everyone,
we are using gauge+taiko for E2E testing. I am currently wondering if it is possible to improve the output when a test fails. Most of the time, I do not see the corresponding line number in the test implementation where an exception occurs. This is probably due to the async handling.
Here is an example of an output from https://github.com/getgauge-examples/js-taiko
As you can see, only the specification which failed is mentioned in the stacktrace, not the actual test implementation. I would expect to see a trace to this: https://github.com/getgauge-examples/js-taiko/blob/efab8b9703a834afff913308dd35496562360f5e/tests/step_implementation.js#L110
As this makes debugging tests much more difficult, any support on this would be highly appreciated.
Note that this is a possible duplicate to #184, but because this issue is over a year old I decided to raise a new one.
The text was updated successfully, but these errors were encountered: