${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} = 手机号
18745960237
${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} = 18745960237
${id}
${content}
18745960237
${id}
${id}
\n
Splits the ``string`` using ``separator`` as a delimiter string.
${id} = ['18745960237']
${id}
Makes a variable available globally in all tests and suites.
${id} = ['18745960237']
${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}
18745960237
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":"18745960237", "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":"18745960237", "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, 26 Mar 2024 03:19:50 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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw==","userId":"969960467432869888"}}
${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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw==
${userId}
${reps.json()['data']}
userId
Returns a value from the given ``dictionary`` based on the given ``key``.
${userId} = 969960467432869888
${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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw==','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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw=='}
${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} = ['969960467432869888']
${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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw==','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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw=='}"]
${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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw==','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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw=='}
${Aheader}
Returns a list containing given items.
${Aheader} = []
${userId}
${login_header}
${userid_list}
${Aheader_list}
969960467432869888
{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw==','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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw==', '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=969960467432869888 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=969960467432869888
path_url=/dating-agency-uec/user/list/own-organization?userId=969960467432869888
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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw==', 'X-Organization-Id': '963432943739605555'}
body=None
GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=969960467432869888
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 26 Mar 2024 03:19:50 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":[]}
${reps} = <Response [200]>
${data}
${reps.json()}
data
Returns a value from the given ``dictionary`` based on the given ``key``.
${data} = []
${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.
未获取到组织信息!
Logs the given message with the given level.
未获取到组织信息!
接口:短信验证码登录认证
用户登录婚介平台
${EXECDIR}\\DA_data.yaml
Imports a variable file with the given path and optional arguments.
${userId}
${client_header}
${userid_list}
${Cheader_list}
969960467432869888
{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw=='}
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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw=='}, 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=969960467432869888 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=969960467432869888
path_url=/dating-agency-service/user/get/marriage/information/details?userId=969960467432869888
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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw=='}
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.02064309704692273
IBM866 Russian confidence = 0.04149141363617932
IBM855 Russian confidence = 0.05342398076950387
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.04835541979932631
ISO-8859-9 Turkish confidence = 0.33770660246514794
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=969960467432869888
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 26 Mar 2024 03:19:50 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":"969960468829573120","isDelete":false,"createTime":"2024-03-26 11:17:42","updateTime":null,"event":null,"accountId":null,"userId":969960467432869888,"nickName":"沈艳艳","name":null,"profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/761fc775f7189b611dbd157218a6b4b8.jpg","identityCard":null,"genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440300,"cityName":"深圳市","districtCode":440306,"districtName":"宝安区","birthYear":"1987","birthDate":null,"constellationCode":8,"constellation":"处女座","chineseZodiacCode":null,"chineseZodiac":null,"height":175,"weight":128,"educationCode":1,"education":"中专","maritalStatusCode":0,"maritalStatusName":"未婚","minimumIncome":5001,"maximumIncome":8000,"incomeCode":2,"income":"5001~8000","diplomaVerificationCode":null,"describeInfo":"身高最好172以上吧,不过长相喜欢干净斯文清瘦一点的,有少年感。希望是双眼皮或者是单眼皮大眼睛。至于三观是否一致,只有接触之后才能知道啦。","self":null,"domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440300,"domicilePlaceCityName":"深圳市","nationCode":12,"nation":"侗族","bodilyFormCode":3,"bodilyForm":"肥胖","accountTypeCode":1,"accountTypeName":"农村","nationalityCode":null,"nationality":null,"nativePlaceCode":440000,"nativePlaceName":"广东省","industryCode":17,"industry":"交通运输","occupationCode":175,"occupation":"乘务员","onlyChild":null,"carPurchaseSituationCode":0,"carPurchaseSituation":"未购车","propertyPermitsCode":4,"propertyPermits":"婚后购房","wechatId":null,"auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}}
${reps} = <Response [200]>
${miId}
${reps.json()['data']}
id
Returns a value from the given ``dictionary`` based on the given ``key``.
${miId} = 969960468829573120
${nickName}
${reps.json()['data']}
nickName
Returns a value from the given ``dictionary`` based on the given ``key``.
${nickName} = 沈艳艳
${miId_list}
Returns a list containing given items.
${miId_list} = []
${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} = ['969960468829573120']
${genderCode}
Makes a variable available globally in all tests and suites.
${genderCode} = 1
${man_imgUrllist}
["https://dating-agency-test.oss-accelerate.aliyuncs.com/30464b28455d6ddbc1f049ce4adfda7a.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c7c968a93cff69375df767aefe112da4.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/9e1c238e45a3c9264b83c0b1d4054019.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/0c1e15d1c956cb8bb678b2a1f7992f76.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/aea0caca25438b7490305cd4c704d515.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/14eee17ccd0333cda335d68004885f1f.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/863db444113cabe238ce37e1ff12d8c8.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/42e77d2434934a6fc24638fd5bf130d6.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/122668a4d1cc4fcffd91fc3d2934fc8b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/24ef3e3c4e781b97c9e3da52cc2a6a88.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c91757deace453ee22c3d12ea9913bd0.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/b2b34146d7354dab2d7a7c6e65395762.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/905cbc906449e997be51c6b129c9481e.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/18a7ce70dbba030da53442f0ad55e63b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/991c4bc6f06c1c3fb1d6a9a5178ee34c.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/df8705ac114d936428d0765f78fc3af8.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/5d4eeebbf9f7df899a8964d3c802a2b7.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/61971786fabc9be4718e10f9323649ef.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/f99a80033c77b990f9d2c75c2e6b6c1e.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/6647f59b5f8057c9aa67324261153cdd.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/fde465e0db7e83a6a29ad133c270c8ba.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/647e941c007594cd32d977b172efe58a.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/ca8faec9558e2aae046f8620fd21fed6.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/82e53568724f2010025231a600fd78b2.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/e40ca792f19cb70f045ebfe04c57c52c.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/9e62e2e3ad1b53d20a933a651c958201.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/7f7e09f9c1f83b68de7967df210716d4.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/3d9ccb6c9206e28c3dd6104d38eccd19.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/ccc7a8fea47b80921b7cc790c87d6bc1.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/71a5453ecfd81a21c7fbbbcea50ec6ab.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/bc07ad3c778a592b48a48a01a6e6bcee.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/228b58091bcdac00789bcefd77886cf2.jpg"]
Returns the given values which can then be assigned to a variables.
${man_imgUrllist} = ["https://dating-agency-test.oss-accelerate.aliyuncs.com/30464b28455d6ddbc1f049ce4adfda7a.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c7c968a93cff69375df767aefe112da4.jpg","https://da...
${manimgUrl_data}
random.sample(${man_imgUrllist},2)
random,string
Evaluates the given expression in Python and returns the result.
${manimgUrl_data} = ['https://dating-agency-test.oss-accelerate.aliyuncs.com/3d9ccb6c9206e28c3dd6104d38eccd19.jpg', 'https://dating-agency-test.oss-accelerate.aliyuncs.com/905cbc906449e997be51c6b129c9481e.jpg']
${manimgUrl_List}
demjson.encode(${manimgUrl_data})
demjson
Evaluates the given expression in Python and returns the result.
${manimgUrl_List} = ["https://dating-agency-test.oss-accelerate.aliyuncs.com/3d9ccb6c9206e28c3dd6104d38eccd19.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/905cbc906449e997be51c6b129c9481e.jpg"]
${woman_imgUrllist}
["https://dating-agency-test.oss-accelerate.aliyuncs.com/71e2ac4806378e5c6f29e2e9d01f1b3b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/cd5dda0a1f539861cc78f1bef4a8e8ab.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/82d51050e13fea977a054a0208d1e616.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c6fc977ab1effc2f57c1b61ea0b4a10b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/59aae418037d0bf103f63de805eeb86b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/960b3d371ed4af8788c1fc4a8c889933.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/884c65f91e6b346bb7c9e26e750ce4d3.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c5e4bca3b533fdfbcc2557e83512215c.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/bbef238ab2bea9bd3e831d0e9d9557e4.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/1c771bf0c01eb0e5fab3fede9dab7608.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/6df02f3978e72f14fb2b33b9a3e56fe9.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c9525ae0873fe94a5dd15a01717c07a0.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/417ebe61e78592b42d212eb00a2ec23c.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/1adabba412cc81d3fa40fdf78eba46d7.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/afcf0ad64c7224a8a08163cc98ef6cb6.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/84b55bb41fcf7350d2c86d0d518bf546.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/80d9c390581014ea327efabc749cf042.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/7ea11516b07156a1bcfa227c4fef9207.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/abae88e4e07536531d0ac7d03f7f576b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/a2826ad22aab2d082bb3598b387f1689.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/b26399e635fa7dd44808342595fa334a.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/b3a641d16e9e547228a8ccbc8e7e5aef.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/cc28a387d249a8673a0cd24cf9e49896.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/7615cc23bd2cf922e50e5fb3810e749f.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/d0d15693e059e2525d4ea469451e4387.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/f43b18d37584c0797d8ef3606d578a11.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/55f9f41f1ff9f2b71837af94ec02126a.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/af74f07f326842a4c958f855ce11544b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/753745c3d3bdbffc9fecff9b3869d880.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/5e3fb99b37448612749dd8b3fc5cf917.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/91b79f1e3eb2b13fa334de8157a6b9be.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/94ebc0dc461bea0feea8876620a922fb.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/e94e9f29216a38527dbdc3aa75f7f415.jpg"]
Returns the given values which can then be assigned to a variables.
${woman_imgUrllist} = ["https://dating-agency-test.oss-accelerate.aliyuncs.com/71e2ac4806378e5c6f29e2e9d01f1b3b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/cd5dda0a1f539861cc78f1bef4a8e8ab.jpg","https://da...
${womanimgUrl_data}
random.sample(${woman_imgUrllist},3)
random,string
Evaluates the given expression in Python and returns the result.
${womanimgUrl_data} = ['https://dating-agency-test.oss-accelerate.aliyuncs.com/84b55bb41fcf7350d2c86d0d518bf546.jpg', 'https://dating-agency-test.oss-accelerate.aliyuncs.com/cd5dda0a1f539861cc78f1bef4a8e8ab.jpg', 'https://...
${womanimgUrl_List}
demjson.encode(${womanimgUrl_data})
demjson
Evaluates the given expression in Python and returns the result.
${womanimgUrl_List} = ["https://dating-agency-test.oss-accelerate.aliyuncs.com/84b55bb41fcf7350d2c86d0d518bf546.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/cd5dda0a1f539861cc78f1bef4a8e8ab.jpg","https://da...
${Code}
6
Evaluates the given expression in Python and returns the result.
${Code} = 6
${miId}
${client_header}
${miId_list}
${Cheader_list}
969960468829573120
{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw=='}
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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creating session: dating
${data}
${genderCode}==1
{ \ \ \ \ "authenticationCode": "${Code}", \ \ \ \ "miId": "${miId}", \ \ \ \ "imgUrl": ${womanimgUrl_List} }
{ \ \ \ \ "authenticationCode": "${Code}", \ \ \ \ "miId": "${miId}", \ \ \ \ "imgUrl": ${manimgUrl_List} }
Sets variable based on the given condition.
${data} = { "authenticationCode": "6", "miId": "969960468829573120", "imgUrl": ["https://dating-agency-test.oss-accelerate.aliyuncs.com/84b55bb41fcf7350d2c86d0d518bf546.jpg","https://dating-agency-t...
${reps}
dating
dating-agency-service/user/save/certification/audit
${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-service/user/save/certification/audit HTTP/1.1" 200 None
POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/certification/audit
path_url=/dating-agency-service/user/save/certification/audit
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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw==', 'Content-Length': '366'}
body=b'{ "authenticationCode": "6", "miId": "969960468829573120", "imgUrl": ["https://dating-agency-test.oss-accelerate.aliyuncs.com/84b55bb41fcf7350d2c86d0d518bf546.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/cd5dda0a1f539861cc78f1bef4a8e8ab.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c6fc977ab1effc2f57c1b61ea0b4a10b.jpg"] }'
POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/certification/audit
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 26 Mar 2024 03:19:50 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":"969961006157664256"}
${reps} = <Response [200]>
${auditId}
${reps.json()}
data
Returns a value from the given ``dictionary`` based on the given ``key``.
${auditId} = 969961006157664256
${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'>
${auditId}
Makes a variable available globally in all tests and suites.
${auditId} = 969961006157664256
pymysql
database='dating_agency_service',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_service',user='root',password='qniaothreetwoonego',host='8.135.8.221'))
${check}
SELECT id FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '${auditId}' AND `authentication_code` = '6' AND `is_delete` = '0'
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_service`.`da_marriage_information_certification_audit` WHERE `id` = '969961006157664256' AND `authentication_code` = '6' AND `is_delete` = '0'
${check} = ((969961006157664256,),)
${id}
${check[0][0]}
Returns the given values which can then be assigned to a variables.
${id} = 969961006157664256
${id}
${auditId}
Fails if objects are unequal after converting them to strings.
Argument types are:
<class 'int'>
<class 'str'>
Disconnects from the database.
Executing : Disconnect From Database
资料认证
征婚人资料
${EXECDIR}\\DA_data.yaml
Imports a variable file with the given path and optional arguments.
${admin_header}
@{Aheader_list}
{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw==','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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creating session: dating
${reps}
dating
dating-agency-service/user/get/marriage/information/audit/page
params=pageSize=10&name=${nickName}&pageNum=1
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/audit/page?pageSize=10&name=%E6%B2%88%E8%89%B3%E8%89%B3&pageNum=1 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&name=%E6%B2%88%E8%89%B3%E8%89%B3&pageNum=1
path_url=/dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&name=%E6%B2%88%E8%89%B3%E8%89%B3&pageNum=1
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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw==', '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.19843192857244296
IBM855 Russian confidence = 0.12984995325921084
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.03737273458346625
ISO-8859-9 Turkish confidence = 0.42996075468780526
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/audit/page?pageSize=10&name=%E6%B2%88%E8%89%B3%E8%89%B3&pageNum=1
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 26 Mar 2024 03:19:50 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":{"records":[{"id":"969961006157664256","phone":"18745960237","name":"沈艳艳","status":0,"authenticationCode":6,"authenticationName":"相册审核","createTime":"2024-03-26 11:19:50","auditTime":null},{"id":"969960484742762496","phone":"18745960237","name":"沈艳艳","status":1,"authenticationCode":8,"authenticationName":"头像审核","createTime":"2024-03-26 11:17:46","auditTime":"2024-03-26 11:17:54"},{"id":"969960979448336384","phone":"18745960237","name":"沈艳艳","status":1,"authenticationCode":7,"authenticationName":"介绍信息审核","createTime":"2024-03-26 11:19:44","auditTime":"2024-03-26 11:19:44"}],"total":3,"size":10,"current":1,"pages":1}}
${reps} = <Response [200]>
${records}
${reps.json()['data']}
records
Returns a value from the given ``dictionary`` based on the given ``key``.
${records} = [{'id': '969961006157664256', 'phone': '18745960237', 'name': '沈艳艳', 'status': 0, 'authenticationCode': 6, 'authenticationName': '相册审核', 'createTime': '2024-03-26 11:19:50', 'auditTime': None}, {'id':...
${info}
@{records}
{'id': '969961006157664256', 'phone': '18745960237', 'name': '沈艳艳', 'status': 0, 'authenticationCode': 6, 'authenticationName': '相册审核', 'createTime': '2024-03-26 11:19:50', 'auditTime': None}
${InfoId}
${info}
id
Returns a value from the given ``dictionary`` based on the given ``key``.
${InfoId} = 969961006157664256
${InfoId}==${auditId}
Stops executing the enclosing FOR loop if the ``condition`` is true.
Exiting for loop altogether.
${InfoId}
Makes a variable available globally in all tests and suites.
${InfoId} = 969961006157664256
${admin_header}
@{Aheader_list}
{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw==','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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creating session: dating
${data}
{"id":"${InfoId}","status":1}
Returns the given values which can then be assigned to a variables.
${data} = {"id":"969961006157664256","status":1}
${reps}
dating
dating-agency-service/user/exe/certification/audit
${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-service/user/exe/certification/audit HTTP/1.1" 200 None
POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/exe/certification/audit
path_url=/dating-agency-service/user/exe/certification/audit
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/g6O5DXHixyNrf7trP4VTcB/I1I8ZWHFW8rCJH3dU57dhJGR6DeT0NjQfeeYyoi0UQGyiPfgpEeeg4PVw==', 'X-Organization-Id': '963432943739605555', 'Content-Length': '38'}
body=b'{"id":"969961006157664256","status":1}'
POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/exe/certification/audit
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 26 Mar 2024 03:19:50 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":"969961006157664256"}
${reps} = <Response [200]>
${data}
${reps.json()}
data
Returns a value from the given ``dictionary`` based on the given ``key``.
${data} = 969961006157664256
${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}
Makes a variable available globally in all tests and suites.
${data} = 969961006157664256
pymysql
database='dating_agency_service',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_service',user='root',password='qniaothreetwoonego',host='8.135.8.221'))
${check}
SELECT status FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '${data}'
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 status FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '969961006157664256'
${check} = ((1,),)
${status}
${check[0][0]}
Returns the given values which can then be assigned to a variables.
${status} = 1
${status}
1
Fails if objects are unequal after converting them to real numbers.
Argument types are:
<class 'int'>
<class 'str'>
资料审核
All Tests
Dating-agency
Dating-agency.0-Login
Dating-agency.0-Login.Login-interface
Dating-agency.1-Applet
Dating-agency.1-Applet.2-Homepage
Dating-agency.1-Applet.2-Homepage.MarriageInfo
Dating-agency.1-Applet.2-Homepage.MarriageInfo.DataAuthentication
Dating-agency.2-Web
Dating-agency.2-Web.InfoAudit
Dating-agency.2-Web.InfoAudit.AuditInfomation