- 博客(21)
- 收藏
- 关注
原创 BDD测试之Behave使用入门
BDD测试(Behavior-Driven Development Testing)是一种基于“行为驱动开发”(BDD)理念。
2023-06-16 16:55:03
414
原创 diffy接口测试demo
diffy接口测试demodiffy原理图,这里就不讲了,可以去github看文档。这里就记录下写的小demo~使用flask编写一个接口脚本作为 primary code,app.py(写了一个 /hello 的get接口);复制一份primary code作为备份,app_bak.py;修改primary code 作为待测版本,app_candidate.py(在 /hello 中增加字段 “name“);克隆diffy源码并进行sbt编译git clone https://gith
2022-05-18 21:22:29
1432
原创 Appium报错Original error: Could not proxy command to the remote server. Original error: socket hang up
Appium 报错 socket hang up
2022-03-23 17:44:10
9753
2
原创 pytest运行多条用例命令
执行包下所有用例:pytest/py.test 包名执行单独一个pytest模块:pytest 文件名.py执行某个类:pytest 文件名.py::类名执行某个方法:pytest 文件名.py::类名::方法名
2021-11-19 11:55:53
1707
原创 探究京东商城的数据建模
探究京东的数据建模1.数据建模介绍1.1 什么是数据建模?数据建模指的是对现实世界各类数据的抽象组织,确定数据库需管辖的范围、数据的组织形式等直至转化成现实的数据库。 将经过系统分析后抽象出来的概念模型转化为物理模型后,在visio或erwin等工具建立数据库实体以及各实体之间关系的过程(实体一般是表)。在软件工程中,数据建模是运用正式的数据建模技术,建立信息系统的数据模型的过程。数据模型:是现实世界数据特征的抽象,用于描述一组数据的概念和定义。是数据库中数据的组织和存储方式,是数据库系统的核
2021-08-11 21:02:50
2223
原创 Appium报错InvalidArgumentException: Message: invalid argument: invalid locator
使用xpath定位元素,报错:selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: invalid locator。解决办法:需要在创建driver时增加2个参数。caps[‘chromeOptions’] = {‘w3c’:False}caps[‘showChromedriverLog’] = True参考:https://github.com/appium/appium/issues/133
2021-01-30 14:27:01
9121
5
原创 Appium报错:This version of ChromeDriver only supports Chrome version 84
报错信息:Original error: A new session could not be created. Details: session not created: This version of ChromeDriver only supports Chrome version 84 ,提示chromedriver版本与测试app版本不一致。解决办法:需要把appium目录下的chromedriver修改为app chromedriver对应版本。chromedriver下载路径,wind
2021-01-30 14:22:56
621
原创 Windows环境Appium使用报错
Windows环境Appium使用报错1.使用cmd命令启动appium,确保每次只启动一个appium serverappium --session-override --no-reset2.提示无法使用appium安装appium-doctor 全局环境:cnpm install s-g appium-doctor将appium-doctor安装路径配置到Path环境变量中安装appium:cnpm install -g appium...
2021-01-30 14:08:38
222
原创 python3使用pip安装yaml报错
python3.x安装yaml报错 No matching distribution found for yaml(AUT) E:\Aproject\AUT>pip install yamlERROR: Could not find a version that satisfies the requirement yamlERROR: No matching distribution found for yaml解决:python3.X只能使用pip install pyyaml 来安装
2021-01-30 14:06:14
4589
1
原创 Mac使用adb命令无法检测到mumu模拟器
打开mumu模拟器,执行adb devices,一直显示list of devices attached。解决:执行adb connect 127.0.0.1:5555提示:connected to 127.0.0.1:5555执行adb kill-server执行adb start-server执行adb devicesList of devices attachedemulator-5554 device大功告成参考:https://blog.youkuaiyun.com/
2021-01-27 00:33:11
2398
1
原创 Mac搭建Airtest iOS自动化测试环境
Mac搭建Airtest iOS自动化测试环境1.硬件准备一台Mac电脑(Mac OS一台iPhone手机(iOS13.3)2.Mac电脑安装Xcode在App store搜索Xcode,点击下载安装。**PS:**连一个给力的WIFI,Xcode安装包大约11G左右。我安装的是Xcode12.3。3.运行iOS-TagentiOS-Tagent 是基于 WebDriverAgent 项目上进行开发的,可以在手机上创建一个WebDriver服务器,可用于远程控制iOS设备,定位UI
2021-01-16 19:30:41
1930
6
原创 编写网页遇到的样式问题
input标签,写日期选择器,提示“Form input without an associated label or title attribute”。**原因:**使用的pycharm编辑器,遵循html5的标准,**解决办法:**语法提示,可以忽略。给 或者 添加一个label或者添加 placeholder 属性,就不会出问题了。input标签,写提交按钮,位置紧挨着上一...
2020-03-30 15:26:45
213
原创 使用jquery给input赋值
使用jquery给input赋值首先,在html中写一个input,设置样式和id。<input type="text" id="msg_input" style="display:none;width: 15%;border:none;text-align: center;font-size:14px;color: red">然后,使用jquery,拿到对应input的id,...
2020-03-29 17:26:14
3867
原创 html如何删除页面table中的一行数据
Html如何删除页面table中的一行数据使用 JS 删除一行数据使用ajax调用后端接口,把需要删除的数据传递给后端 $.ajax({ url:"http://server-name/login", type:'post', data:{ username:'username', pas...
2020-03-29 17:01:19
1508
原创 Webdriver 操作浏览器
Webdriver 操作浏览器1.打开浏览器#打开谷歌浏览器driver = webdriver.Chrome()#打开火狐浏览器driver = webdriver.Firefox()2.打开网址driver.get("https://www.baidu.com")3.判断网页是否有效driver.title #查看页面的titlecurrent_url #查看当前...
2020-03-27 07:07:22
307
原创 安装python 依赖包解决报错问题
安装matplotlib,一直超时,无法安装。pip install matplotlib解决办法:先更新pip:python -m pip install --upgrade pip再次安装,仍然报错:查明原因后,是因为网络不好,总是超时,所以不用官方源,改用阿里镜像pip install matplotlib -i http://mirrors.aliyun.com/p...
2020-03-25 19:47:28
1177
转载 Fiddler无法抓取谷歌浏览器请求
Fiddler无法抓取谷歌浏览器请求Fiddler无法正常抓取谷歌等浏览器的请求_解决方案1-先了解Fiddler工作原理:正常情况下,fiddler是可以抓chrome的请求的。fiddler会自动给浏览器设置一个代理127.0.0.1端口8888,并且记忆浏览器的代理设置,所有的请求先走fiddler代理,再走浏览器代理。查看Fiddler设置代码的图,参见最下备注图。2-谷歌浏览...
2020-03-25 08:58:14
908
原创 接口测试理论学习
一. 什么是接口测试什么是接口接口就是客户端给服务端发出的请求信息。常说的api就是。接口的类型,常见的有get,post,put…等。get指获取信息的接口,指把数据从服务器拉过来。例如:列表查询功能,点击查询调用一个get接口,然后返回信息。post一般是提交表单的功能,是指把内容推到服务端上。如注册,上传,发布帖子等就是post接口。什么是接口测试接口测试是测试系统组件间接...
2020-03-16 08:04:40
167
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人