美文网首页
2018-10-30接口测试入门

2018-10-30接口测试入门

作者: 雁_9587 | 来源:发表于2018-10-30 18:15 被阅读0次

符号描述

符号  含义
 ?  0..1,可选项
*   0..n,可以没有,也可以有多项
+   1..n,至少有1项,也可以有多项
1   数字1,代表必须且只能填1项

表格中关于数据长度的描述:
Fx表示数据是指定x位长的。
Vx表示数据是变长的,最长为x位长。

xml转json

image.png image.png image.png image.png

接口测试流程

image.png

注册

image.png

通配

image.png

<request>
<customer>
<customerName>guhy</customerName>
<cstType>1</cstType>
<headportrait></headportrait>
<cert>31022919990628</cert>
<addr></addr>
<contactInfo>
<phone>111212312</phone>
<weichat>1607695655</weichat>
<qq></qq>
<email></email>
<SpareContact>
<name>顾虹雁</name>
<phone>18814540575</phone>
<SpareContact>
</contactInfo>
</customer>
</request>

键值对

  • 键值对 key=value
  • 字段名=字段值 连接符 && and符
  • userName=用户名&realName=真实姓名&password=密码
    &password2=确认密码&checkCode=校验码&weixin=微信
    &address=户籍地

http协议

image.png

响应

image.png

常见响应状态码

image.png

测试依据 接口规范

image.png

Word

image.png

swagger

image.png

接口测试流程

相关文章

网友评论

      本文标题:2018-10-30接口测试入门

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