Check POST request payload data with Protractor

扶醉桌前 提交于 2019-12-03 16:59:15

Following @Andres D's comment: yes, there is a misconception here.

protractor is a tool that helps you mimic real-user interactions with a page by automating a real browser. It stays on the high-level, sees what a normal user can see - click buttons, fills out inputs etc.

In other words, it is a black box testing, it doesn't matter where is data coming from, which protocol used to transfer it or how many external js files your page requires to be loaded - these are all technical details that should checked and tested separately.


FYI, there is a relevant tool called protractor-http-mock that can help you in testing corner cases allowing to replace the server responses with custom defined.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!