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
f4f68943
Commit
f4f68943
authored
Jun 25, 2024
by
xiao-hesheng
Browse files
流程十四脚本编写
parent
6941f7e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/demo/产品检查.air/产品检查.py
View file @
f4f68943
...
@@ -16,7 +16,8 @@ from common.common_func import commonFuc
...
@@ -16,7 +16,8 @@ from common.common_func import commonFuc
from
air_case.mdm_login.登录外网系统.登录外网系统
import
login_system
from
air_case.mdm_login.登录外网系统.登录外网系统
import
login_system
from
airtest.core.api
import
using
from
airtest.core.api
import
using
import
sys
import
sys
#第一种方式
# 第一种方式
# hos_goods_id = FileUtils().r_info8('b5_spd3_core_business_flow', '产品审核信息', 'message2')["hosGoodsId"]
# hos_goods_id = FileUtils().r_info8('b5_spd3_core_business_flow', '产品审核信息', 'message2')["hosGoodsId"]
# actual_value=delData().check_goods_info(hos_goods_id)
# actual_value=delData().check_goods_info(hos_goods_id)
# print('actual_value',actual_value)
# print('actual_value',actual_value)
...
@@ -28,22 +29,22 @@ import sys
...
@@ -28,22 +29,22 @@ import sys
# else:
# else:
# print('error')
# print('error')
# commonFuc().check_text_exist_result_text('error', 'succees')
# commonFuc().check_text_exist_result_text('error', 'succees')
#第二种方式
#
第二种方式
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
hos_goods_id
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'产品审核信息'
,
'message2'
)[
"hosGoodsId"
]
actual_value1
=
main2
(
hos_goods_id
)
actual_value1
=
main2
(
hos_goods_id
)
print
(
actual_value1
)
print
(
actual_value1
)
# print('actual_value2',actual_value1)
# print('actual_value2',actual_value1)
actual_value2
=
get_process_list2
(
actual_value1
)
actual_value2
=
get_process_list2
(
actual_value1
)
print
(
'actual_value2'
,
actual_value2
,
type
(
actual_value2
))
print
(
'actual_value2'
,
actual_value2
,
type
(
actual_value2
))
prov_hos_goods_id
=
'8d6273b7bca84dd8aace12b9422d7fd6'
prov_hos_goods_id
=
'8d6273b7bca84dd8aace12b9422d7fd6'
expected_value2
=
commonFuc
().
get_business_data
(
'b5_spd3_core_business_flow'
,
'expected_value2'
,
prov_hos_goods_id
)
expected_value2
=
commonFuc
().
get_business_data
(
'b5_spd3_core_business_flow'
,
'expected_value2'
,
prov_hos_goods_id
)
print
(
'expected_value2'
,
expected_value2
,
type
(
expected_value2
))
print
(
'expected_value2'
,
expected_value2
,
type
(
expected_value2
))
actual_value2
=
actual_value2
.
replace
(
" "
,
""
)
actual_value2
=
actual_value2
.
replace
(
" "
,
""
)
expected_value2
=
expected_value2
.
replace
(
" "
,
""
)
expected_value2
=
expected_value2
.
replace
(
" "
,
""
)
print
(
actual_value2
==
expected_value2
)
print
(
actual_value2
==
expected_value2
)
# if actual_value2==expected_value2:
if
actual_value2
==
expected_value2
:
# print('ok')
print
(
'ok'
)
# commonFuc().check_text_exist_result_text('succees', 'succees')
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
# else:
else
:
# print('error')
print
(
'error'
)
# commonFuc().check_text_exist_result_text('error', 'succees')
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
\ No newline at end of file
report/summary.html
View file @
f4f68943
...
@@ -95,7 +95,7 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
...
@@ -95,7 +95,7 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
<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.3
71
</td>
<td
class=
"details-col-elapsed"
>
0.3
52
</td>
<td
class=
"details-col-elapsed"
>
xiaohesheng
</td>
<td
class=
"details-col-elapsed"
>
xiaohesheng
</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