小编Cri*_*ata的帖子

如何用空手道进行软断言?

我有一个功能使用其他两个功能,如下所示:

When call read(ser.getCarList) headers
When call read(ser.getTaxes) headers
Run Code Online (Sandbox Code Playgroud)

所以第一个特征 getCarList 有两个验证

When method Get
 * configure continueOnStepFailure = true
Then status 200
And match response = read ('this:getCarAssertion')
 * configure continueOnStepFailure = true
Run Code Online (Sandbox Code Playgroud)

我尝试过使用 new 关键字,但是当我收到状态代码 200 但响应错误时,下一个功能 getTaxes 不会继续执行

karate

1
推荐指数
1
解决办法
1314
查看次数

标签 统计

karate ×1