Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit readme.md #1

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.idea/
5 changes: 1 addition & 4 deletions .idea/auto-Testing.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

5 changes: 5 additions & 0 deletions Module/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/python
# -*- coding=utf-8 -*-
# author : Lenovo
# date: 2021/7/5 14:33
# version: 0.1
Binary file added Module/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file added Module/__pycache__/login.cpython-38.pyc
Binary file not shown.
39 changes: 39 additions & 0 deletions Module/login.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/usr/bin/python
# -*- coding=utf-8 -*-
# author : Lenovo
# date: 2021/7/5 14:33
# version: 0.1
from tools.logger import Loggings
logger = Loggings()
from tools.Httprequest import httprequest
from tools.excel_util import excel_util

import json
class login(httprequest):
def __init__(self):
self.token = None
def login_success(self,url,data,headers):
reponce = self.postform(
url=url,
data=data,
headers=headers
)
return reponce





if __name__=='__main__':
file = './../data/logindata.xlsx'
excel = excel_util(file, 'Sheet1')
testData = excel.next()
logger.info(testData)
for i in range(len(testData)):
url = testData[i]['url']
data = testData[i]['data']
headers = testData[i]['headers']
runner = login()
runner.login_success(url=url,
data=json.loads(data),
headers=json.loads(headers))
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
主要包含python 自动化系列,测试框架,持续集成,持续交付<br>
git add .<br>
git commit -m ''<br>
##![](https://img.shields.io/badge/python-brightgreen.svg)
![](https://img.shields.io/badge/python-brightgreen.svg)
Loading