api - 我想执行一个没有表单数据的 PUT 方法调用的 URI
问题描述
我正在尝试执行我的其余 API 脚本,其中没有使用表单数据。表示没有使用任何表单数据,仅执行了 URI,并将一个 TWF ID 添加到 URI。
public void test005_LoadRequest_Recall()
{
ValidatableResponse getResponse = expect().statusCode(HttpStatus.SC_OK)
.given()
.spec(requestSpecification)
.headers(getAuthData)
.when()
.put(MoneyRequestConfigEP.WORKFLOW+MoneyRequestConfigEP.RECALL+LoadRequestpojo.getTwf_id())
.then()
.spec(responseSpecification);
String msg = getResponse.extract().jsonPath().getString("res_str.");
softAssert.assertEquals(msg,"Resource was recalled successfully.", "the load is recalled");
请问有人可以提供解决方案吗?
解决方案
推荐阅读
- jms - 只读 JMS 主题订阅?(或在出队时保留 JMS 消息)
- javascript - 无法冻结 GridView 标头
- javascript - 如何设置 MUI 概述的 TextField 的边框?
- c - 互斥文件读取同步
- heroku - PWA 不根据 manifest.json 显示自定义图标(Heroku 上的 Node.js)
- webpack - Laravel Mix LESS 编译在 Google 字体导入时失败
- javascript - 在 Chrome 中,我如何设置一个 cookie 的 max-age 小于 213 天?
- asp.net - IIS Express localhost 对于第一个请求的加载速度非常慢
- linux - Visual Studio Code Python 调试器段错误
- javascript - 在 TypeScript 文件中使用 Google Script 类型注释变量(使用 clasp)