51Testing软件测试论坛
标题:
保险接口测试工具
[打印本页]
作者:
sky216
时间:
2017-5-23 18:15
标题:
保险接口测试工具
最近公司要合作一款保险产品,大大给了我报文,让我整理用例
请求数据如下
{
"CwHeader": {
"tradeCode": "CwUnderwrite",//接口编码,备用
"channelId": "2",//渠道id,2为自建商城
"clientType": "2",//客户端id 1-移动端 2-pc端
"agentId": "1",//销售员id 暂时写1
"userId": "1",//登录用户id 暂时写1
"serialNo": ""//流水号,备用
},
"CwOrder": {
"orderNo": "",//订单号,为空
"productCode": "010100406001",//我方产品编码
"planCode": "",//保险计划编码,备用
"totalPrem": "1500.00"//总保费
},
"CwAppnt": {//投保人
"name": "阳作杰",
"gender": "0",//性别
"birthday": "1988-06-10",
"idType": "0",//0为身份证
"idNo": "320811198806101710",//身份证
"idEndDate": "9999-12-31",//身份证有效期止期
"nativePlace": "CHN",//国籍
"occupationCode": "2070501",//职业代码
"marriage": "9",//婚姻状况
"province": "440000",//省
"city": "440200",//市
"county": "440203",//区
"postAddress": "广东省韶关市市辖区18路",
"zipCode": "100022",//邮编
"mobile": "18580644835",
"email": "445020591@qq.com",
"height": "175",
"weight": "70"
},
"CwInsureds": [//被保人
{
"serialNo": "1",
"relationToMainInsured": "00",//被保人与主被保人关系
"relationToAppnt": "00",//被保人与投保人关系
"name": "阳作杰",
"gender": "0",
"birthday": "1988-06-10",
"idType": "0",
"idNo": "320811198806101710",
"idEndDate": "9999-12-31",
"nativePlace": "CHN",
"occupationCode": "2070501",
"marriage": "9",
"province": "440000",
"city": "440200",
"county": "440203",
"postAddress": "广东省韶关市市辖区18路",
"zipCode": "100022",
"mobile": "18580644835",
"email": "445020591@qq.com",
"height": "175",
"weight": "70"
}
],
"CwRisk": {//险种
"productCode": "010100406001",//我方产品编码
"calType": "0",//计算方式:0-保额算保费 1-保费算保额
"planCode": "",
"amnt": "50000",//保额
"prem": "525",//保费
"mult": "1",//份数
"age": "29",
"ageUnit": "Y",//年龄单位,一般是Y代表年
"gender": "0",
"payIntv": "12",//交费间隔 12代表年交 0代表趸交
"insurePeriodUnit": "A",//保险期间单位,A代表年龄
"insurePeriod": "60",//保险期间
"payPeriodUnit": "Y",//交费期间单位,Y代表年
"payPeriod": "20",//交费期间
"CwDutys": [//责任
{
"dutyCode": "903300",//我方责任编码
"useRisk": "0",//是否使用险种要素 0-使用 1-不使用
"amnt": "50000",
"prem": "525",
"mult": "1",
"age": "29",
"ageUnit": "Y",
"gender": "0",
"payIntv": "12",
"insurePeriodUnit": "A",
"insurePeriod": "60",
"payPeriodUnit": "Y",
"payPeriod": "20"
}
],
"CwSubRisks": [//附加险
{
"productCode": "010100406003",
"calType": "0",
"useMainRisk": "0"
"amnt": "50000",
"prem": "525",
"mult": "1",
"age": "29",
"ageUnit": "Y",
"gender": "0",
"payIntv": "12",
"insurePeriodUnit": "A",
"insurePeriod": "60",
"payPeriodUnit": "Y",
"payPeriod": "20",
"CwDutys": [
{
"dutyCode": "903300",
"useRisk": "0",
"amnt": "50000",
"prem": "525",
"mult": "1",
"age": "29",
"ageUnit": "Y",
"gender": "0",
"payIntv": "12",
"insurePeriodUnit": "A",
"insurePeriod": "60",
"payPeriodUnit": "Y",
"payPeriod": "20"
}
]
}
]
},
"CwCusImparts": [//告知
{
"impartType": "1",
"impartVer": "10",
"impartCode": "000",
"impartParammodle": "175,0,0,1,0,,,,65"
}
]
}
大约有70个字段,
大家有什么好的工具推荐吗?感谢各位了。
作者:
一抹红尘
时间:
2017-5-23 19:38
1.如果是开发的话,大部分都是用谷歌自带postman,postman界面简洁容易上手
2.如果是我们要做接口测试的话,可以用jmeter,学会jmeter,能做很多事情比如接口压力测试,接口功能测试,接口自动化,接口性能测试等
3.其他的工具的话有浏览器自带的F12,soapUI,robot framework等
4.接口测试的话,要做接口的参数化,以及接口的压力测试
作者:
jingzizx
时间:
2017-5-24 08:37
看你的格式是json的,我们一般用jmeter
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2