当前位置:网站首页>使用 Postman 工具高效管理和测试 SAP ABAP OData 服务的试读版
使用 Postman 工具高效管理和测试 SAP ABAP OData 服务的试读版
2022-07-31 15:55:00 【汪子熙】
正如本教程的开篇介绍文章SAP OData 开发教程 - 从入门到提高(包含 SEGW, RAP 和 CDP)所提到的,SAP OData 服务开发,从实现技术上来说,可以分为三大类。因此本教程也分为三大部分,分别进行介绍。本文是本教程的文章目录。
作者简介
Jerry Wang,2007 年从电子科技大学计算机专业硕士毕业后加入 SAP 成都研究院工作至今。Jerry 是 SAP 社区导师,SAP 中国技术大使。在长达 15 年的 SAP 标准产品开发生涯里,Jerry 曾经先后参与 SAP Business ByDesign, SAP CRM, SAP Cloud for Customer, SAP S/4HANA, SAP Commerce Cloud(电商云)等标准产品的研发工作。
Jerry 对 SAP OData 服务的开发,测试,发布,部署,测试,及基于各种不同 SAP 技术实现的 OData 服务的幕后技术实现细节和使用场合,均有着深入的研究。

基于 SEGW - Gateway Service Builder 的开发教程
使用 Restful ABAP Programming 编程模型(简称 RAP) 开发 OData 服务
- 正在写作中,敬请期待
使用 SAP Cloud Application Programming 编程模型开发 OData 服务
- 正在写作中,敬请期待
序言
本文介绍了 Postman 这个强大的 API 测试工具。当我们待测试的 SAP ABAP OData 服务需要通过 user Authentication 验证才能使用时,可以通过手动在 Postman HTTP 请求字段里添加 Authorization 信息,或者直接使用 Postman 的 auth 认证功能。同时还介绍了 Postman Environment 和 Variable 的使用方法,来维护与具体系统无关的 Postman 请求。
本教程之前的五篇文章,我们已经在事物码 SEGW 里完成了一个图书管理 OData 服务模型的创建,然后配置和部署到 ABAP 系统上。这个 OData 服务目前已经实现了下面三个基本的功能:
- 成功返回元数据
- 成功返回系统所有的图书数据
- 支持 OData 协议的 $filter 操作,根据传入的 book_id, 返回该 id 代表的图书数据
这三个功能,对应在 SAP ABAP Gateway Client(事物码 /IWFND/GW_CLIENT) 里的 url,分别为:
- /sap/opu/odata/sap/ZBOOK_MANAGE_SRV/$metadata
- /sap/opu/odata/sap/ZBOOK_MANAGE_SRV/BookCollection
- /sap/opu/odata/sap/ZBOOK_MANAGE_SRV/BookCollection?$filter=book_id eq ‘1001’
随着我们本教程学习的深入,我们使用的 url 会越来越多。因为 SAP ABAP Gateway Client 这个工具,在管理大量 url 的时候效率不高,因此我们有必要切换成另一个工具,这个工具要能够像 Gateway Client 一样能够发送 OData 请求的同时,还能够高效管理不同的 OData 请求的 Url.
笔者在实际工作中,使用的是 Postman.
本文会详细介绍如何使用 Postman 的 Collection,Environment 和 Variable 等概念,高效管理 SAP ABAP OData 服务的诸多请求。



边栏推荐
- How does automated testing create business value?
- npm安装时卡在sill idealTree buildDeps,npm安装速度慢,npm安装卡在一个地方不动
- MySQL基础篇【单行函数】
- Qt practical cases (54) - using transparency QPixmap design pictures
- 数据表插入数据insert into
- Grafana安装后web打开报错
- Premiere Pro 2022 for (pr 2022)v22.5.0
- 网银被盗?这篇文章告诉你如何安全使用网银
- MySQL数据库操作
- form 表单提交后,使页面不跳转[通俗易懂]
猜你喜欢

2022年整理LeetCode最新刷题攻略分享(附中文详细题解)

Getting Started with TextBlock Control Basic Tools Usage, Get Started

【7.29】代码源 - 【排列】【石子游戏 II】【Cow and Snacks】【最小生成数】【数列】

全新宝马3系上市,安全、舒适一个不落
![[MySQL] Mysql paradigm and the role of foreign keys](/img/9d/a4295de26683d7bca2b8e9d14f754b.png)
[MySQL] Mysql paradigm and the role of foreign keys

T - sne + data visualization parts of the network parameters

i.MX6ULL驱动开发 | 33 - NXP原厂网络设备驱动浅读(LAN8720 PHY)

对话庄表伟:开源第一课

定时器的类型

How to switch remote server in gerrit
随机推荐
2020 WeChat applet decompilation tutorial (can applet decompile source code be used)
腾讯云部署----DevOps
Graham's Scan method for solving convex hull problems
Oracle dynamically registers non-1521 ports
Doing things software development - the importance of law and understanding of reasonable conclusions
MySQL基础篇【单行函数】
7、常见面试口语提问问题汇总
Qt实战案例(54)——利用QPixmap设计图片透明度
小程序:matlab解微分方程「建议收藏」
对话庄表伟:开源第一课
深度学习机器学习理论及应用实战-必备知识点整理分享
[Meetup Preview] OpenMLDB+OneFlow: Link feature engineering to model training to accelerate machine learning model development
Precautions and solutions when SIGABRT error is reported
"Autumn Recruitment Series" MySQL Interview Core 25 Questions (with answers)
After the form is submitted, the page does not jump [easy to understand]
ML.NET相关资源整理
org.apache.jasperException(could not initialize class org)
i.MX6ULL驱动开发 | 33 - NXP原厂网络设备驱动浅读(LAN8720 PHY)
在资源管理类中提供对原始资源的访问——条款15
C language "the third is" upgrade (mode selection + AI chess)