Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web
Project
Project
Details
Activity
Releases
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
Bozhong钟波
web
Commits
97a5a90e
Commit
97a5a90e
authored
Sep 04, 2023
by
Bozhong钟波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
f5c9e675
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
customersDetails_page.py
PageObjects/customersDetails_page.py
+2
-0
myClient_page.py
PageObjects/myClient_page.py
+1
-0
conftest.py
TestCases/conftest.py
+1
-1
test_2_myClient.py
TestCases/test_2_myClient.py
+0
-5
No files found.
PageObjects/customersDetails_page.py
View file @
97a5a90e
...
...
@@ -18,6 +18,7 @@ class CustomersDetailsPage(Basepage):
# 进入 客户跟进 菜单,进行评分操作
def
editor_mark
(
self
):
time
.
sleep
(
1
)
self
.
click_element
(
loc
.
mark_button_loc
,
"客户跟进页面_点击编辑顾问评分"
)
self
.
click_element
(
loc
.
age_select_loc
,
"展开年龄下拉框"
)
...
...
@@ -42,6 +43,7 @@ class CustomersDetailsPage(Basepage):
# 判断评分操作是否成功,分数需要大于80
def
is_mark_success
(
self
):
time
.
sleep
(
1
)
# 文本内容
mark
=
self
.
get_text
(
loc
.
mark_text_loc
,
"客户跟进页面_获取顾问评分文本"
)
# 定义正则表达式
...
...
PageObjects/myClient_page.py
View file @
97a5a90e
...
...
@@ -25,6 +25,7 @@ class MyClientPage(Basepage):
# 填写 客户信息 新增客户
def
newClient
(
self
):
time
.
sleep
(
1
)
self
.
click_element
(
loc
.
addClient_button_loc
,
"我的客户页面_点击新增客户按钮"
)
self
.
input_text
(
loc
.
customer_name_loc
,
"新增客户页面_输入客户姓名"
,
gd
.
client_info
[
"username"
])
self
.
input_text
(
loc
.
mobile_loc
,
"新增客户页面_输入手机号码"
,
gd
.
client_info
[
"mobile"
])
...
...
TestCases/conftest.py
View file @
97a5a90e
...
...
@@ -10,7 +10,7 @@ from TestDatas import global_datas as gd
from
PageObjects.login_page
import
LoginPage
@
pytest
.
fixture
(
scope
=
"
class
"
)
@
pytest
.
fixture
(
scope
=
"
session
"
)
# 打开浏览器,访问登录页面
def
init
():
print
(
1
)
...
...
TestCases/test_2_myClient.py
View file @
97a5a90e
...
...
@@ -18,11 +18,6 @@ class TestMyClient:
# 断言
assert
MyClientPage
(
init
)
.
is_myClient_exist
()
# 点击 新增客户 按钮
def
test_click_newClient_button
(
self
,
init
):
time
.
sleep
(
2
)
MyClientPage
(
init
)
.
click_newClient_button
()
# 填写 客户信息 创建客户
def
test_newClient
(
self
,
init
):
MyClientPage
(
init
)
.
newClient
()
...
...
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