Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
1 year ago
by
章 登恒
Browse files
Options
Download
Email Patches
Plain Diff
commit
parent
856f593d
main
master
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/tools.py
+1
-1
public/tools.py
testcase/test_scene1/scene3_mainflow.py
+1
-1
testcase/test_scene1/scene3_mainflow.py
with
2 additions
and
2 deletions
+2
-2
public/tools.py
+
1
-
1
View file @
d086f26a
...
...
@@ -134,7 +134,7 @@ def get_pro_path():
curPath
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
# 获取当前文件的所在目录的绝对路径
# print(curPath) # 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]表示元组中的为一个元素
# print('当前项目的根目录', rootPath)
return
rootPath
...
...
This diff is collapsed.
Click to expand it.
testcase/test_scene1/scene3_mainflow.py
+
1
-
1
View file @
d086f26a
...
...
@@ -228,7 +228,7 @@ class SalesOrder():
if
__name__
==
'__main__'
:
try
:
step1
=
LoginSys
1
()
step1
=
LoginSys
()
step2_1
=
QuickPurchase
()
step2_2
=
PurchaseOrder
()
step3
=
SalesOrder
()
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets