【发布时间】:2018-02-28 01:35:24
【问题描述】:
我在邮递员中定义了一个全局变量,我正在发出一个帖子请求。我想知道响应是否包含我在全局变量中设置的值。
pm.test("Body matches string", function () {
pm.expect(pm.response.text()).to.include({{sample_message}});
});
sample_message是全局变量
如何比较??提前致谢
【问题讨论】:
标签: javascript postman