From f30e8c0781f30db09d140d692e5aeb97960c2a57 Mon Sep 17 00:00:00 2001 From: LG_lai Date: Thu, 21 Mar 2024 12:02:21 +0800 Subject: [PATCH] no message --- 0-Login/phone-test.txt | 2 +- output/log.html | 2199 +++++++++++++++++++++++++++++++++++ output/output.xml | 408 +++++++ output/report.html | 2462 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 5070 insertions(+), 1 deletion(-) create mode 100644 output/log.html create mode 100644 output/output.xml create mode 100644 output/report.html diff --git a/0-Login/phone-test.txt b/0-Login/phone-test.txt index 6f9f5cd..f7bd761 100644 --- a/0-Login/phone-test.txt +++ b/0-Login/phone-test.txt @@ -1,2 +1,2 @@ 手机号 -18888888888 \ No newline at end of file +13168550964 \ No newline at end of file diff --git a/output/log.html b/output/log.html new file mode 100644 index 0000000..982de4f --- /dev/null +++ b/output/log.html @@ -0,0 +1,2199 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Opening Robot Framework log failed

+ +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/output/output.xml b/output/output.xml new file mode 100644 index 0000000..1167759 --- /dev/null +++ b/output/output.xml @@ -0,0 +1,408 @@ + + + + + + +${EXECDIR}\\DA_data.yaml +Imports a variable file with the given path and optional arguments. + + + + + +${file} +D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\0-Login\\phone-test.txt +Returns the contents of a specified file. +Getting file '<a href="file://D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login\phone-test.txt">D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login\phone-test.txt</a>'. +${file} = 手机号 +13168550964 + + + +${skip-line} +1 +Returns the given values which can then be assigned to a variables. +${skip-line} = 1 + + + +${lines} +-1 +Returns the given values which can then be assigned to a variables. +${lines} = -1 + + + +${content} +${file} +${skip-line} +${lines} +Returns lines of the given ``string`` that contain the ``pattern``. +1 out of 2 lines matched +${content} = 13168550964 + + + +${id} +${content} + +13168550964 + +${id} +${id} +\n +Splits the ``string`` using ``separator`` as a delimiter string. +${id} = ['13168550964'] + + + + + + + +${id} +Makes a variable available globally in all tests and suites. +${id} = ['13168550964'] + + + + + + +${userid_list} +Returns a list containing given items. +${userid_list} = [] + + + +${Cheader_list} +Returns a list containing given items. +${Cheader_list} = [] + + + +${Aheader_list} +Returns a list containing given items. +${Aheader_list} = [] + + + +${account} +@{id} + +13168550964 + +Helper for quickly disabling all urllib3 warnings. + + + +dating +${${dating}.dating域名} +${${dating}.AHeader} +Create Session: create a HTTP session to a server +Creating Session using : alias=dating, url=http://dating-agency-api-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 +Creating session: dating + + + +${data} +{ \ \ "account":"${account}", \ \ "accountType":2, \ \ "captcha":888888 } +Returns the given values which can then be assigned to a variables. +${data} = { "account":"13168550964", "accountType":2, "captcha":888888 } + + + +${reps} +dating +/dating-agency-uec/authorize/by-captcha +${data.encode('utf-8')} +Sends a POST request on a previously created HTTP Session. +Starting new HTTP connection (1): dating-agency-api-test.qniao.cn +http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-uec/authorize/by-captcha HTTP/1.1" 200 None +POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/authorize/by-captcha + path_url=/dating-agency-uec/authorize/by-captcha + headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Content-Length': '68'} + body=b'{ "account":"13168550964", "accountType":2, "captcha":888888 }' + +POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/authorize/by-captcha + status=200, reason= + headers={'Server': 'nginx/1.16.1', 'Date': 'Thu, 21 Mar 2024 04:00:46 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} + body={"code":0,"message":"successful","data":{"token":"iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamAJOE6LR1l8jrJYJgURmJ4tV5X+8iz9kg6P6mG0plFdFsw==","userId":"963432943739604992"}} + +${reps} = <Response [200]> + + + +${code} +${reps.json()} +code +Returns a value from the given ``dictionary`` based on the given ``key``. +${code} = 0 + + + +${token} +${reps.json()['data']} +token +Returns a value from the given ``dictionary`` based on the given ``key``. +${token} = iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamAJOE6LR1l8jrJYJgURmJ4tV5X+8iz9kg6P6mG0plFdFsw== + + + +${userId} +${reps.json()['data']} +userId +Returns a value from the given ``dictionary`` based on the given ``key``. +${userId} = 963432943739604992 + + + +${message} +${reps.json()} +message +Returns a value from the given ``dictionary`` based on the given ``key``. +${message} = successful + + + +${login_header} +{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT ${token}','X-Organization-Id':'963432943739605555'} +Returns the given values which can then be assigned to a variables. +${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamAJOE6LR1l8jrJYJgURmJ4tV5X+8iz9kg6P6mG0plFdFsw==','X-Organization-Id':'96... + + + +${client_header} +{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT ${token}'} +Returns the given values which can then be assigned to a variables. +${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamAJOE6LR1l8jrJYJgURmJ4tV5X+8iz9kg6P6mG0plFdFsw=='} + + + +${userid_list} +${userId} +Adds ``values`` to the end of ``list``. + + + +${Cheader_list} +${client_header} +Adds ``values`` to the end of ``list``. + + + +${Aheader_list} +${login_header} +Adds ``values`` to the end of ``list``. + + + +${code}==0 +Should Be Equal As Strings +${message} +successful +ELSE +Should Be Equal As Strings +${message} +验证码错误或无效验证码,请重试! +Runs the given keyword with the given arguments, if ``condition`` is true. + +${message} +successful +Fails if objects are unequal after converting them to strings. +Argument types are: +<class 'str'> +<class 'str'> + + + + + + + + + +${userid_list} +Makes a variable available globally in all tests and suites. +${userid_list} = ['963432943739604992'] + + + +${Aheader_list} +Makes a variable available globally in all tests and suites. +${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamAJOE6LR1l8jrJYJgURmJ4tV5X+8iz9kg6P6mG0plFdFsw==','X-Organization-Id':'... + + + +${Cheader_list} +Makes a variable available globally in all tests and suites. +${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamAJOE6LR1l8jrJYJgURmJ4tV5X+8iz9kg6P6mG0plFdFsw=='}"] + + + +${login_header} +Makes a variable available globally in all tests and suites. +${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamAJOE6LR1l8jrJYJgURmJ4tV5X+8iz9kg6P6mG0plFdFsw==','X-Organization-Id':'96... + + + +${client_header} +Makes a variable available globally in all tests and suites. +${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamAJOE6LR1l8jrJYJgURmJ4tV5X+8iz9kg6P6mG0plFdFsw=='} + + + + + + +${Aheader} +Returns a list containing given items. +${Aheader} = [] + + + +${userId} +${login_header} +${userid_list} +${Aheader_list} + +963432943739604992 +{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamAJOE6LR1l8jrJYJgURmJ4tV5X+8iz9kg6P6mG0plFdFsw==','X-Organization-Id':'96... + +Helper for quickly disabling all urllib3 warnings. + + + +dating +${${dating}.dating域名} +${login_header} +Create Session: create a HTTP session to a server +Creating Session using : alias=dating, url=http://dating-agency-api-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamAJOE6LR1l8jrJYJgURmJ4tV5X+8iz9kg6P6mG0plFdFsw==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 +Creating session: dating + + + +${reps} +dating +/dating-agency-uec/user/list/own-organization +params=userId=${userid} +Sends a GET request on a previously created HTTP Session. +Starting new HTTP connection (1): dating-agency-api-test.qniao.cn +http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=963432943739604992 HTTP/1.1" 200 None +GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=963432943739604992 + path_url=/dating-agency-uec/user/list/own-organization?userId=963432943739604992 + headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamAJOE6LR1l8jrJYJgURmJ4tV5X+8iz9kg6P6mG0plFdFsw==', 'X-Organization-Id': '963432943739605555'} + body=None + +utf-8 confidence = 0.99 +SHIFT_JIS Japanese confidence = 0.01 +EUC-JP Japanese confidence = 0.01 +GB2312 Chinese confidence = 0.01 +EUC-KR Korean confidence = 0.01 +CP949 Korean confidence = 0.01 +Big5 Chinese confidence = 0.01 +EUC-TW Taiwan confidence = 0.01 +windows-1251 Russian confidence = 0.01 +KOI8-R Russian confidence = 0.01 +ISO-8859-5 Russian confidence = 0.0 +MacCyrillic Russian confidence = 0.0 +IBM866 Russian confidence = 0.0 +IBM855 Russian confidence = 0.0 +ISO-8859-7 Greek confidence = 0.0 +windows-1253 Greek confidence = 0.0 +ISO-8859-5 Bulgairan confidence = 0.0 +windows-1251 Bulgarian confidence = 0.01 +TIS-620 Thai confidence = 0.0 +ISO-8859-9 Turkish confidence = 0.2794564987311486 +windows-1255 Hebrew confidence = 0.0 +windows-1255 Hebrew confidence = 0.0 +windows-1255 Hebrew confidence = 0.0 +utf-8 confidence = 0.99 +SHIFT_JIS Japanese confidence = 0.01 +EUC-JP Japanese confidence = 0.01 +GB2312 Chinese confidence = 0.01 +EUC-KR Korean confidence = 0.01 +CP949 Korean confidence = 0.01 +Big5 Chinese confidence = 0.01 +EUC-TW Taiwan confidence = 0.01 +GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=963432943739604992 + status=200, reason= + headers={'Server': 'nginx/1.16.1', 'Date': 'Thu, 21 Mar 2024 04:00:46 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} + body={"code":0,"message":"successful","data":[{"orgId":"963432943739605555","fullName":"寻找伴侣","shortName":"寻伴"}]} + +${reps} = <Response [200]> + + + +${data} +${reps.json()} +data +Returns a value from the given ``dictionary`` based on the given ``key``. +${data} = [{'orgId': '963432943739605555', 'fullName': '寻找伴侣', 'shortName': '寻伴'}] + + + +${message} +${reps.json()} +message +Returns a value from the given ``dictionary`` based on the given ``key``. +${message} = successful + + + +${message} +successful +Fails if objects are unequal after converting them to strings. +Argument types are: +<class 'str'> +<class 'str'> + + + +${data}==[] +log +未获取到组织信息! +ELSE +log +${data} +Runs the given keyword with the given arguments, if ``condition`` is true. + +${data} +Logs the given message with the given level. +[{'orgId': '963432943739605555', 'fullName': '寻找伴侣', 'shortName': '寻伴'}] + + + + + + + + + + + + +接口:短信验证码登录认证 + + +用户登录婚介平台 + + + + + + +All Tests + + + + +Dating-agency +Dating-agency.0-Login +Dating-agency.0-Login.Login-interface + + + + + diff --git a/output/report.html b/output/report.html new file mode 100644 index 0000000..27a6667 --- /dev/null +++ b/output/report.html @@ -0,0 +1,2462 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Opening Robot Framework report failed

+ +
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +