会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
楠峰岚
博客园
首页
新随笔
联系
订阅
管理
[置顶]
天气接口测试用例生成报告
摘要: 运行代码如下: import unittest,timefrom BSTestRunner import BSTestRunner# 接口测试报告生成(BSTestRunner)的下载地址:https://github.com/easonhan007/HTMLTestRunner# 下载完后放到py
阅读全文
posted @ 2020-05-24 15:44 菌子石雨
阅读(400)
评论(0)
推荐(0)
2023年10月22日
pytest之conftest文件使用
摘要: 略
阅读全文
posted @ 2023-10-22 17:45 菌子石雨
阅读(31)
评论(0)
推荐(0)
pytest常用装饰器
摘要: setup/teardown,setup_class/teardown_class方法作用 # -*- coding: utf-8 -*- # @Time : 2023/10/22 19:59 # @File : test_demo.py # @Software: PyCharm # @Functi
阅读全文
posted @ 2023-10-22 17:45 菌子石雨
阅读(111)
评论(0)
推荐(0)
pytest运行参数与ini配置
摘要: pytest测试用例的运行方式 主函数模式 (1)运行所有:pytest.main() (2)指定模块:pytest.main(['-vs','test_demo.py']) (3)指定目录:pytest.main(['-vs','./test_case']) (4)通过nodeid指定用例运行:n
阅读全文
posted @ 2023-10-22 17:43 菌子石雨
阅读(601)
评论(0)
推荐(0)
pytest简介和环境安装
摘要: pytest简介 pytest是一个用于Python的测试框架。它是一个功能强大且易于使用的工具,用于编写和运行单元测试、集成测试和功能测试。pytest提供了丰富的功能和灵活的用例编写风格,使得测试代码编写变得简单而高效。 使用pytest,可以编写独立的测试函数或方法,使用断言来验证代码的行为是
阅读全文
posted @ 2023-10-22 17:43 菌子石雨
阅读(20)
评论(0)
推荐(0)
2021年5月21日
jsonpath使用
摘要: import jsonpath x={ "store": { "book": [ { "category": "reference", "author": "Nigel Rees", "title": "Sayings of the Century", "price": 8.95 }, { "cat
阅读全文
posted @ 2021-05-21 09:12 菌子石雨
阅读(53)
评论(0)
推荐(0)
2020年12月20日
python小知识,字典
摘要: 知识融合在代码中 """ create:2020年12月20日 功能:字典的部分使用方法 """ #空字典 dic={} print("dic:",type(dic)) dic1=dict() print("dic1",type(dic1)) #通过映射函数创建字典 list1=["name","a
阅读全文
posted @ 2020-12-20 10:37 菌子石雨
阅读(76)
评论(0)
推荐(0)
2020年12月19日
python小知识,列表推导式
摘要: 使用列表推导式可以快速生成一个列表,或者根据某个列表生成满足指定需求的列表。 1、生成指定范围的数值列表,语法格式如下: list=[Expression for var in range if condition] list:表示生成列表的名称 Expression :表达式,用于计算列表的元素
阅读全文
posted @ 2020-12-19 16:55 菌子石雨
阅读(252)
评论(0)
推荐(0)
python小知识,sort和serted的区别
摘要: 列表对象sort()方法和内置sorted()函数的作用基本相同,但,不同的是sort会改变原有列表的顺序,而sorted不会 具体示例如下: """ create:2020年12月19日 作用:说明sort和sorted的区别 """ # 列表对象sort()方法和内置sorted()函数的作用基
阅读全文
posted @ 2020-12-19 16:35 菌子石雨
阅读(229)
评论(0)
推荐(0)
2020年12月2日
如何查看app启动的activity
摘要: adb 查看 使用adb shell 进入安卓的linux系统 拿QQ做例子: monkey -p com.tencent.mobileqq -v -v 1 #启动一次 启动页面为:com.tencent.mobileqq/.activity.SplashActivity 或者打开想要知道的app,
阅读全文
posted @ 2020-12-02 10:53 菌子石雨
阅读(1534)
评论(1)
推荐(0)
2020年11月5日
adb基础命令
摘要: adb运行原理: 启动一个 adb 客户端时,此客户端首先检查是否有已运行的 adb 服务器进程。如果没有,它将启动服务器进程。当服务器启动时,它与本地 TCP 端口 5037 绑定,并侦听从 adb 客户端发送的命令—所有 adb 客户端均使用端口 5037 与 adb 服务器通信。 查看adb版
阅读全文
posted @ 2020-11-05 09:54 菌子石雨
阅读(122)
评论(0)
推荐(0)
下一页
公告