如何使用Chrome扩展应用postman发送SAP UI5 batch操作
There is a standard Gateway client tool ( transaction code /IWFND/GW_CLIENT ) which allows us to launch odata request without browser for testing purpose. And there is another approach which can achieve the same result without using SAPGUI, that is Chrome extension: postman.
For example, we are doing some test in Fiori application and we observe the following batch operation in Chrome network tab. We would like to do unit or performance testing on it with the help of postman.
How to create the batch operation in postman
Just copy the value you find in Chrome network tab from screenshot above to the postman based on the number.
now the request header part is done. We continue to copy all the text in request payload into clip-board. ( select all, ctrl + C )
Choose “raw” tab, then Ctrl + V all the payload text into the text area, and then click Send button. Unfortunately we get 403 error, due to the missing CSRF token.
How to get CSRF token
Just create another http request in postman, request method sets to GET, and http header x-csrf-token with value Fetch, send the request, and the token is available in response header.
Once done, paste this token into our previous batch request as http header value:
And send the batch request once again, this time it works:
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
相关文章
- 169. 使用 Chrome 开发者工具分析 SAP UI5 应用的 JavaScript 代码执行性能瓶颈
- 使用 Chrome 开发者工具分析 SAP UI5 应用的 JavaScript 代码执行性能瓶颈
- SAP UI5应用的sap-ui-core.js被加载之前,还有哪些js文件被加载了
- 使用代码修改SAP CRM附件的属性
- SAP document builder一些常见问题的解答
- 一个SAP应用的性能比较工具
- SAP web service开发工具SOAMANAGER里ping按钮的实现细节
- SAP ABAP DDICSAP ABAP DDIC table runtime object table runtime object
- SAP 电商云的 Spartacus Storefront 部署到 CCV2 的前提条件
- SAP Spartacus 启动时 Chrome 里观察到的 product.js
- 如何在移动设备上以开发模式访问SAP Spartacus
- SAP Spartacus的全局配置
- use case of SAP CRM WebClient UI ON_NEW_FOCUS method
- SAP UI5 应用开发教程之三十六 - 使用 Chrome 开发者工具 Elements 标签动态修改 CSS 类试读版
- SAP UI5 应用开发教程之三十一 - SAP UI5 的路由历史和路由回退(Routing back and history)试读版
- 如何在Chrome开发者工具里找出SAP Fiori frontend server的systen ID
- 8. SAP ABAP OData 服务如何支持创建(Create)操作