自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

原创 软件测试总结温习

一、数据库sql基础温习1、简单死板的sql常见的查询sqlasc 升序 不写关键字Asc/Desc,默认按Asc排序desc 降序use database_name 选择数据库show colums from biao 显示一个表的所有列信息select distinct xxx from biao limit 5 显示不同xxx//筛选select top 6 xxx from biao where name='yyy'se

2021-12-09 14:15:33 431

原创 jmeter+jenkins+antd搭建

关于工具间的整体关联,有以下文档说明一、问题描述1.在使用jmeter工具进行接口回归测试时,多条用例测试需要重复开启用例文件。耗费测试时间也耗费本机内存(引起电脑卡死,造成测试效率下降)。2.一个jmeter文件包含很多测试用例,打开时需要很长时间。3.测试的结果在工具中显示不直观。并且一旦关闭或者打开了其他用例,测试的结果就丢失了。4.测试结果需要经过再整理形成测试报告,花费大量时间...

2019-07-30 18:12:20 231

原创 ddt驱动下的case批量执行

import HTMLTestRunnerimport unittestfrom business.Login_business import login_testfrom business.Shixin_business import shixin_testif __name__ == '__main__':file_path="D:\\python_demoset_all\\r...

2019-03-07 17:11:17 265

原创 python+selenium:日志的封装

#coding=utf-8##logimport loggingimport osimport datetimeclass userlog: def __init__(self): self.logger=logging.getLogger() ###logger日志级别设置 self.logger.setLevel(logging....

2019-03-04 14:21:06 400

原创 python 简单读取 excel 数据并存储为list

#coding=utf-8import xlrdclass excel_read: def __init__(self, excel_path=r'D:\\python_demoset\\util\\case.xls',encoding='utf-8',index=0): self.data=xlrd.open_workbook(excel_path) ##获取文本对...

2019-02-24 12:23:53 20459 3

原创 python selenium :ddt与非ddt代码

from login_package.business.login_business import login_businessfrom selenium import webdriverimport unittestimport osimport HTMLTestRunnerimport tracebackimport timeimport ddt@ddt.ddtclass...

2019-02-21 16:32:07 274

原创 python的数据驱动ddt简单实例

#coding=utf-8import ddtimport unittest@ddt.ddtclass DataTest(unittest.TestCase): def setUp(self): print("这个是setup") def tearDown(self): print("这是后置条件") @ddt.data( ...

2019-02-19 21:05:44 372

原创 selenium中对 case的异常跟踪

def tearDown(self): time.sleep(2) for method_name,errors in self._outcome.errors: if errors: case_name=self._testMethodName file_path=os.pa...

2019-02-18 11:00:16 264

原创 python关于 unittest的常见用法:前置条件与后置条件

import unittestclass first_case(unittest.TestCase): @classmethod def setUpClass(cls): ##执行一次 print("这是所有case的前置条件"+'\n') @classmethod def tearDownClass(cls): ##执行一次 ...

2019-02-16 14:21:54 2449

原创 列表、字典、集合筛选+元素命名

# def fun():# import rangeimport randomfrom collections import namedtuple#####列表筛选##################################def sort(): ##使用现成函数 data =[2,3,-9,8,10] list_sort=list(filter(lambd...

2019-02-13 14:53:42 174

原创 python语法特点之一实例:变量交换

x,y = y,x

2019-02-13 10:18:52 152

原创 python追加txt和csv文件

class read_file_sum(): def __init__(self, read_path,write_path,IS_delete_first=False): self.read_path=read_path self.write_path=write_path self.IS_delete_first=IS_delete_f...

2019-01-23 17:51:16 916

原创 python追加文件

#coding=utf-8# -*- coding: utf-8 -*-def read_to_write(read_path,write_path,IS_delete_first=False): dataSource = list() import os import sys print(sys.path) with open(read_path, e...

2019-01-23 14:49:05 2171

原创 python写文件,出现编码格式问题

解决方案如下1、在读写函数中加入 encoding=‘utf-8’此举可以避免代码编译时报错2、上述执行后,发现写入文件的数据是乱码那么需要把文件比如txt本身保存为utf-8形式这样写入的文件就不会是乱码形式...

2019-01-22 16:28:50 420

原创 python读取json文档

// An highlighted blockvar foo = 'bar';@import jsonfrom pprint import pprintdef opentxt(path): # 打开rxt datas = list() with open(path,encoding='gbk') as fb: while True: ...

2019-01-10 11:43:23 238

原创 json内容排序与对比

使用文档对比工具时候发现,即使内容完全相同的json文本,由于位置顺序不一样就会导致文档对比工具检测出很多“无用的差异”偶然发现python中的json.loads函数可以一次梳理json顺序问题附上排序demo与文本对比工具import jsonfrom pprint import pprintdef opentxt(path): # 打开rxt datas = list...

2019-01-09 17:27:36 1365

原创 linux学习笔记-文件I/O

文件I/O主要内容是文件读写read,write,lseeklseek:主要设置偏移量使用场景一:多个进程对同一份文件进行操作,此时需要对不同进程划分不同的偏移量,偏移量可以理解为文件内容的指针使用场景二:获取一个文件的字节总数readwrite原子操作:把多步骤合并成一个操作使用场景:多个函数同时对同一个文件进行读写或者创建操作,此时会存在冲突具体实例:pread函数(re...

2018-10-13 23:50:40 142

原创 linu学习笔记-父进程与子进程的关系(通俗理解)

以一个简单C程序说明代码运行环境信息:unbuntu 16.04C程序功能解释:执行程序中,输入一个linux 指令,并得到linux指令输出结果 #include "apue.h" #include <sys/wait.h> int main(void) { char buf[MAXLINE]; /* from apue.h...

2018-10-13 12:19:06 17530

原创 linux运行简单的C程序

学习笔记-linux运行简单的C程序linux运行简单的C程序linux环境:centos7环境条件:linux可连接网络安装必要的运行C程序的文件 1.安装apue.h文件 linux中执行下载命令 wget http://www.apuebook.com/src.3e.tar.gz 2. 解压下载的安装包: tar xvf src.3e.tar.gz ...

2018-10-10 20:25:02 375

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除