Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wsmonitor
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
宋鹏博
wsmonitor
Commits
a290951c
Commit
a290951c
authored
Feb 12, 2025
by
之约
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新功能
parent
8cb20fdd
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
114 additions
and
16 deletions
+114
-16
AIDigitalcreationPaga.py
paga/AIDigitalcreationPaga.py
+14
-1
AISelectedtopicPaga.py
paga/AISelectedtopicPaga.py
+13
-2
AITopicplanningPaga.py
paga/AITopicplanningPaga.py
+46
-3
test_AIBookreview.py
script/test_AIBookreview.py
+1
-1
test_AIDigitalcreation.py
script/test_AIDigitalcreation.py
+11
-3
test_AISelectedtopic.py
script/test_AISelectedtopic.py
+8
-1
test_AITopicplanning.py
script/test_AITopicplanning.py
+20
-4
test_AiNewmediaeditor.py
script/test_AiNewmediaeditor.py
+1
-1
No files found.
paga/AIDigitalcreationPaga.py
View file @
a290951c
...
@@ -46,6 +46,8 @@ class AIDigitalcreation(BasePage):
...
@@ -46,6 +46,8 @@ class AIDigitalcreation(BasePage):
self
.
chinese_btn
=
(
By
.
XPATH
,
"(//div[@class='ant-cascader-menu-item-content'][contains(text(),'语文')])[1]"
)
self
.
chinese_btn
=
(
By
.
XPATH
,
"(//div[@class='ant-cascader-menu-item-content'][contains(text(),'语文')])[1]"
)
# 点击确定按钮
# 点击确定按钮
self
.
sure_btn
=
(
By
.
XPATH
,
"(//span[contains(text(),'确定')])[1]"
)
self
.
sure_btn
=
(
By
.
XPATH
,
"(//span[contains(text(),'确定')])[1]"
)
# 点击制作浓缩书配音按钮
self
.
concentratedbook_btn
=
(
By
.
XPATH
,
"(//div[@class='name'][contains(text(),'制作浓缩书配音')])[2]"
)
...
@@ -67,7 +69,7 @@ class AIDigitalcreation(BasePage):
...
@@ -67,7 +69,7 @@ class AIDigitalcreation(BasePage):
# 现代纸书一键制作
# 现代纸书一键制作
def
modern_paper_book
(
self
,
txt
):
def
modern_paper_book
(
self
,
txt
):
self
.
find_ele
(
self
.
more_btn
)
.
click
()
self
.
find_ele
(
self
.
more_btn
)
.
click
()
time
.
sleep
(
5
)
time
.
sleep
(
3
)
self
.
find_ele
(
self
.
modern_btn
)
.
click
()
self
.
find_ele
(
self
.
modern_btn
)
.
click
()
time
.
sleep
(
3
)
time
.
sleep
(
3
)
self
.
find_ele
(
self
.
periodicals_input
)
.
send_keys
(
txt
)
self
.
find_ele
(
self
.
periodicals_input
)
.
send_keys
(
txt
)
...
@@ -93,6 +95,17 @@ class AIDigitalcreation(BasePage):
...
@@ -93,6 +95,17 @@ class AIDigitalcreation(BasePage):
self
.
find_ele
(
self
.
sure_btn
)
.
click
()
self
.
find_ele
(
self
.
sure_btn
)
.
click
()
time
.
sleep
(
3
)
time
.
sleep
(
3
)
# 制作浓缩书配音
def
ai_concentratedbook
(
self
):
self
.
find_ele
(
self
.
more_btn
)
.
click
()
time
.
sleep
(
3
)
self
.
find_ele
(
self
.
concentratedbook_btn
)
.
click
()
time
.
sleep
(
3
)
self
.
find_ele
(
self
.
example_btn
)
.
click
()
time
.
sleep
(
3
)
self
.
find_ele
(
self
.
send_file
)
.
click
()
time
.
sleep
(
3
)
...
...
paga/AISelectedtopicPaga.py
View file @
a290951c
...
@@ -22,12 +22,16 @@ class AISelectedtopic(BasePage):
...
@@ -22,12 +22,16 @@ class AISelectedtopic(BasePage):
self
.
example_btn
=
(
By
.
XPATH
,
"(//div[@id='exampleButton'])[1]"
)
self
.
example_btn
=
(
By
.
XPATH
,
"(//div[@id='exampleButton'])[1]"
)
# 发送按钮
# 发送按钮
self
.
send_file
=
(
By
.
XPATH
,
"//button[contains(text(),'发送')]"
)
self
.
send_file
=
(
By
.
XPATH
,
"//button[contains(text(),'发送')]"
)
# 图书榜单按钮
self
.
bookrankings_file
=
(
By
.
XPATH
,
"(//div[@id='rc-tabs-0-tab-bookRank'])[1]"
)
# 解读图书榜单按钮
self
.
mationbookrankings_file
=
(
By
.
XPATH
,
"/html[1]/body[1]/div[2]/div[1]/section[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[2]/div[1]/div[2]/div[1]/div[2]/div[1]/div[2]/button[1]/span[1]"
)
# 选题资讯-解读当前资讯
# 选题资讯-解读当前资讯
def
ai_information
(
self
):
def
ai_information
(
self
):
self
.
find_ele
(
self
.
information_btn
)
.
click
()
self
.
find_ele
(
self
.
information_btn
)
.
click
()
time
.
sleep
(
3
0
)
time
.
sleep
(
3
)
# 选题资讯-了解选题新鲜事
# 选题资讯-了解选题新鲜事
def
ai_freshnews
(
self
):
def
ai_freshnews
(
self
):
...
@@ -36,7 +40,14 @@ class AISelectedtopic(BasePage):
...
@@ -36,7 +40,14 @@ class AISelectedtopic(BasePage):
self
.
find_ele
(
self
.
example_btn
)
.
click
()
self
.
find_ele
(
self
.
example_btn
)
.
click
()
time
.
sleep
(
3
)
time
.
sleep
(
3
)
self
.
find_ele
(
self
.
send_file
)
.
click
()
self
.
find_ele
(
self
.
send_file
)
.
click
()
time
.
sleep
(
40
)
time
.
sleep
(
3
)
# 选题资讯-图书榜单按钮解读
def
ai_bookrankings
(
self
):
self
.
find_ele
(
self
.
bookrankings_file
)
.
click
()
time
.
sleep
(
5
)
self
.
find_ele
(
self
.
mationbookrankings_file
)
.
click
()
time
.
sleep
(
3
)
...
...
paga/AITopicplanningPaga.py
View file @
a290951c
...
@@ -38,6 +38,21 @@ class AITopicplanning(BasePage):
...
@@ -38,6 +38,21 @@ class AITopicplanning(BasePage):
self
.
keyword_btn
=
(
By
.
XPATH
,
"(//span[@title='关键词'][contains(text(),'关键词')])[1]"
)
self
.
keyword_btn
=
(
By
.
XPATH
,
"(//span[@title='关键词'][contains(text(),'关键词')])[1]"
)
# ISBN按钮
# ISBN按钮
self
.
isbn_btn
=
(
By
.
XPATH
,
"//div[contains(text(),'ISBN')]"
)
self
.
isbn_btn
=
(
By
.
XPATH
,
"//div[contains(text(),'ISBN')]"
)
# 添加至竞品分析按钮
self
.
analysis_btn
=
(
By
.
ID
,
"add-animation-508854"
)
# 样式按钮
self
.
style_btn
=
(
By
.
XPATH
,
"(//i[@class='ic ic-bulletpoint'])[1]"
)
# 竞品分析按钮
self
.
goanalysis_btn
=
(
By
.
XPATH
,
"(//div[@class='competitive-analysis-container-top'])[1]"
)
# 对比竞品分析按钮
self
.
goanalysis1_btn
=
(
By
.
XPATH
,
"(//div[@class='compete-book-wrap'])[1]"
)
# 生成竞品分析报告按钮
self
.
competitiveanalysis_btn
=
(
By
.
XPATH
,
"(//span[contains(text(),'生成竞品分析报告')])[1]"
)
# 累计销量按钮
self
.
Accumulated_btn
=
(
By
.
XPATH
,
"(//*[name()='svg'])[7]"
)
# 导出数据按钮
self
.
exportdata_btn
=
(
By
.
XPATH
,
"(//span[@class='export-normal'])[1]"
)
# AI选题策划编辑-取书名
# AI选题策划编辑-取书名
def
ai_booktitle
(
self
):
def
ai_booktitle
(
self
):
...
@@ -46,7 +61,7 @@ class AITopicplanning(BasePage):
...
@@ -46,7 +61,7 @@ class AITopicplanning(BasePage):
self
.
find_ele
(
self
.
example_btn
)
.
click
()
self
.
find_ele
(
self
.
example_btn
)
.
click
()
time
.
sleep
(
3
)
time
.
sleep
(
3
)
self
.
find_ele
(
self
.
send_file
)
.
click
()
self
.
find_ele
(
self
.
send_file
)
.
click
()
time
.
sleep
(
20
)
time
.
sleep
(
3
)
# AI选题策划编辑-写选题策划案
# AI选题策划编辑-写选题策划案
def
ai_freshnews2
(
self
):
def
ai_freshnews2
(
self
):
...
@@ -55,7 +70,7 @@ class AITopicplanning(BasePage):
...
@@ -55,7 +70,7 @@ class AITopicplanning(BasePage):
self
.
find_ele
(
self
.
example_btn
)
.
click
()
self
.
find_ele
(
self
.
example_btn
)
.
click
()
time
.
sleep
(
3
)
time
.
sleep
(
3
)
self
.
find_ele
(
self
.
send_file
)
.
click
()
self
.
find_ele
(
self
.
send_file
)
.
click
()
time
.
sleep
(
60
)
time
.
sleep
(
3
)
# AI选题策划编辑-生成选题报告
# AI选题策划编辑-生成选题报告
def
ai_report
(
self
,
Aibook_file_text
):
def
ai_report
(
self
,
Aibook_file_text
):
...
@@ -68,7 +83,35 @@ class AITopicplanning(BasePage):
...
@@ -68,7 +83,35 @@ class AITopicplanning(BasePage):
self
.
find_ele
(
self
.
template_btn
)
.
click
()
self
.
find_ele
(
self
.
template_btn
)
.
click
()
time
.
sleep
(
5
)
time
.
sleep
(
5
)
self
.
find_ele
(
self
.
reporting_btn
)
.
click
()
self
.
find_ele
(
self
.
reporting_btn
)
.
click
()
time
.
sleep
(
180
)
time
.
sleep
(
5
)
#AI选题策划编辑-去竞品分析
def
ai_analysis
(
self
,
Aibook_file_text
):
self
.
find_ele
(
self
.
book_file
)
.
send_keys
(
Aibook_file_text
)
time
.
sleep
(
3
)
self
.
find_ele
(
self
.
searchfor_btn
)
.
click
()
time
.
sleep
(
3
)
self
.
find_ele
(
self
.
Accumulated_btn
)
.
click
()
time
.
sleep
(
5
)
self
.
find_ele
(
self
.
style_btn
)
.
click
()
time
.
sleep
(
5
)
self
.
find_ele
(
self
.
analysis_btn
)
.
click
()
time
.
sleep
(
3
)
self
.
find_ele
(
self
.
goanalysis_btn
)
.
click
()
time
.
sleep
(
5
)
self
.
find_ele
(
self
.
goanalysis1_btn
)
.
click
()
time
.
sleep
(
3
)
self
.
find_ele
(
self
.
competitiveanalysis_btn
)
.
click
()
time
.
sleep
(
3
)
# AI选题策划编辑-导出数据
def
ai_exportdata
(
self
,
Aibook_file_text
):
self
.
find_ele
(
self
.
book_file
)
.
send_keys
(
Aibook_file_text
)
time
.
sleep
(
5
)
self
.
find_ele
(
self
.
searchfor_btn
)
.
click
()
time
.
sleep
(
5
)
self
.
find_ele
(
self
.
exportdata_btn
)
.
click
()
time
.
sleep
(
3
)
script/test_AIBookreview.py
View file @
a290951c
...
@@ -38,7 +38,7 @@ class TestAIBookreview:
...
@@ -38,7 +38,7 @@ class TestAIBookreview:
@allure.feature
(
"上传社科书评流程"
)
@allure.feature
(
"上传社科书评流程"
)
def
test_find_AiNewmediae
(
self
):
def
test_find_AiNewmediae
(
self
):
self
.
aibookreview
.
update_social_btn
(
updata_AiNewmediae_path
)
self
.
aibookreview
.
update_social_btn
(
updata_AiNewmediae_path
)
time
.
sleep
(
7
0
)
time
.
sleep
(
8
0
)
ws_error
(
2
)
ws_error
(
2
)
time
.
sleep
(
3
)
time
.
sleep
(
3
)
...
...
script/test_AIDigitalcreation.py
View file @
a290951c
...
@@ -40,18 +40,26 @@ class TestaiDigitalcreation:
...
@@ -40,18 +40,26 @@ class TestaiDigitalcreation:
@allure.feature
(
"现代纸书一键制作流程"
)
@allure.feature
(
"现代纸书一键制作流程"
)
def
test_modern_paper_book
(
self
):
def
test_modern_paper_book
(
self
):
self
.
aiDigitalcreation
.
modern_paper_book
(
Aiperiodicals_text
)
self
.
aiDigitalcreation
.
modern_paper_book
(
Aiperiodicals_text
)
time
.
sleep
(
30
)
time
.
sleep
(
25
)
ws_error
(
1
)
ws_error
(
1
)
time
.
sleep
(
3
)
time
.
sleep
(
2
)
# AI数字创作编辑-提供资源选题方案灵感
# AI数字创作编辑-提供资源选题方案灵感
@allure.feature
(
"提供资源选题方案灵感流程"
)
@allure.feature
(
"提供资源选题方案灵感流程"
)
def
test_ai_scheme
(
self
):
def
test_ai_scheme
(
self
):
self
.
aiDigitalcreation
.
ai_scheme
()
self
.
aiDigitalcreation
.
ai_scheme
()
time
.
sleep
(
30
)
time
.
sleep
(
25
)
ws_error
(
1
)
ws_error
(
1
)
time
.
sleep
(
3
)
time
.
sleep
(
3
)
# AI数字创作编辑-制作浓缩书配音
@allure.feature
(
"制作浓缩书配音流程"
)
def
test_ai_concentratedbook
(
self
):
self
.
aiDigitalcreation
.
ai_concentratedbook
()
time
.
sleep
(
200
)
ws_error
(
1
)
...
...
script/test_AISelectedtopic.py
View file @
a290951c
...
@@ -32,7 +32,7 @@ class TestaiSelectedtopic:
...
@@ -32,7 +32,7 @@ class TestaiSelectedtopic:
@allure.feature
(
"选题资讯-解读当前资讯流程"
)
@allure.feature
(
"选题资讯-解读当前资讯流程"
)
def
test_information
(
self
):
def
test_information
(
self
):
self
.
aiselectedtopic
.
ai_information
()
self
.
aiselectedtopic
.
ai_information
()
time
.
sleep
(
15
)
time
.
sleep
(
30
)
ws_error
(
1
)
ws_error
(
1
)
time
.
sleep
(
3
)
time
.
sleep
(
3
)
...
@@ -44,6 +44,13 @@ class TestaiSelectedtopic:
...
@@ -44,6 +44,13 @@ class TestaiSelectedtopic:
ws_error
(
1
)
ws_error
(
1
)
time
.
sleep
(
3
)
time
.
sleep
(
3
)
@allure.feature
(
"选题资讯-图书榜单按钮解读流程"
)
def
test_information
(
self
):
self
.
aiselectedtopic
.
ai_bookrankings
()
time
.
sleep
(
30
)
ws_error
(
1
)
time
.
sleep
(
3
)
...
...
script/test_AITopicplanning.py
View file @
a290951c
...
@@ -32,7 +32,7 @@ class TestaiSelectedtopic:
...
@@ -32,7 +32,7 @@ class TestaiSelectedtopic:
@allure.feature
(
"取书名流程"
)
@allure.feature
(
"取书名流程"
)
def
test_booktitle
(
self
):
def
test_booktitle
(
self
):
self
.
aitopicplanning
.
ai_booktitle
()
self
.
aitopicplanning
.
ai_booktitle
()
time
.
sleep
(
5
)
time
.
sleep
(
20
)
ws_error
(
1
)
ws_error
(
1
)
time
.
sleep
(
3
)
time
.
sleep
(
3
)
...
@@ -40,15 +40,31 @@ class TestaiSelectedtopic:
...
@@ -40,15 +40,31 @@ class TestaiSelectedtopic:
@allure.feature
(
"写选题策划案流程"
)
@allure.feature
(
"写选题策划案流程"
)
def
test_freshnews2
(
self
):
def
test_freshnews2
(
self
):
self
.
aitopicplanning
.
ai_freshnews2
()
self
.
aitopicplanning
.
ai_freshnews2
()
time
.
sleep
(
5
)
time
.
sleep
(
90
)
ws_error
(
1
)
ws_error
(
2
)
time
.
sleep
(
3
)
time
.
sleep
(
3
)
# AI选题策划编辑-生成选题报告
# AI选题策划编辑-生成选题报告
@allure.feature
(
"生成选题报告流程"
)
@allure.feature
(
"生成选题报告流程"
)
def
test_report
(
self
):
def
test_report
(
self
):
self
.
aitopicplanning
.
ai_report
(
Aibook_file_text
)
self
.
aitopicplanning
.
ai_report
(
Aibook_file_text
)
time
.
sleep
(
5
)
time
.
sleep
(
150
)
ws_error
(
1
)
time
.
sleep
(
3
)
# AI选题策划编辑-去竞品分析
@allure.feature
(
"去竞品分析流程"
)
def
test_report
(
self
):
self
.
aitopicplanning
.
ai_analysis
(
Aibook_file_text
)
time
.
sleep
(
50
)
ws_error
(
1
)
time
.
sleep
(
3
)
# AI选题策划编辑-导出数据
@allure.feature
(
"导出数据流程"
)
def
test_report
(
self
):
self
.
aitopicplanning
.
ai_exportdata
(
Aibook_file_text
)
time
.
sleep
(
15
)
ws_error
(
1
)
ws_error
(
1
)
time
.
sleep
(
3
)
time
.
sleep
(
3
)
...
...
script/test_AiNewmediaeditor.py
View file @
a290951c
...
@@ -38,7 +38,7 @@ class TestAiNewmediaeditor:
...
@@ -38,7 +38,7 @@ class TestAiNewmediaeditor:
@allure.feature
(
"上传直播间口播稿流程"
)
@allure.feature
(
"上传直播间口播稿流程"
)
def
test_find_broadcasting
(
self
):
def
test_find_broadcasting
(
self
):
self
.
ainewmediaeditorPage
.
update_ai_broadcasting
(
AiNewmediae_text
,
updata_AiNewmediae_path
)
self
.
ainewmediaeditorPage
.
update_ai_broadcasting
(
AiNewmediae_text
,
updata_AiNewmediae_path
)
time
.
sleep
(
6
0
)
time
.
sleep
(
5
0
)
ws_error
(
2
)
ws_error
(
2
)
time
.
sleep
(
3
)
time
.
sleep
(
3
)
...
...
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