Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xm-uitest-sow
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiamai-test
xm-uitest-sow
Commits
6301840d
Commit
6301840d
authored
Aug 02, 2021
by
zhangying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增case取消禁言
parent
435d5bb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
src/pageobject/livediscusspage.py
+1
-1
src/testcase/test_LiveDiscussFiled.py
+9
-1
No files found.
src/pageobject/livediscusspage.py
View file @
6301840d
...
...
@@ -14,7 +14,7 @@ class LiveDiscussPage(MainPage):
# 学员未禁言
discuss_forbid
=
(
By
.
XPATH
,
"//div/label[@class='ant-checkbox-wrapper']"
)
# 学员已禁言
discuss_forbided
=
(
By
.
XPATH
,
"//div/label[@class='ant-checkbox-wrapper ant-checkbox-wrapper-checked']
/span
"
)
discuss_forbided
=
(
By
.
XPATH
,
"//div/label[@class='ant-checkbox-wrapper ant-checkbox-wrapper-checked']"
)
# 讨论文字显示区
message_box
=
(
By
.
XPATH
,
"""//div[@class='messageBox mine']//div[text()="discuss"]"""
)
...
...
src/testcase/test_LiveDiscussFiled.py
View file @
6301840d
...
...
@@ -71,7 +71,7 @@ class TestLivePage(object):
assert
self
.
Live_Discuss_Page
.
ifElementExist
(
self
.
Live_Discuss_Page
.
discuss_box
)
@pytest.mark.run
(
order
=
4
)
@allure.title
(
"全员禁言"
)
@allure.title
(
"全员禁言
/取消禁言
"
)
def
testDiscussField1
(
self
):
# 点击“讨论”按钮
self
.
Live_Discuss_Page
.
click_discuss_tab
()
...
...
@@ -81,6 +81,13 @@ class TestLivePage(object):
assert
self
.
Live_Discuss_Page
.
ifElementExist
(
self
.
Live_Discuss_Page
.
discuss_forbided
)
self
.
Live_Discuss_Page
.
click_discuss_forbided
()
self
.
Live_Discuss_Page
.
sleep
(
2
)
assert
self
.
Live_Discuss_Page
.
ifElementExist
(
self
.
Live_Discuss_Page
.
discuss_forbid
)
if
__name__
==
'__main__'
:
pytest
.
main
([
"-v"
])
\ 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