首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >如何使用Chrome扩展应用postman发送SAP UI5 batch操作

如何使用Chrome扩展应用postman发送SAP UI5 batch操作

作者头像
Jerry Wang
发布2020-08-10 10:55:29
4200
发布2020-08-10 10:55:29
举报

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:

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-08-09 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • How to create the batch operation in postman
  • How to get CSRF token
相关产品与服务
批量计算
批量计算(BatchCompute,Batch)是为有大数据计算业务的企业、科研单位等提供高性价比且易用的计算服务。批量计算 Batch 可以根据用户提供的批处理规模,智能地管理作业和调动其所需的最佳资源。有了 Batch 的帮助,您可以将精力集中在如何分析和处理数据结果上。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档