会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
OTAKU_nicole
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
17
18
19
20
21
22
23
24
下一页
2020年3月19日
python自动化测试——判断字符类型
摘要: str.isalnum() # 所有字符都是数字或字母 str.isalpha() # 所有字符都是字母 str.isdigit() # 所有字符都是数字 str.islower() # 所有字符都是小写 str.isupper() # 所有字符都是大写 str.istitle() # 所有单词都是
阅读全文
posted @ 2020-03-19 16:45 OTAKU_nicole
阅读(488)
评论(1)
推荐(0)
2019年11月29日
chrome浏览器SwitchyOmega安装与使用
摘要: 一、安装 打开 https://github.com/FelisCatus/SwitchyOmega/releases 下载 下载之后后缀crx改成zip,解压到文件夹 chrome浏览器打开扩展程序,加载已解压的扩展程序,选择SwitchyOmega_Chromium,显示一个错误,不用管,安装完
阅读全文
posted @ 2019-11-29 10:13 OTAKU_nicole
阅读(146844)
评论(0)
推荐(3)
2019年9月10日
postman参数传递
摘要: 例: A接口:新建事项,返回事项id B接口:修改事项,参数需要传事项id 需要把A接口的返回值传给B接口作为参数使用 假设A接口返回值 此时切换到Tests,输入如图 在请求A接口之后,环境变量中会生成一个临时变量ID,存放A接口返回的Id值 B接口在使用时,参数值输入{{ID}}即可。
阅读全文
posted @ 2019-09-10 17:46 OTAKU_nicole
阅读(4127)
评论(0)
推荐(0)
postman添加环境变量
摘要: 通常会有多个测试环境,针对同一个接口来说,可能只是域名有变化,此时可以添加postman的环境变量,用于切换测试环境。 以登录接口为例:https://www.cnblogs.com/nicole-zhang/p/11496543.html 如图,点击右上角齿轮 点击Add 如下图输入后保存 此时右
阅读全文
posted @ 2019-09-10 17:24 OTAKU_nicole
阅读(18946)
评论(0)
推荐(4)
postman调用接口
摘要: postman界面介绍 例:假设一个登录接口 请求方式:POST 接口地址:https://i.cnblogs.com/login 参数: username、password 如下图输入之后,点send即可。
阅读全文
posted @ 2019-09-10 17:09 OTAKU_nicole
阅读(8674)
评论(0)
推荐(0)
python自动化测试——时间戳转日期
摘要: import datetime #十位时间戳 timeStamp = 1568131200 otherStyleTime = datetime.datetime.utcfromtimestamp(timeStamp).strftime("%Y-%m-%d %H:%M:%S") print(other
阅读全文
posted @ 2019-09-10 16:48 OTAKU_nicole
阅读(294)
评论(0)
推荐(0)
2019年8月21日
pytest使用fixture参数化
摘要: import pytest #parametrize参数化 @pytest.mark.parametrize("A", [1, 2, 3, 4, 5]) def test_A(A): assert A > 3 #fixture参数化 B = [1, 2, 3, 4, 5] ids = ['a','b','c','d','e'] @pytest.fixture(params=B,ids=ids) d
阅读全文
posted @ 2019-08-21 17:57 OTAKU_nicole
阅读(999)
评论(0)
推荐(0)
pytest为fixture重命名
摘要: @pytest.fixture(name="renamezhang") def some(): return 1 def test_someA(renamezhang): assert True
阅读全文
posted @ 2019-08-21 17:56 OTAKU_nicole
阅读(251)
评论(0)
推荐(0)
pytest指定fixture作用范围
摘要: pytest --setup-show test_demo.py
阅读全文
posted @ 2019-08-21 17:55 OTAKU_nicole
阅读(552)
评论(0)
推荐(0)
pytest为常用fixture添加autouse选项
摘要: @pytest.fixture(autouse=True) def some(): return 1 def test_someA(): assert True def test_someB(): assert True
阅读全文
posted @ 2019-08-21 17:55 OTAKU_nicole
阅读(731)
评论(0)
推荐(0)
上一页
1
···
17
18
19
20
21
22
23
24
下一页
公告