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-sc
Commits
d086f26a
Commit
d086f26a
authored
Oct 30, 2023
by
章 登恒
Browse files
commit
parent
856f593d
Changes
2
Hide whitespace changes
Inline
Side-by-side
public/tools.py
View file @
d086f26a
...
@@ -134,7 +134,7 @@ def get_pro_path():
...
@@ -134,7 +134,7 @@ def get_pro_path():
curPath
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
# 获取当前文件的所在目录的绝对路径
curPath
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
# 获取当前文件的所在目录的绝对路径
# print(curPath) # C:\Users\xhs\Desktop\dbshop项目相关文档2\dbshop1\main
# print(curPath) # C:\Users\xhs\Desktop\dbshop项目相关文档2\dbshop1\main
# #将当前文件的所在目录的绝对路径进行分离,分离成C:\Users\xhs\Desktop\dbshop项目相关文档2\dbshop1 和main,存到元组中
# #将当前文件的所在目录的绝对路径进行分离,分离成C:\Users\xhs\Desktop\dbshop项目相关文档2\dbshop1 和main,存到元组中
print
(
os
.
path
.
split
(
curPath
))
#
print(os.path.split(curPath))
rootPath
=
os
.
path
.
split
(
curPath
)[
0
]
# [0]表示元组中的为一个元素
rootPath
=
os
.
path
.
split
(
curPath
)[
0
]
# [0]表示元组中的为一个元素
# print('当前项目的根目录', rootPath)
# print('当前项目的根目录', rootPath)
return
rootPath
return
rootPath
...
...
testcase/test_scene1/scene3_mainflow.py
View file @
d086f26a
...
@@ -228,7 +228,7 @@ class SalesOrder():
...
@@ -228,7 +228,7 @@ class SalesOrder():
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
try
:
try
:
step1
=
LoginSys
1
()
step1
=
LoginSys
()
step2_1
=
QuickPurchase
()
step2_1
=
QuickPurchase
()
step2_2
=
PurchaseOrder
()
step2_2
=
PurchaseOrder
()
step3
=
SalesOrder
()
step3
=
SalesOrder
()
...
...
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