${EXECDIR}\\DA_data.yaml
Imports a variable file with the given path and optional arguments.
${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} = 手机号
15014242835
${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} = 15014242835
${id}
${content}
15014242835
${id}
${id}
\n
Splits the ``string`` using ``separator`` as a delimiter string.
${id} = ['15014242835']
${id}
Makes a variable available globally in all tests and suites.
${id} = ['15014242835']
${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} = []
${phoneList}
Returns a list containing given items.
${phoneList} = []
${account}
@{id}
15014242835
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":"15014242835", "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":"15014242835", "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': 'Tue, 25 Jun 2024 06:47:23 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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw==","userId":"978668013433786368"}}
${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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw==
${userId}
${reps.json()['data']}
userId
Returns a value from the given ``dictionary`` based on the given ``key``.
${userId} = 978668013433786368
${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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw==','X-Organization-Id':'96...
${login_header}
Logs the given message with the given level.
{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw==','X-Organization-Id':'963432943739605555'}
${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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw=='}
${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``.
${phoneList}
${account}
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'>
${phoneList}
Makes a variable available globally in all tests and suites.
${phoneList} = ['15014242835']
${userid_list}
Makes a variable available globally in all tests and suites.
${userid_list} = ['978668013433786368']
${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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw==','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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw=='}"]
${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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw==','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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw=='}
${Aheader}
Returns a list containing given items.
${Aheader} = []
${userId}
${login_header}
${userid_list}
${Aheader_list}
978668013433786368
{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw==','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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw==', '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=978668013433786368 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=978668013433786368
path_url=/dating-agency-uec/user/list/own-organization?userId=978668013433786368
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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw==', '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.01
ISO-8859-5 Bulgairan confidence = 0.0
windows-1251 Bulgarian confidence = 0.0
TIS-620 Thai confidence = 0.0
ISO-8859-9 Turkish confidence = 0.2794564987311486
windows-1255 Hebrew confidence = 0.0
windows-1255 Hebrew confidence = 0.01
windows-1255 Hebrew confidence = 0.01
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=978668013433786368
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 25 Jun 2024 06:47:23 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': '趣招亲'}]
${matchmakerFlagList}
Returns a list containing given items.
${matchmakerFlagList} = []
${admin_header}
@{Aheader_list}
{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw==','X-Organization-Id':'96...
dating
${${dating}.dating域名}
${admin_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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creating session: dating
${reps}
dating
dating-agency-uec/user/get/base-info
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/get/base-info HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/get/base-info
path_url=/dating-agency-uec/user/get/base-info
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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw==', 'X-Organization-Id': '963432943739605555'}
body=None
utf-8 confidence = 0.9690625
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.12287515576985893
IBM866 Russian confidence = 0.1820372678071984
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.4080570286827862
windows-1255 Hebrew confidence = 0.0
windows-1255 Hebrew confidence = 0.01
windows-1255 Hebrew confidence = 0.01
utf-8 confidence = 0.9690625
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/get/base-info
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 25 Jun 2024 06:47:23 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":{"userId":"978668013433786368","realName":"就是不吃饭","nickName":null,"phone":"15014242835","matchmakerFlag":true}}
${reps} = <Response [200]>
${phone}
${reps.json()['data']}
phone
Returns a value from the given ``dictionary`` based on the given ``key``.
${phone} = 15014242835
${matchmakerFlag}
${reps.json()['data']}
matchmakerFlag
Returns a value from the given ``dictionary`` based on the given ``key``.
${matchmakerFlag} = True
${matchmakerFlagList}
${matchmakerFlag}
Adds ``values`` to the end of ``list``.
${phone}
Makes a variable available globally in all tests and suites.
${phone} = 15014242835
${matchmakerFlag}
Makes a variable available globally in all tests and suites.
${matchmakerFlag} = True
${matchmakerFlagList}
Makes a variable available globally in all tests and suites.
${matchmakerFlagList} = [True]
接口:短信验证码登录认证
用户登录婚介平台
${EXECDIR}\\DA_data.yaml
Imports a variable file with the given path and optional arguments.
${miId_list}
Returns a list containing given items.
${miId_list} = []
${userId}
${client_header}
${userid_list}
${Cheader_list}
978668013433786368
{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw=='}
dating
${${dating}.dating域名}
${client_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': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creating session: dating
${reps}
dating
/dating-agency-service/user/get/marriage/information/details
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-service/user/get/marriage/information/details?userId=978668013433786368 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=978668013433786368
path_url=/dating-agency-service/user/get/marriage/information/details?userId=978668013433786368
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbH+b+7nuc8W2/V1Uqu3MW+zzKfHxiyFSFjX99xkdz1+aw=='}
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.013283412858856083
IBM866 Russian confidence = 0.02178766027340239
IBM855 Russian confidence = 0.06805635906862702
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.0
TIS-620 Thai confidence = 0.043659924094613556
ISO-8859-9 Turkish confidence = 0.36756588541974194
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-service/user/get/marriage/information/details?userId=978668013433786368
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 25 Jun 2024 06:47:23 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":{"id":"978668042869411840","isDelete":false,"createTime":"2024-04-19 11:58:29","updateTime":null,"event":null,"accountId":null,"userId":null,"nickName":"就是不吃饭","name":"赖勇兰","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/5366B037642657C.png","identityCard":"441481199509213863","genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440106,"districtName":"天河区","birthYear":"1995","birthDate":"1995-09-21","constellationCode":10,"constellation":"天蝎座","chineseZodiacCode":null,"chineseZodiac":"猪","height":160,"weight":48,"educationCode":3,"education":"大学本科","maritalStatusCode":0,"maritalStatusName":"未婚","minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","diplomaVerificationCode":"015348541678462228","describeInfo":"A painting is more than the sum of its parts. A cow by itself is just a cow. A meadow by itself is just grass, flowers. And the sun peeking through the trees is just a beam of light. But you put them all together and it can be magic.\n一幅画不是众多物件简单拼凑而成的。牛只是一头牛,草地也只有青草和鲜花,而穿过树枝的阳光也仅仅只是一束光,但如果将它们放到一起,就会产生魔一般的魅力。","identityType":0,"identityTypeName":"本人","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":441400,"domicilePlaceCityName":"梅州市","nationCode":1,"nation":"汉族","bodilyFormCode":1,"bodilyForm":"正常","accountTypeCode":1,"accountTypeName":"农村","nationalityCode":null,"nationality":null,"nativePlaceCode":440000,"nativePlaceName":"广东省","industryCode":null,"industry":null,"occupationCode":18,"occupation":"互联网/通信~工程师","onlyChild":0,"carPurchaseSituationCode":0,"carPurchaseSituation":"未购车","propertyPermitsCode":2,"propertyPermits":"租房","wechatId":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","display":true,"inLove":0,"auditProfilePhoto":null,"photoList":[{"id":"978744295509069824","isDelete":false,"createTime":"2024-04-19 17:01:29","updateTime":null,"event":null,"miId":978668042869411840,"photoType":1,"photoUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/231B75484BB2665.jpg","auditImgId":978743974699339776,"auditStatus":1},{"id":"978744295576178688","isDelete":false,"createTime":"2024-04-19 17:01:29","updateTime":null,"event":null,"miId":978668042869411840,"photoType":1,"photoUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/B724829C9D53D4E.jpg","auditImgId":978743974770642944,"auditStatus":1}],"describeAuditStatus":0,"describeAudit":"A painting is more than the sum of its parts. A cow by itself is just a cow. A meadow by itself is just grass, flowers. And the sun peeking through the trees is just a beam of light. But you put them all together and it can be magic.\n一幅画不是众多物件简单拼凑而成的。牛只是一头牛,草地也只有青草和鲜花,而穿过树枝的阳光也仅仅只是一束光,但如果将它们放到一起,就会产生魔一般的魅力。","fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null,"meLike":null,"miSessionType":null,"consumeRight":false,"vip":null,"dataScoring":75,"phone":null}}
${reps} = <Response [200]>
${miId}
${reps.json()['data']}
id
Returns a value from the given ``dictionary`` based on the given ``key``.
${miId} = 978668042869411840
${nickName}
${reps.json()['data']}
nickName
Returns a value from the given ``dictionary`` based on the given ``key``.
${nickName} = 就是不吃饭
${genderCode}
${reps.json()['data']}
genderCode
Returns a value from the given ``dictionary`` based on the given ``key``.
${genderCode} = 1
${message}
${reps.json()}
message
Returns a value from the given ``dictionary`` based on the given ``key``.
${message} = successful
${miId_list}
${miId}
Adds ``values`` to the end of ``list``.
${message}
successful
Fails if objects are unequal after converting them to strings.
Argument types are:
<class 'str'>
<class 'str'>
${nickName}
Makes a variable available globally in all tests and suites.
${nickName} = 就是不吃饭
${miId_list}
Makes a variable available globally in all tests and suites.
${miId_list} = ['978668042869411840']
${genderCode}
Makes a variable available globally in all tests and suites.
${genderCode} = 1
${userId}
${miId}
${userid_list}
${miId_list}
978668013433786368
978668042869411840
${dataTime}
result_format=%Y-%m-%d %H:%M:%S
Returns current local or UTC time with an optional increment.
${dataTime} = 2024-06-25 14:47:23
${Time}
${dataTime}
5 days
Adds time to date and returns the resulting date.
${Time} = 2024-06-30 14:47:23.000
${end_time}
${Time}
0
19
Returns a substring from ``start`` index to ``end`` index.
${end_time} = 2024-06-30 14:47:23
pymysql
database='dating_agency_mall',user='root',password='qniaothreetwoonego',host='8.135.8.221'
Loads the DB API 2.0 module given `dbapiModuleName` then uses it to
connect to the database using the map string `db_custom_param_string`.
Executing : Connect To Database Using Custom Params : pymysql.connect(db_api_2.connect(database='dating_agency_mall',user='root',password='qniaothreetwoonego',host='8.135.8.221'))
${insert_1}
INSERT INTO `dating_agency_mall`.`da_right`(`id`, `is_delete`, `create_time`, `update_time`, `user_id`, `mi_id`, `type`, `start_time`, `end_time`, `enable`) VALUES (NULL, 0, '${Time}', '${dataTime}', ${userId}, ${miId}, 601, '${dataTime}', '${end_time}', 1)
Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.
Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right`(`id`, `is_delete`, `create_time`, `update_time`, `user_id`, `mi_id`, `type`, `start_time`, `end_time`, `enable`) VALUES (NULL, 0, '2024-06-30 14:47:23.000', '2024-06-25 14:47:23', 978668013433786368, 978668042869411840, 601, '2024-06-25 14:47:23', '2024-06-30 14:47:23', 1)
${insert_1} = None
${check_1}
SELECT id FROM `dating_agency_mall`.`da_right` WHERE `mi_id` = '${miId}' AND `type` = '601' AND `end_time` = '${end_time}' AND `enable` = '1'
Uses the input `selectStatement` to query for the values that will be returned as a list of tuples. Set optional
input `sansTran` to True to run command without an explicit transaction commit or rollback.
Set optional input `returnAsDict` to True to return values as a list of dictionaries.
Executing : Query | SELECT id FROM `dating_agency_mall`.`da_right` WHERE `mi_id` = '978668042869411840' AND `type` = '601' AND `end_time` = '2024-06-30 14:47:23' AND `enable` = '1'
${check_1} = ((1002983861216481284,),)
${right_id}
${check_1[0][0]}
Returns the given values which can then be assigned to a variables.
${right_id} = 1002983861216481284
${insert_2}
INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '${dataTime}', '${Time}', ${right_id}, '规格', 1, 101, NULL)
Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.
Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '2024-06-25 14:47:23', '2024-06-30 14:47:23.000', 1002983861216481284, '规格', 1, 101, NULL)
${insert_2} = None
${insert_2}
INSERT INTO `dating_agency_mall`.`da_right_acquire_record`(`id`, `create_time`, `user_id`, `mi_id`, `right_id`, `right_type`, `acquire_type`) VALUES (NULL, '${dataTime}', ${userId}, ${miId}, ${right_id}, 601, 2)
Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.
Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right_acquire_record`(`id`, `create_time`, `user_id`, `mi_id`, `right_id`, `right_type`, `acquire_type`) VALUES (NULL, '2024-06-25 14:47:23', 978668013433786368, 978668042869411840, 1002983861216481284, 601, 2)
${insert_2} = None
Disconnects from the database.
Executing : Disconnect From Database
权益购买
All Tests
Dating-agency
Dating-agency.0-Login
Dating-agency.0-Login.Login-interface
Dating-agency.1-Applet
Dating-agency.1-Applet.3-Customer
Dating-agency.1-Applet.3-Customer.byEquity