Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InterfaceAutoTest
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
TestAuto
InterfaceAutoTest
Commits
e65e3d2d
Commit
e65e3d2d
authored
3 years ago
by
taoke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
741c6124
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
common/utils/dingTalk.py
+6
-5
common/utils/getExcelData.py
+2
-1
test_case_data/bmc/bmc_testcase01_20210513.xlsx
+0
-0
No files found.
common/utils/dingTalk.py
View file @
e65e3d2d
...
...
@@ -52,7 +52,7 @@ def dingTalk_markdown(secret,webhook,message):
"markdown"
:
{
"title"
:
"接口执行报告"
,
"text"
:
f
"#### 接口自动化测试报告
\n
> 本消息由Jenkins构建后自动发送
\n
>
\

\n
> ###### {now_time}构建 [斑马信用](http://10.197.236.10:8080/job/bmc/)
\n
"

\n
> ###### {now_time}构建 [斑马信用](http://10.197.236.10:8080/job/bmc/
allure/
)
\n
"
},
'at'
:
{
'isAtAll'
:
False
}}
post_data
=
json
.
dumps
(
data
)
...
...
@@ -63,8 +63,8 @@ def dingTalk_markdown(secret,webhook,message):
if
__name__
==
'__main__'
:
res
=
dingTalk_markdown
(
secret
=
"SEC
1d08f46da74337cc0e1cd5bb9ad19622d825483343fdfa43ce396881e4745bd
b"
,
webhook
=
"https://oapi.dingtalk.com/robot/send?access_token=
f9e005c1a984b9607960345d38669337b1115d1141a0294e98666443b312115b
"
,
res
=
dingTalk_markdown
(
secret
=
"SEC
40a1be4bbd9214e16ba288208fd608b2b590e82e853fa9b24c1850a506c6185
b"
,
webhook
=
"https://oapi.dingtalk.com/robot/send?access_token=
e830b05eeee88da31972099e403a74d05ec55719360707dc44e532c0d0b49cb6
"
,
message
=
"我就是我, @XXX 是不一样的烟火"
)
print
(
res
)
...
...
@@ -72,4 +72,6 @@ if __name__ == '__main__':
# 自动化测试组 - 技术和思路分享 - ----小帅
# SEC40a1be4bbd9214e16ba288208fd608b2b590e82e853fa9b24c1850a506c6185b
# https: // oapi.dingtalk.com / robot / send?access_token = e830b05eeee88da31972099e403a74d05ec55719360707dc44e532c0d0b49cb6
\ No newline at end of file
# https: // oapi.dingtalk.com / robot / send?access_token = e830b05eeee88da31972099e403a74d05ec55719360707dc44e532c0d0b49cb6
This diff is collapsed.
Click to expand it.
common/utils/getExcelData.py
View file @
e65e3d2d
...
...
@@ -56,7 +56,7 @@ def get_excelData(workBook,sheetName,caseName):
if
__name__
==
'__main__'
:
workBook
=
xlrd
.
open_workbook
(
'../../test_case_data/bmc/bmc_testcase01_20210513.xlsx'
)
li
=
get_excelData
(
workBook
,
"
信用分"
,
"creditscore
"
)
li
=
get_excelData
(
workBook
,
"
积分商城"
,
"focusSuccessIntegral
"
)
print
(
li
)
# {"Authorization": "","Content-Type":"application/x-www-form-urlencoded"}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test_case_data/bmc/bmc_testcase01_20210513.xlsx
View file @
e65e3d2d
No preview for this file type
This diff is collapsed.
Click to expand it.
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