setting 添加边界值测试用例,中英俄文测试用例,修改部分不合适的测试数据。

This commit is contained in:
朱明明
2020-07-17 19:12:10 +08:00
parent 3718b285b7
commit b172e96760
12 changed files with 416 additions and 9 deletions

View File

@@ -182,3 +182,45 @@ Dnsrecords_Chinase_English_Russian_-00008
${aaa} Evaluate type(${reqHeader_edit} )
log ${aaa}
UpdatePolicyFile2 ${url} ${reqHeader_edit}
Dnsrecords_Namelong1_-00009
#Hijack 需要修改的内容
${Dict1} Create Dictionary value=abc.com
${Dict2} Create Dictionary value=edf.com
${list} Create List ${Dict1} ${Dict2}
${objectedit} Create Dictionary recordName=1 recordType=PTR recordValues=${list}
Comment 打印需要修改的json内容
${objectDict} Jsoneditmanu ${setting_proxy_profiles_dnsrecords} ${objectedit}
log ${objectDict}
${response} Post-Request ${url} ${objectDict}
#查询
${profileId} Set Variable ${response['data']['list'][0]["recordId"]}
${profileName} Set Variable ${response['data']['list'][0]["recordName"]}
QueryPolicyFile ${url} recordId=${profileId}&profileName=${profileName}
# 修改
log ${profileId}
${reqHeader_edit} Set Variable { \ \ \ \ "opAction": "update", \ \ \ \ "returnData": 1, \ \ \ \ "dnsRecordList": [ \ \ \ \ \ \ \ \ { \ \ \ \ \ \ \ \ \ \ \ \ "recordId": ${profileId}, \ \ \ \ \ \ \ \ \ \ \ \ "recordName": "12", \ \ \ \ \ \ \ \ \ \ \ \ "recordType": "A", \ \ \ \ \ \ \ \ \ \ \ \ "recordValues": [ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ { \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "value": "192.168.0.1" \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }, \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ { \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "value": "192.168.0.2" \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ } \ \ \ \ \ \ \ \ \ \ \ \ ], \ \ \ \ \ \ \ \ \ \ \ \ "isValid": 1, \ \ \ \ \ \ \ \ \ \ \ \ "profileDesc": "" \ \ \ \ \ \ \ \ } \ \ \ \ ] }
${aaa} Evaluate type(${reqHeader_edit} )
log ${aaa}
UpdatePolicyFile2 ${url} ${reqHeader_edit}
Dnsrecords_Namelong128_-00010
#Hijack 需要修改的内容
${Dict1} Create Dictionary value=abc.com
${Dict2} Create Dictionary value=edf.com
${list} Create List ${Dict1} ${Dict2}
${objectedit} Create Dictionary recordName=12311233333333333333333333333333333qweeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee3333333333333333333333131312312321313 recordType=PTR recordValues=${list}
Comment 打印需要修改的json内容
${objectDict} Jsoneditmanu ${setting_proxy_profiles_dnsrecords} ${objectedit}
log ${objectDict}
${response} Post-Request ${url} ${objectDict}
#查询
${profileId} Set Variable ${response['data']['list'][0]["recordId"]}
${profileName} Set Variable ${response['data']['list'][0]["recordName"]}
QueryPolicyFile ${url} recordId=${profileId}&profileName=${profileName}
# 修改
log ${profileId}
${reqHeader_edit} Set Variable { \ \ \ \ "opAction": "update", \ \ \ \ "returnData": 1, \ \ \ \ "dnsRecordList": [ \ \ \ \ \ \ \ \ { \ \ \ \ \ \ \ \ \ \ \ \ "recordId": ${profileId}, \ \ \ \ \ \ \ \ \ \ \ \ "recordName": "12", \ \ \ \ \ \ \ \ \ \ \ \ "recordType": "A", \ \ \ \ \ \ \ \ \ \ \ \ "recordValues": [ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ { \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "value": "192.168.0.1" \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }, \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ { \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "value": "192.168.0.2" \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ } \ \ \ \ \ \ \ \ \ \ \ \ ], \ \ \ \ \ \ \ \ \ \ \ \ "isValid": 1, \ \ \ \ \ \ \ \ \ \ \ \ "profileDesc": "" \ \ \ \ \ \ \ \ } \ \ \ \ ] }
${aaa} Evaluate type(${reqHeader_edit} )
log ${aaa}
UpdatePolicyFile2 ${url} ${reqHeader_edit}