当响应包含utf-8时,SOAPUI开源包含C-DATA标记

时间:2019-01-23 07:53:42

标签: soapui

我正在使用SOAPUI开源版本5.4.0来测试REST API。

我的要求如下:

> GET
> http://IP/test/APITest?request=getaccount&loginname=test&password=test&apiversion=1.4&sessionid=cWhQWk93V0ldJkG93J3BR6FwkAZhC%2FANVb%2FthhxCUYtlpdo3W6S3v3HZIJYFHGrHZDsW8653s71XLolQCsoVp6PHWaOUdULq%2F35BlQ1gK4uc5LNt4qFGMqAnIZj%2Bgxamunwi2rF12nC%2BkyKy1ClhQzHl0VuF8vKt9OQLMfnXnS1aQTrZOYXIm5PIVuwPiD4zBlKcRvfFCVRLVbGa9qUQ0ajdOiyivDhbsZGoYKC7Fns1rfVQtKu16UbCUI2yJOd3ou070IvZ4hGisJ6oyIbgr%2F6N8KiskHkhDf%2F0y3ZXnATEpoRuoLtY6QkaopbVUoW%2FnWnEqCRyTxPefBnJQ385047Dk2vnPfkAxO7Fp2dttqcarvp4v5MgNpbHsZNqGI9M809VgD3xOUHfHgE0BKB0TtQ2362Irt26wgB7YCqwd%2BIZcTBbxfpTeZeyDwY%2FwbgY52Dg3L1uffTBU8Ny5fR6iUUZI9Xe34BWMCwuiigopGBHZWQkuzRJiA%3D%3D&device=desktop&currency=CAD

接受以下响应:

> <?xml version="1.0" encoding="UTF-8" ?>   <RSP request="test" rc="0"> 
> </RSP>

但是,当响应获得编码=“ UTF-8”时,SOAPUI会将响应转换为

> <data contentType="application/xml; charset=utf-8"
> contentLength="381"><!   [CDATA[<?xml version="1.0" encoding="utf-8"?>
> <RSP request="test" rc="0">  </RSP>]]></data>

我不知道为什么要添加CDATA和其他附加内容,因此断言失败了

非常感谢您的帮助:)

0 个答案:

没有答案