-
Notifications
You must be signed in to change notification settings - Fork 99
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
Test error trace is displayed even if the tests are passed successfully #55
Comments
I got almost the same results in json files (note: this is not displayed on console screen): "Error: Failed expectation\n
at [object Object].<anonymous>(C:\\xampp\\htdocs\\ttr\\_htrr\\tests\\e2e\\specs\\conditions.js:17:41)\n
at C:\\xampp\\htdocs\\ttr\\node_modules\\protractor\\node_modules\\jasminewd\\index.js:94:14\n
at [object Object].promise.ControlFlow.runInFrame_
(C:\\xampp\\htdocs\\ttr\\node_modules\\protractor\\node_modules\\selenium-webdriver\\lib\\webdriver\\promise.js:1877:20)\n
at [object Object].promise.ControlFlow.runEventLoop_ (C:\\xampp\\htdocs\\ttr\\node_modules\\protractor\\node_modules\\selenium-webdriver\\lib\\webdriver\\promise.js:1755:8)\n
at [object Object].<anonymous> (C:\\xampp\\htdocs\\ttr\\node_modules\\protractor\\node_modules\\selenium-webdriver\\lib\\webdriver\\promise.js:2056:12)\n
at [object Object].goog.async.run.processWorkQueue [as _onTimeout] (C:\\xampp\\htdocs\\ttr\\node_modules\\protractor\\node_modules\\selenium-webdriver\\lib\\goog\\async\\run.js:125:21)\n
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)"," Test passed, but trace isn't empty. "devDependencies": {
"chromedriver": "~2.8.0",
"grunt": "~0.4.2",
"grunt-contrib-clean": "~0.4.1",
"grunt-contrib-compass": "~0.2.0",
"grunt-contrib-concat": "~0.1.3",
"grunt-contrib-copy": "~0.5.0",
"grunt-contrib-jshint": "~0.3.0",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-contrib-yuidoc": "~0.4.0",
"grunt-css": "~0.5.4",
"grunt-ddescribe-iit": "0.0.6",
"grunt-html2js": "~0.2.4",
"grunt-hub": "~0.6.0",
"grunt-karma": "~0.8.3",
"grunt-protractor-runner": "^2.0.0",
"grunt-remove-logging": "~0.1.1",
"grunt-replace": "~0.4.2",
"grunt-sass": "~0.4.0",
"grunt-selenium-simple": "~0.1.1",
"install": "^0.1.8",
"jasmine-core": "^2.2.0",
"jasmine-spec-reporter": "^1.1.2",
"karma": "~0.12.19",
"karma-chrome-launcher": "~0.1.4",
"karma-firefox-launcher": "~0.1.3",
"karma-html-reporter": "^0.2.6",
"karma-jasmine": "^0.3.5",
"karma-phantomjs-launcher": "~0.1.4",
"karma-safari-launcher": "~0.1",
"karma-verbose-reporter": "0.0.1",
"npm": "^2.6.1",
"phantomjs": "~1.9.7",
"protractor": "^2.0.0",
"protractor-html-screenshot-reporter": "0.0.19",
"selenium": "~2.20.0"
} |
Got the same bug; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After tests run, in JSON response file an error trace is displayed, even if the tests are passed.
[{"description":"should have a title|The main view","passed":true,"os":"WIN8_1","browser":
{"name":"chrome","version":"42.0.2311.135"},
"message":"Passed.",
"trace":"Error: Failed expectation\n
at [object Object]. (...workspace\e2e\main.spec.js:12:36)\n
at ...workspace\node_modules\protractor\node_modules\jasminewd\index.js:94:14\n
at [object Object].webdriver.promise.ControlFlow.runInNewFrame_ (...workspace\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\promise.js:1654:20)\n
at [object Object].webdriver.promise.ControlFlow.runEventLoop_ (...workspace\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\promise.js:1518:8)\n
at [object Object].wrapper as _onTimeout\n
at Timer.listOnTimeout (timers.js:110:15)",
"screenShotFile":"chrome\should have a title-The main view.png"},
The text was updated successfully, but these errors were encountered: