Testing 邮差测试';响应体包含字符串';不起作用
为了缩小问题的范围,我将响应主体更改为一个简单的句子,如text/plainTesting 邮差测试';响应体包含字符串';不起作用,testing,postman,Testing,Postman,为了缩小问题的范围,我将响应主体更改为一个简单的句子,如text/plain this is a test 但是,以下非常基本的功能仍然失败: tests["Body matches string"] = responseBody.has("this"); 具有讽刺意味的是,这种测试有效: tests["Body matches string"] = responseBody.has("t"); 我使用的是最新的postman v4.11.1。这看起来像是邮递员的一个基本缺
this is a test
但是,以下非常基本的功能仍然失败:
tests["Body matches string"] = responseBody.has("this");
具有讽刺意味的是,这种测试有效:
tests["Body matches string"] = responseBody.has("t");
我使用的是最新的postman v4.11.1。这看起来像是邮递员的一个基本缺陷。事实证明邮递员不支持unicode。如果我把编码改为utf-8,一切都会很好地工作