Postman: How to check whether the field is returning null in the Postman automation

后端 未结 10 991
借酒劲吻你
借酒劲吻你 2020-12-31 05:57

I have tried with \"!== null\", but it is returning PASS even when the field is returning 0 or \"\".

10条回答
  •  醉梦人生
    2020-12-31 06:25

    I faced similar issue. But checking it in following way worked for me

    tests["Item is not null"] = 
        jsonData.item !== undefined;
    

提交回复
热议问题