2017年8月24日

python3调用webservice接口之多参数传递

摘要: from suds.client import Client def func(url, operation, *args):'''接口调用''' client = Client(url) result = eval("client.service.%s" % operation)(*args) # 阅读全文

posted @ 2017-08-24 11:42 sammy1989 阅读(2817) 评论(0) 推荐(0) 编辑

2017年8月4日

python3删除公司邮件

摘要: #coding:GBK'''Created on 2017年8月4日 @author: peiwenxiang''' import timeimport reimport osfrom selenium import webdriverfrom selenium.webdriver.support 阅读全文

posted @ 2017-08-04 16:24 sammy1989 阅读(1237) 评论(0) 推荐(0) 编辑

2017年3月21日

Python之TestLink模块

摘要: 1.安装:pip install TestLink-API-Python-client 2.Python连接上TestLink: 3.获取TestLink上的信息: 4.获取test suite: 5.创建测试用例集: 6.创建测试用例: 7.获取测试用例: 8.发送测试结果给TestLink: 备 阅读全文

posted @ 2017-03-21 14:39 sammy1989 阅读(5585) 评论(0) 推荐(0) 编辑

2017年3月16日

删除所有的.svn文件夹

摘要: 将“Delete SVN Folders”操作添加到右击菜单中 建立一个文本文件,名称随意,后缀为.reg,内容如下: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Del 阅读全文

posted @ 2017-03-16 10:23 sammy1989 阅读(115) 评论(0) 推荐(0) 编辑

2017年3月15日

Python 之解析配置文件模块ConfigParser

摘要: # coding:utf-8import configparser# 初始化cf = configparser.ConfigParser()cf.read('testconfig.conf', encoding='utf-8')# 获取指定section的配置信息host = cf['db']['d 阅读全文

posted @ 2017-03-15 14:45 sammy1989 阅读(151) 评论(0) 推荐(0) 编辑

2017年3月6日

SonarQube代码质量管理平台

摘要: 准备工作: 1、 jdk、jre下载(网上自行下载,下载最新版,此手册用的是jdk_1.8,jre8); 2、 sonarqube:http://www.sonarqube.org/downloads/(下载最新版,此手册用的是SonarQube 6.2); 3、 SonarQube+Scanner 阅读全文

posted @ 2017-03-06 17:29 sammy1989 阅读(320) 评论(0) 推荐(0) 编辑

2017年2月28日

SVN代码统计工具StatSVN

摘要: StatSVN下载 下载地址:https://sourceforge.net/projects/statsvn/ StatSVN使用 使用须知 StatSVN的运行需要Java的运行环境,所有需要安装Java的运行环境(Java Runtime Environment)。JRE可以从Sun的网站上下 阅读全文

posted @ 2017-02-28 11:41 sammy1989 阅读(831) 评论(0) 推荐(0) 编辑

2017年2月20日

python 3接口测试

摘要: Post方式: urllib库 requests库 Get方式: urllib库 requests库 参考地址: http://blog.csdn.net/liuchunming033/article/details/45538205 http://cuiqingcai.com/2556.html 阅读全文

posted @ 2017-02-20 11:15 sammy1989 阅读(208) 评论(0) 推荐(0) 编辑

2016年12月13日

python+selenium使用chrome时,报错ignore certificate errors

摘要: 问题描述: 使用python+selenium打开chrome浏览器的时候,页面会报下面小黄块的错误。 代码: #coding:utf-8 from selenium import webdriverimport time driver = webdriver.Chrome()driver.get( 阅读全文

posted @ 2016-12-13 10:41 sammy1989 阅读(653) 评论(0) 推荐(0) 编辑

2016年12月6日

python3发送邮件(有附件)

摘要: python3发送邮件(有附件) 代码一: import smtplibfrom email.mime.text import MIMETextfrom email.mime.multipart import MIMEMultipartfrom email.mime.image import MIM 阅读全文

posted @ 2016-12-06 16:01 sammy1989 阅读(10390) 评论(0) 推荐(0) 编辑

导航