我的邮递员脚本测试中有以下断言,但是由于某些原因,如果缺少以下条件之一,则测试将失败:租借,财务或现金在我的响应正文中。是“ ||” 不是OR运算符?
tests [“交易类型”] = responseBody.has(“租赁” ||“财务” ||“现金”);
根据邮递员文档,正确的语法是
tests["Deal Type"] = responseBody.has("Lease") || responseBody.has("Finance") || responseBody.has("Cash");