Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-spd
Commits
0464436d
Commit
0464436d
authored
Oct 08, 2023
by
xiao-hesheng
Browse files
供货目录申请
parent
275455b2
Changes
10
Hide whitespace changes
Inline
Side-by-side
air_case/mdm_login/登录外网系统.air/登录外网系统.py
View file @
0464436d
...
...
@@ -44,6 +44,7 @@ class login_system():
print
(
headers
)
# 发送登录请求
result
=
commonFuc
().
http_post
(
login_url
,
request_body
,
headers
)
print
(
'登录结果'
,
result
)
token
=
commonFuc
().
analysis_json
(
'token'
,
result
)
uxid
=
commonFuc
().
analysis_json
(
'uxid'
,
result
)
projectCode
=
commonFuc
().
analysis_json
(
'projectCode'
,
result
)
...
...
@@ -56,7 +57,7 @@ class login_system():
platform_login_url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
self
.
module
,
"platform_login_url"
)
request_body
=
commonFuc
().
get_business_data
(
self
.
module
,
"payload2"
,
token
,
uxid
,
projectCode
)
print
(
request_body
)
print
(
'平台登录请求体'
,
request_body
)
# 发送平台登录请求
result
=
commonFuc
().
http_post
(
platform_login_url
,
request_body
,
headers
)
print
(
'平台登录接口结果'
,
result
)
...
...
@@ -69,6 +70,6 @@ class login_system():
return
token
,
projectCode
login_system
(
'
test001'
,
'1qaz!QAZ
'
).
get_token
()
#
login_system('
1679886114521', 'a123456!
').get_token()
# if __name__ == '__main__':
# print(login_system('test001','
a123456!
').get_token())
# print(login_system('test001','
1qaz!QAZ
').get_token())
air_case/mdm_login/登录外网系统/登录外网系统.py
View file @
0464436d
...
...
@@ -71,6 +71,7 @@ class login_system():
return
token
,
projectCode
,
uxid
,
corpId
,
info
#
login_system('
test00
1', 'a123456!').get_token()
print
(
login_system
(
'
167988611452
1'
,
'a123456!'
).
get_token
()
)
# if __name__ == '__main__':
# print(login_system('test001','a123456!').get_token())
# print(login_system('test001','1qaz!QAZ').get_token())
#1679886114521 a123456!
data/mdm3_cm/data
View file @
0464436d
"username": "
167988611452
1"
"password": "
a123456!
"
"username": "
test00
1"
"password": "
1qaz!QAZ
"
"submitSupplyRelation_url": "/test2api/mdmService/supplyRelation/submitSupplyRelation/"
"listVoPage_url": "/test2api/mdmService/supplyRelation/listVoPage/"
...
...
data/mdm3_ea/data
View file @
0464436d
...
...
@@ -6,8 +6,8 @@
"upCompanyList_url": "/test2api/mdmService/mdmCompany/upCompanyList"
"auditCompanyRegistBill_url": "/test2api/mdmService/companyRegistBill/auditCompanyRegistBill/"
"updateByIdCompanyRegistBill_url": "/test2api/mdmService/companyRegistBill/updateById/"
"username": "
167988611452
1"
"password": "
a123456!
"
"username": "
test00
1"
"password": "
1qaz!QAZ
"
json_contentType: "application/json"
json_headers: {
...
...
data/mdm3_hs/data
View file @
0464436d
...
...
@@ -3,8 +3,8 @@
"queryListPage_url": "/test2api/mdmService/companyRegistBill/listPage"
"updateById_url": "/test2api/mdmService/companyRegistBill/updateById"
"checkHosRegistInfo_url": "/test2api/mdmService/companyRegistBill/checkHosRegistInfo"
"username": "
167988611452
1"
"password": "
a123456!
"
"username": "
test00
1"
"password": "
1qaz!QAZ
"
json_contentType: "application/json"
...
...
data/mdm3_ir/data
View file @
0464436d
"username": "
167988611452
1"
"password": "
a123456!
"
"username": "
test00
1"
"password": "
1qaz!QAZ
"
"listVoPage_url": "/test2api/mdmService/provMfrsInfo/listVoPage/"
"registrantFromCompany_url": "/test2api/mdmService/companyRegistBill/registrantFromCompany/"
"queryListPage_url": "/test2api/mdmService/companyRegistBill/queryListPage/"
...
...
data/mdm3_login/data
View file @
0464436d
...
...
@@ -2,8 +2,8 @@
"VerifyCode_url": "/test2api/oauthService/auth/getVerifyCode"
"login_url": "/test2api/oauthService/auth/login"
"platform_login_url": "/test2api/platformService/userOnline/getUserOnlineLogin"
"username": "
167988611452
1"
"password": "
a123456!
"
"username": "
test00
1"
"password": "
1qaz!QAZ
"
json_contentType: "application/json"
json_headers: {
"Content-Type": "%s"
...
...
data/mdm3_pim/data
View file @
0464436d
...
...
@@ -10,8 +10,8 @@
"handleAuditGoodsRegist_url": "/test2api/mdmService/goodsRegistBill/handleAuditGoodsRegist/"
"submitGoodsSpecsRegist_url": "/test2api/mdmService/goodsRegistBill/submitGoodsSpecsRegist/"
"listAuditBillByPage_url": "/test2api/mdmService/goodsRegistBill/listAuditBillByPage/"
"username": "
167988611452
1"
"password": "
a123456!
"
"username": "
test00
1"
"password": "
1qaz!QAZ
"
json_contentType: "application/json"
...
...
data/mdm3_psm/data
View file @
0464436d
...
...
@@ -12,8 +12,8 @@
"handleAuditSpecRegist_url": "/test2api/mdmService/goodsRegistBill/handleAuditSpecRegist/"
"18FL_url": "/test2api/platformService/dict/f/getDictionary/18FL/"
"listMdmGoodsInfoByPage_url": "/test2api/mdmService/mdmGoodsInfo/listMdmGoodsInfoByPage/"
"username": "
167988611452
1"
"password": "
a123456!
"
"username": "
test00
1"
"password": "
1qaz!QAZ
"
json_contentType: "application/json"
...
...
report/summary.html
View file @
0464436d
...
...
@@ -55,9 +55,9 @@
<tr
width=
"600"
>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
0分
1
秒
</td>
<td
class=
"details-col-elapsed"
>
10
0.0%
</td>
<td
class=
'details-col-elapsed'
>
0
</td>
<td
class=
'details-col-elapsed'
>
0分
0
秒
</td>
<td
class=
"details-col-elapsed"
>
0.0%
</td>
</tr>
</table>
...
...
@@ -72,9 +72,9 @@
</tr>
<tr
width=
"600"
>
<td
class=
"details-col-elapsed"
><a
href=
'../log/
b18供货目录申请_客户类型_医院_提交供货申请单_添加产品/log.html'
target=
'_blank'
>
b18供货目录申请_客户类型_医院_提交供货申请单_添加产品
</a></td>
<td
class=
"
success"
>
成功
</td>
<td
class=
"details-col-elapsed"
>
1
.5
52
</td>
<td
class=
"details-col-elapsed"
><a
href=
'../log/
登录外网系统/log.html'
target=
'_blank'
>
登录外网系统
</a></td>
<td
class=
"
fail"
>
失败
</td>
<td
class=
"details-col-elapsed"
>
0
.5
79
</td>
<td
class=
"details-col-elapsed"
>
xiaohesheng
</td>
</tr>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment