邮递员测试链接post请求结果以获取请求uri参数

时间:2021-07-09 07:59:04

标签: api postman-collection-runner postman-testcase

我必须为以下请求编写邮递员测试。

  1. 发布 {{url}}/{{version}}/Customers 将返回包含 customerId 的客户对象

  2. 获取 {{url}}/{{version}}/Customers/{{customerId}}

所以我需要按照上面的顺序运行两个请求

因此,当创建客户时,然后分配 {{customerId}} 以便 Get 请求将返回新的客户 ID。

是否可以将结果(customerId)发布请求链接到获取请求

0 个答案:

没有答案