protractor测试Angular出现的问题

cdf005 2019-04-22 01:26:30
运行protractor后出现以下信息,请问是什么原因


C:\145-nsrmigration\08 ソース管理\0802 作業ソース\source\e2e>protractor
[13:07:20] I/launcher - Running 1 instances of WebDriver
[13:07:20] I/direct - Using ChromeDriver directly...

DevTools listening on ws://127.0.0.1:58572/devtools/browser/b74b3f86-b400-4207-884f-99b60c315303
Jasmine started

workspace-project App
× should display welcome message
- Expected 'ログイン画面' to equal 'Welcome to nec-ng-appf!'.
at UserContext.<anonymous> (C:\145-nsrmigration\08 ソース管理\0802 作業ソース\source\e2e\src\app.e2e-spec.ts:12:37)
at new ManagedPromise (C:\Users\win10-vm\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1077:7)
at ControlFlow.promise (C:\Users\win10-vm\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2505:12)
at TaskQueue.execute_ (C:\Users\win10-vm\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:3084:14)
at TaskQueue.executeNext_ (C:\Users\win10-vm\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:3067:27)
at asyncRun (C:\Users\win10-vm\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2974:25)
at C:\Users\win10-vm\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:668:7

**************************************************
* Failures *
**************************************************

1) workspace-project App should display welcome message
- Expected 'ログイン画面' to equal 'Welcome to nec-ng-appf!'.

Executed 1 of 1 spec (1 FAILED) in 4 secs.
E2E finished - retrieving coverage from browser
Coverage file extracted from server and saved to coverage.json
[13:07:30] I/launcher - 0 instance(s) of WebDriver still running
[13:07:30] I/launcher - chrome #01 failed 1 test(s)
[13:07:30] I/launcher - overall: 1 failed spec(s)
[13:07:30] E/launcher - Process exited with error code 1
...全文
15 点赞 收藏 回复
写回复
回复
切换为时间正序
请发表友善的回复…
发表回复

还没有回复,快来抢沙发~

发帖
其他
创建于2009-10-09

222

社区成员

其他产品/厂家
申请成为版主
帖子事件
创建了帖子
2019-04-22 01:26
社区公告
暂无公告