会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
不知火
博客园
首页
新随笔
联系
订阅
管理
2021年8月17日
python读取word表格
摘要: #!/usr/bin/python #-*- coding:cp936 -*- from docx import Document from docx.enum.text import WD_PARAGRAPH_ALIGNMENT import re fl_name='/.docx' inpath
阅读全文
posted @ 2021-08-17 11:08 鱼長
阅读(303)
评论(0)
推荐(0)
2021年8月10日
HTMLTestRunner报告
摘要: import urllib3 import unittest import time import os import sys from request.test_2 import RunMethod from HTMLTestRunner import HTMLTestRunner class t
阅读全文
posted @ 2021-08-10 14:37 鱼長
阅读(199)
评论(0)
推荐(0)
2021年5月31日
python +requests做接口自动化
摘要: 1.对方法进行封装 #1、封装get、post #!/usr/bin/env python3 # -*- coding: utf-8 -*- import json import requests class RunMethod: def post_main(self, url, data, hea
阅读全文
posted @ 2021-05-31 18:00 鱼長
阅读(215)
评论(0)
推荐(0)
2020年4月16日
最近公司换成sqlserver数据库;经常需要把表数据转化成插入语句,可用如下语句
摘要: CREATE PROCEDURE dbo.OutputData @tablename sysname AS declare @column varchar(1000) declare @columndata varchar(1000) declare @sql varchar(4000) decla
阅读全文
posted @ 2020-04-16 18:02 鱼長
阅读(211)
评论(0)
推荐(0)
2019年5月31日
使用python的 Requests模块实现简单的接口自动化
摘要: 1.安装Requests; pip install requests 2.在HTTP的请求中,最常使用的分别有GET,POST,通过request库也是可以实现,下面用post方法做接口测试 执行以下就会打印出接口返回结果
阅读全文
posted @ 2019-05-31 16:58 鱼長
阅读(321)
评论(0)
推荐(0)
2019年5月15日
最近在研究接口测试,记录一下关于HTTP响应消息
摘要: HTTP响应消息(服务器返回给浏览器的):一个http响应代表服务器端向客户端回送的数据,它包括:一个状态行,若干个消息头,以及实体内容响应头(消息头)包含:Location:这个头配合302状态吗,用于告诉客户端找谁Server:服务器通过这个头,告诉浏览器服务器的类型Content-Encodi
阅读全文
posted @ 2019-05-15 14:44 鱼長
阅读(157)
评论(0)
推荐(0)
2019年3月29日
用selenium模块实现简单的登录
摘要: 问题:往往不能打开浏览器,需要在python的根目录放一个geckodriver.exe文件
阅读全文
posted @ 2019-03-29 10:21 鱼長
阅读(473)
评论(0)
推荐(0)
2018年7月27日
今天用imp还原数据库,存储过程全部乱码
摘要: 背景:由于新应用要上线了,准生产UAT需要迁移到生产服务器。 原数据库架构为Solaris+oracle10g 新数据库架构为RHEL7+oracle12c 解决思路: 1、查询两台DB的字符编码: select userenv('language') from dual; 均为AMERICAN_A
阅读全文
posted @ 2018-07-27 18:08 鱼長
阅读(438)
评论(0)
推荐(0)
2017年7月26日
python简单加密登陆
摘要: import hashlib def md5(arg): md5_pwd=hashlib.md5(bytes("meac",encoding="utf-8")) md5_pwd.update(bytes(arg,encoding="utf-8")) return md5_pwd.hexdigest()#返回加密的数据 def log(user,pew): tr...
阅读全文
posted @ 2017-07-26 11:49 鱼長
阅读(581)
评论(0)
推荐(0)
2017年7月21日
python3的一个简单爬虫
摘要: #coding=utf-8 import re import urllib.request def getHtml(url): page = urllib.request.urlopen(url) html = page.read() html = html.decode('UTF-8') return html #Urllib 模块提供读取页面数据的接口 #u...
阅读全文
posted @ 2017-07-21 18:08 鱼長
阅读(256)
评论(1)
推荐(0)
下一页
公告