03 2019 档案

摘要:一、创建假文件(需要有安装Git) 如下图,右键点击 Git Bash Here,在弹出的命令窗口输入如下命令:dd if=/dev/zero of=20M.MP4 bs=1M count=20 二、发送邮件 import smtplib from email.mime.text import MI 阅读全文
posted @ 2019-03-30 16:44 whitewall 阅读(250) 评论(0) 推荐(0)
摘要:一、用Excel编写用例(xlsx格式) 截图仅供参考,实际用例编写需要根据实际情况来。 二、用例加载、验证 1、数据的加载 2、数据使用 3、单个目标验证 4、整个response验证,这里是以单个目标验证为基础的方法 三、实例 阅读全文
posted @ 2019-03-27 21:29 whitewall 阅读(703) 评论(0) 推荐(0)
摘要:一、unittest模块 二、加载用例集的几种方式 1、简单的添加,入门了解用 注:Demo3是模块名,test3是类名,test11、test22是单个用例名 2、路径加载的方式 三、用测试报告输出测试结果 这里有引用测试模板的方法来运行用例集,并生成html测试报告 阅读全文
posted @ 2019-03-25 20:46 whitewall 阅读(328) 评论(0) 推荐(0)
摘要:一、日志打印 import os import logbook from logbook.more import ColorizedStderrHandler from functools import wraps check_path='.' LOG_DIR = os.path.join(chec 阅读全文
posted @ 2019-03-25 20:10 whitewall 阅读(988) 评论(0) 推荐(0)
摘要:一、请求方式:get、post、put、delete、head、options 二、cookies 应用:通过fiddler抓包获取登录前后cookies的差异,然后将差异set到刚登录的cookies中,再次请求就能登录了。 三、上传文件 四、xml转json 例子: 阅读全文
posted @ 2019-03-19 19:53 whitewall 阅读(254) 评论(0) 推荐(0)
摘要:一、参数传递 #包裹位置传递 def func(*name): print( type(name), name) func(1,4,6) func(5,6,7,1,2,3) ''' 运行结果: <class 'tuple'> (1, 4, 6) <class 'tuple'> (5, 6, 7, 1 阅读全文
posted @ 2019-03-17 15:04 whitewall 阅读(282) 评论(0) 推荐(0)
摘要:一、时间 import time print('获取当前时间<str类型>: ', time.strftime('%Y-%m-%d %H:%M:%S',time.localtime()) ) #获取当前时间<str类型>: 2019-03-14 21:53:28 print('获取当前时间戳<flo 阅读全文
posted @ 2019-03-14 20:49 whitewall 阅读(282) 评论(0) 推荐(0)
摘要:一、filter(function, sequence): 对sequence中的item依次执行function(item),将执行结果为True的item组成一个List/String/Tuple(取决于sequence的类型)。 filter(function or None, sequenc 阅读全文
posted @ 2019-03-13 19:42 whitewall 阅读(1259) 评论(0) 推荐(1)
摘要:一、oracle常用数据类型 二、日期查询 select * from table where date_create >to_date('2019-03-12 20:07:19','yyyy-mm-dd hh24:mi:ss') 三、sql执行顺序 查询中用到的关键词主要包含六个,并且他们的书写顺 阅读全文
posted @ 2019-03-10 13:01 whitewall 阅读(344) 评论(0) 推荐(0)
摘要:一、插件:Email Extension 二、系统设置(以下三步都是同一个发件箱) 1、系统管理员邮件地址 (必须要配置) 2、Extended E-mail Notification(和第一步同一个邮箱) 3、E-mail Notification邮件通知设置如下,点击Test configura 阅读全文
posted @ 2019-03-09 18:54 whitewall 阅读(289) 评论(0) 推荐(0)
摘要:一、新增 1.1【插入单行】:insert into <表名> (列名) values (列值) 1.2【将现有表数据添加到一个已有表】:insert into <已有表> (列名) select <原表列名> from <原表名> 例:insert into tongxunlu ('姓名','地址 阅读全文
posted @ 2019-03-07 20:50 whitewall 阅读(282) 评论(0) 推荐(0)
摘要:一、卸载mysql 因为很久之前装过mysql,很多东西忘了,所以在写下这篇文章总结时就准备重新来一遍。 1、打开控制面板,点击程序和功能,卸载MySQL; 2、win+r键,运行regedit,按HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Ev 阅读全文
posted @ 2019-03-06 20:50 whitewall 阅读(258) 评论(0) 推荐(0)
摘要:1、下载地址:https://jenkins.io/download/ 2、点击jenkins.msi傻瓜式安装即可 3、插件安装(系统管理--》插件管理) 1)因为源码是本地的gitblit上,所以需要安装git相关插件; 2)HTML报告插件:htmlpublisher 4、设置 1)系统管理- 阅读全文
posted @ 2019-03-02 17:40 whitewall 阅读(241) 评论(0) 推荐(0)