美文网首页
十二天:接口测试入门

十二天:接口测试入门

作者: deji_Chen | 来源:发表于2018-10-30 17:27 被阅读0次

http协议

xml

<request>
    <customer>
        <customerName>chendj</customerName>
        <cstType>1</cusType>
        <headPortrait></headPortrait>
        <cert>342422200001010123</cert>
        <addr>上海</addr>
        <contactInfo>
            <phone>13111111111</phone>
            <weichat>sato</weichat>
            <qq>9642918</qq>
            <email>9642918@qq.com</email>
            <SpareContact>
                <name></name>
                <phone></phone>
            </SpareContact> 
        </contactInfo>  
    </customer>
</request>

json

{
  "request": {
    "parsererror": {
      "-style": "display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black",
      "h3": [
        "This page contains the following errors:",
        "Below is a rendering of the page up to the first error."
      ],
      "div": {
        "-style": "font-family:monospace;font-size:12px",
        "#text": "error on line 4 at column 24: Opening and ending tag mismatch: cstType line 0 and cusType
"
      }
    },
    "customer": { "customerName": "chendj" }
  }
}
xml和json可以在线转换

接口测试流程


接口规范类型

接口属性
接口属性

相关文章

网友评论

      本文标题:十二天:接口测试入门

      本文链接:https://www.haomeiwen.com/subject/ioogtqtx.html