Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apiTest1.0
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
zhangchunyao
apiTest1.0
Commits
e7bde88d
Commit
e7bde88d
authored
Jul 10, 2019
by
zhangchunyao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete runtest.py
parent
0bd91cd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
30 deletions
+0
-30
runtest.py
autoApiTest/runtest.py
+0
-30
No files found.
autoApiTest/runtest.py
deleted
100644 → 0
View file @
0bd91cd4
#coding:utf-8
from
interfacetest
import
xlsx_open
from
interfacetest
import
xlsx_save
from
interfacetest
import
dosheet
from
xlutils.copy
import
copy
from
resultMail
import
sendResultMail
APIPATH
=
'D:/workSpace/Python_workspace/apitest.xls'
#APIPATH='opt/apitest/interfacedata/apitest.xls'
# 打开文件
brd
=
xlsx_open
(
APIPATH
)
# copy文件用于写入结果a
bwt
=
copy
(
brd
)
# 获取cookie
# url = "http://xxx"
# data = {
# "name":"xxx",
# "password":"xxx"
# }
# response = requests.post(url,data)
# c = response.cookies
# cookies = dict(c)
# 执行文件
dosheet
(
brd
,
bwt
,
0
)
# dosheet(brd, bwt, 1, cookies)
# 保存
xlsx_save
(
bwt
,
APIPATH
)
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