添加中英俄测试用例&修改文件名&修改测试用例内容

This commit is contained in:
朱明明
2020-06-02 19:28:47 +08:00
parent ff0652739c
commit 208b3cf504
14 changed files with 264 additions and 168 deletions

View File

@@ -80,8 +80,8 @@ Dnsrecords_CNAME_-00003
Dnsrecords_AAAA_-00004
#Hijack 需要修改的内容
${Dict1} Create Dictionary value=2000db8:2de::e13
${Dict2} Create Dictionary value=2000db8:2de::e13
${Dict1} Create Dictionary value=2000:db8:2de::e13
${Dict2} Create Dictionary value=2000:db8:2de::e13
${list} Create List ${Dict1} ${Dict2}
${objectedit} Create Dictionary recordName=12 recordType=AAAA recordValues=${list}
Comment 打印需要修改的json内容
@@ -104,7 +104,7 @@ Dnsrecords_TXT_-00005
${Dict1} Create Dictionary value=abc.com
${Dict2} Create Dictionary value=edf.com
${list} Create List ${Dict1} ${Dict2}
${objectedit} Create Dictionary recordName=12 recordType=CNAME recordValues=${list}
${objectedit} Create Dictionary recordName=12 recordType=TXT recordValues=${list}
Comment 打印需要修改的json内容
${objectDict} Jsoneditmanu ${setting_proxy_profiles_dnsrecords} ${objectedit}
log ${objectDict}
@@ -125,7 +125,7 @@ Dnsrecords_NS_-00006
${Dict1} Create Dictionary value=abc.com
${Dict2} Create Dictionary value=edf.com
${list} Create List ${Dict1} ${Dict2}
${objectedit} Create Dictionary recordName=12 recordType=CNAME recordValues=${list}
${objectedit} Create Dictionary recordName=12 recordType=NS recordValues=${list}
Comment 打印需要修改的json内容
${objectDict} Jsoneditmanu ${setting_proxy_profiles_dnsrecords} ${objectedit}
log ${objectDict}
@@ -146,7 +146,7 @@ Dnsrecords_PTR_-00007
${Dict1} Create Dictionary value=abc.com
${Dict2} Create Dictionary value=edf.com
${list} Create List ${Dict1} ${Dict2}
${objectedit} Create Dictionary recordName=12 recordType=CNAME recordValues=${list}
${objectedit} Create Dictionary recordName=12 recordType=PTR recordValues=${list}
Comment 打印需要修改的json内容
${objectDict} Jsoneditmanu ${setting_proxy_profiles_dnsrecords} ${objectedit}
log ${objectDict}
@@ -161,3 +161,24 @@ Dnsrecords_PTR_-00007
${aaa} Evaluate type(${reqHeader_edit} )
log ${aaa}
UpdatePolicyFile2 ${url} ${reqHeader_edit}
Dnsrecords_Chinase_English_Russian_-00008
#Hijack 需要修改的内容
${Dict1} Create Dictionary value=abc.com
${Dict2} Create Dictionary value=edf.com
${list} Create List ${Dict1} ${Dict2}
${objectedit} Create Dictionary recordName=朱brightясный 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}