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
If nightwatch execution runs into an uncaught exception the test results, which were collected so far, are dumped but test runner proceeds without dumping the test results at the end once again.
E.g. an uncaught exception can be reproduced by having a promise with syntax error executed.
Configuration
nightwatch.json
constchromedriver=require("chromedriver");constSCREENSHOT_PATH="./reports/screenshots/";module.exports={"src_folders": ["src/tests/"],"custom_assertions_path": "./src/lib/custom-assertions","output_folder": "./reports","globals_path": "./globalsModule.js","webdriver": {"start_process": true,"server_path": chromedriver.path,"port": 9515},"test_settings": {"default": {"launch_url": "https://localhost","skip_testcases_on_fail": false,"end_session_on_fail": false,"screenshots": {"enabled": true,// if you want to keep screenshots"path": SCREENSHOT_PATH,// save screenshots here"on_failure": true,"on_error": true},"desiredCapabilities": {// use Chrome as the default browser for tests"marionette": true,"javascriptEnabled": true,"acceptSslCerts": true,"acceptInsecureCerts": true},},"chrome": {extends: "default","disable_colors": true,"desiredCapabilities": {"browserName": "chrome","chromeOptions": {"w3c": false}}},"chrome.6": {extends: "chrome","page_objects_path": ["./src/pages/common","./src/pages/jazz/6061"]},"chrome.7": {extends: "chrome","page_objects_path": ["./src/pages/common","./src/pages/jazz/700"]},}}module.exports.SCREENSHOT_PATH=SCREENSHOT_PATH;
I can't reproduce this or it might also be that I don't understand the issue completely so please add a sample test and explain what "dumping" the test results means in this context.
Describe the bug
If nightwatch execution runs into an uncaught exception the test results, which were collected so far, are dumped but test runner proceeds without dumping the test results at the end once again.
E.g. an uncaught exception can be reproduced by having a promise with syntax error executed.
Configuration
nightwatch.json
Your Environment
| Executable | Version |
|
node_modules\.bin\nightwatch --version
| 1.5.1 ||
npm --version
| 6.13.4 ||
yarn --version
| 1.22.5 ||
node --version
| 12.14.0 || Browser driver | Version |
| chromedriver | 87.0.5 |
| selenium-server | 3.141 |
| OS | Version |
| Windows 10 | 1607 |
The text was updated successfully, but these errors were encountered: