Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UIProject
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liying
UIProject
Commits
b2831b39
Commit
b2831b39
authored
Feb 22, 2024
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.19提交
parent
f1823f37
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
40 deletions
+11
-40
UIProject.iml
.idea/UIProject.iml
+11
-0
test_business_knowledge.py
TestCase/TestBusiness/test_business_knowledge.py
+0
-0
conftest.py
TestCase/conftest.py
+0
-34
pytest.ini
pytest.ini
+0
-6
No files found.
.idea/UIProject.iml
View file @
b2831b39
...
@@ -7,4 +7,14 @@
...
@@ -7,4 +7,14 @@
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
</component>
<component
name=
"PyNamespacePackagesService"
>
<option
name=
"namespacePackageFolders"
>
<list>
<option
value=
"$MODULE_DIR$/Pages"
/>
<option
value=
"$MODULE_DIR$/TestCase"
/>
<option
value=
"$MODULE_DIR$/BasePage"
/>
<option
value=
"$MODULE_DIR$/Util"
/>
</list>
</option>
</component>
</module>
</module>
\ No newline at end of file
TestCase/test_business_knowledge.py
→
TestCase/
TestBusiness/
test_business_knowledge.py
View file @
b2831b39
File moved
TestCase/conftest.py
deleted
100644 → 0
View file @
f1823f37
from
selenium.webdriver.common.by
import
By
from
Pages.businessKnowledge_page
import
BusinessKnowledgePage
from
Pages.login_page
import
LoginPage
from
Util.Util
import
DriverUtils
import
time
from
loguru
import
logger
def
setup_class
(
self
):
# 在所有的测试用例脚本之前执行一次
# 完成公共部分初始化
self
.
driver
=
DriverUtils
.
get_web_driver
()
self
.
login_page
=
LoginPage
()
self
.
business_page
=
BusinessKnowledgePage
()
def
teardown_class
(
self
):
# 在所有的测试用例脚本之后执行一次
self
.
driver
.
quit
()
pass
def
setup_method
(
self
):
# 在每个测试用例脚本之前执行一次
self
.
driver
.
get
(
'https://rays7.raysgo.com/login'
)
self
.
login_page
.
login_username
(
"17373027967"
,
"3149390154Li"
)
self
.
business_page
.
entranceAi
()
# 进入AI编辑室
self
.
business_page
.
entranceBusinessKnowledge
()
# 进入企业知识库
time
.
sleep
(
3
)
def
teardown_method
(
self
):
# 在每个测试用例脚本之后执行一次
pass
\ No newline at end of file
pytest.ini
deleted
100644 → 0
View file @
f1823f37
[pytest]
testpaths
=
.
\T
estCases
\T
estBusiness
python_files
=
test*.py
python_classes
=
Test*
python_functions
=
test*
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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