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-cmdc
Commits
f4cc6dff
Commit
f4cc6dff
authored
Jun 20, 2024
by
周念东
Browse files
用例优化
parent
4d6d362d
Changes
10
Hide whitespace changes
Inline
Side-by-side
air_case/cmdc_login/后台管理系统登录/verifycode.png
View replaced file @
4d6d362d
View file @
f4cc6dff
1.59 KB
|
W:
|
H:
1.64 KB
|
W:
|
H:
2-up
Swipe
Onion skin
air_case/cmdc_product_info_release/商品信息发布.air/商品信息发布.py
View file @
f4cc6dff
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
__author__
=
"zhouniandong"
__author__
=
"zhouniandong"
"""
"""
case_tag:cmdc_api,cmdc商品信息发布,2
29
3,2
29
3-2,sit,bs
case_tag:cmdc_api,cmdc商品信息发布,2
00
3,2
00
3-2
-3
,sit,bs
主数据平台:运营后台管理系统商品信息发布接口
主数据平台:运营后台管理系统商品信息发布接口
"""
"""
...
...
air_case/cmdc_product_info_release/商品信息发布按公司ID无代码查询网站.air/商品信息发布按公司ID无代码查询网站.py
View file @
f4cc6dff
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
__author__
=
"zhouniandong"
__author__
=
"zhouniandong"
"""
"""
case_tag:cmdc_api,cmdc商品信息发布按公司ID无代码查询网站,2
29
3,2
293
-2,sit,bs
case_tag:cmdc_api,cmdc商品信息发布按公司ID无代码查询网站,2
00
3,2
003-2
-2,sit,bs
主数据平台:运营后台管理系统商品信息发布接口
主数据平台:运营后台管理系统商品信息发布接口
"""
"""
...
...
air_case/cmdc_product_info_release/商品信息发布查看日志.air/商品信息发布查看日志.py
0 → 100644
View file @
f4cc6dff
# -*- encoding=utf8 -*-
__author__
=
"zhouniandong"
"""
case_tag:cmdc_api,cmdc商品信息发布查看日志,2003,2003-2-6,sit,bs
主数据平台:运营后台管理系统商品信息发布接口
"""
from
common.common_func
import
commonFuc
from
air_case.cmdc_login.后台管理系统登录.后台管理系统登录
import
CmdcDoLogin
import
requests
import
json
module
=
"cmdc_product_info_release"
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"url6"
)
print
(
url
)
# 获取登录所需账号密码
username
=
commonFuc
().
get_business_data
(
module
,
"username"
)
password
=
commonFuc
().
get_business_data
(
module
,
"password"
)
# 获取登录后Cmdc_access_token
cmdc_access_token
=
CmdcDoLogin
(
username
,
password
).
get_token
()
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers"
,
cmdc_access_token
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload6"
)
"""
场景:商品信息发布(商品信息发布)
用例名称:商品信息发布查看日志(商品信息发布)
输出:{"success":true,"code":"200","message":"OK"}
"""
# 发送请求
result
=
requests
.
get
(
url
,
json
=
request_body
,
headers
=
headers
)
result
=
json
.
loads
(
result
.
content
)
# print(result)
# 获取预期结果
check_dict
=
commonFuc
().
get_business_data
(
module
,
"checkDict6"
)
print
(
check_dict
)
# 断言实际结果中是否包含预期结果的内容
commonFuc
().
check_result
(
check_dict
,
result
)
\ No newline at end of file
air_case/cmdc_product_info_release/商品信息发布查询产品线名称.air/商品信息发布查询产品线名称.py
View file @
f4cc6dff
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
__author__
=
"zhouniandong"
__author__
=
"zhouniandong"
"""
"""
case_tag:cmdc_api,cmdc商品信息发布查询产品线名称,2
29
3,2
293
-2,sit,bs
case_tag:cmdc_api,cmdc商品信息发布查询产品线名称,2
00
3,2
003-2
-2,sit,bs
主数据平台:运营后台管理系统商品信息发布接口
主数据平台:运营后台管理系统商品信息发布接口
"""
"""
...
...
air_case/cmdc_product_info_release/商品信息发布获取生产厂商.air/商品信息发布获取生产厂商.py
View file @
f4cc6dff
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
__author__
=
"zhouniandong"
__author__
=
"zhouniandong"
"""
"""
case_tag:cmdc_api,cmdc商品信息发布获取生产厂商,2
29
3,2
29
3-2,sit,bs
case_tag:cmdc_api,cmdc商品信息发布获取生产厂商,2
00
3,2
00
3-2
-1
,sit,bs
主数据平台:运营后台管理系统商品信息发布接口
主数据平台:运营后台管理系统商品信息发布接口
"""
"""
...
...
air_case/cmdc_product_info_release/商品品信息发布选择已发布产品类别选项.air/商品品信息发布选择已发布产品类别选项.py
View file @
f4cc6dff
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
__author__
=
"zhouniandong"
__author__
=
"zhouniandong"
"""
"""
case_tag:cmdc_api,cmdc商品信息发布选择已发布产品类别选项,2
29
3,2
29
3-2,sit,bs
case_tag:cmdc_api,cmdc商品信息发布选择已发布产品类别选项,2
00
3,2
00
3-2
-4
,sit,bs
主数据平台:运营后台管理系统商品信息发布接口
主数据平台:运营后台管理系统商品信息发布接口
"""
"""
...
...
data/cmdc_product_info_release/data
View file @
f4cc6dff
...
@@ -40,10 +40,15 @@ checkDict3: {"success":true,"code":"200","message":"OK"}
...
@@ -40,10 +40,15 @@ checkDict3: {"success":true,"code":"200","message":"OK"}
#预期结果
#预期结果
checkDict4: {"success":true,"code":"200","message":"OK"}
checkDict4: {"success":true,"code":"200","message":"OK"}
#商品信息发布查询产品线名称
#商品信息发布查询产品线名称
get
"url5": "/product/public/queryProductLineName"
"url5": "/product/public/queryProductLineName"
"payload5": filialeCode=00111
"payload5": filialeCode=00111
#预期结果
#预期结果
checkDict5: {"success":true,"code":"200","message":"OK"}
checkDict5: {"success":true,"code":"200","message":"OK"}
#商品信息发布查看日志 get
"url6": "/product/public/excelLog/list"
"payload6": sheetName=%E5%95%86%E5%93%81%E4%BF%A1%E6%81%AF%E5%8F%91%E5%B8%83%E5%AF%BC%E5%85%A5&pageStart=1&pageSize=10&total=0
#预期结果
checkDict6: {"success":true,"code":"200","message":"OK"}
log/runtime.txt
View file @
f4cc6dff
多采商城库存调拨管理全部调拨分页列表 1718850972235 1718850973044
zhouniandong
商品信息发布查看日志 1718862845315 1718862848400
zhouniandong
report/summary.html
View file @
f4cc6dff
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<tr
width=
"600"
>
<tr
width=
"600"
>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<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'
>
0分
3
秒
</td>
<td
class=
"details-col-elapsed"
>
100.0%
</td>
<td
class=
"details-col-elapsed"
>
100.0%
</td>
</tr>
</tr>
</table>
</table>
...
@@ -73,9 +73,9 @@
...
@@ -73,9 +73,9 @@
</tr>
</tr>
<tr
width=
"600"
>
<tr
width=
"600"
>
<td
class=
"details-col-elapsed"
><a
href=
'../log/
多采商城库存调拨管理全部调拨分页列表
/log.html'
target=
'_blank'
>
多采商城库存调拨管理全部调拨分页列表
</a></td>
<td
class=
"details-col-elapsed"
><a
href=
'../log/
商品信息发布查看日志
/log.html'
target=
'_blank'
>
商品信息发布查看日志
</a></td>
<td
class=
"success"
>
成功
</td>
<td
class=
"success"
>
成功
</td>
<td
class=
"details-col-elapsed"
>
0.809
</td>
<td
class=
"details-col-elapsed"
>
3.085
</td>
<td
class=
"details-col-elapsed"
>
zhouniandong
</td>
<td
class=
"details-col-elapsed"
>
zhouniandong
</td>
<td
class=
"details-col-elapsed"
>
0
</td>
<td
class=
"details-col-elapsed"
>
0
</td>
</tr>
</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