E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
Pyte
pytest 常用的辅助函数和工具函数
=fetch_data()returndata.upper()importloggingimportsysimportpytest#01-------------------------------@
pyte
Lightning-py
·
2024-09-11 01:09
Python
pytest
python
开发语言
pytest分布式执行(pytest-xdist)
pytest3.6.3
pyte
测试萧十一郎
·
2023-11-30 04:57
软件测试
pytest
软件测试
功能测试
自动化测试
程序人生
职场和发展
深入理解 pytest Fixture 方法及其应用!
Fixture方法使用@
pyte
自动化测试老司机
·
2023-11-21 04:03
自动化测试
软件测试
安全测试
pytest
软件测试
jmeter
压力测试
selenium
自动化测试
2023软件测试面试题(亲身经历)
而
Pyte
林家小猪
·
2023-10-16 03:15
经验分享
unittest框架系列一(unittest初识)
本篇unittest系列文章会结合最新的unittest官方文档,包含老的特性的同时,讲解一些新的特性,unittest框架虽然是基础的python测试框架,在测试颗粒度、第三方测试插件支持等方面较
pyte
成都_阿木木
·
2023-10-06 16:04
pytest学习-1
建议单独拿个模块来写主函数进行执行用例--放在根目录)(1)运行所有模块用例:if__name__=="__main__":pytest.main()(2)运行指定模块用例:if__name__=="__main__":
pyte
不会代码的小测试
·
2023-10-02 08:57
python
学习
测试用例
python
pytest-基础
开头示例代码test_001.pyimportpytestclassTestCase:deftest_case(self):print("执行测试用例")二、pytest测试用例的运行方式主函数模式:运行所有:
pyte
XuMeng_first
·
2023-09-17 00:24
pytest
【Pytest实战】Pytest运行方式及参数使用详细教程
上篇文章分享了【Pytest实战】pytest基本概念及使用大全,相信你已经了解到了Pytest的基本概念,本节主要是通过案例的方式为大家分享
Pyte
小曾同学.com
·
2023-09-01 19:56
#
两小时玩转Pytest
Pytest参数使用
Pytest运行方式
pytest.ini
Pytest教程
Pytest
-vs
【Python学习】【自动化测试】使用playwright进行网页自动化测试
playwright提供了同步和异步API,可以结合
Pyte
SoaringXu
·
2023-08-12 13:54
Python相关
程序员
python
playwright
【Pytest实战】pytest 基本概念及使用大全
文章目录一、Pytest是什么1.1
Pyte
小曾同学.com
·
2023-06-16 17:18
#
两小时玩转Pytest
pytest
单元测试
自动化测试
测试开发
pytest_runtest_makereport钩子函数获取测试用例执行结果
pytest_runtest_makereport方法简介先看下相关的源码,在_pytest/runner.py文件下,可以导入之后查看:源码:from_
pyte
测试中二
·
2023-06-13 23:01
pytest框架
测试用例
pytest
如何推进自动化测试?
访问接口的时候,需要传递的数据、方法以及对每个接口响应的验证都是放在excel表中,用例执行之前,通过将excel表中数据全部读取出来,然后通过pytest中的@
pyte
Gakki0725
·
2023-04-13 17:33
pytest安装
有时网络不好或者不稳定时候会出现升级失败的情况,升级时加上默认超时时间就可以了:pip--default-timeout=100install--upgradepippytest的升级:pipinstall-Upytest查看是否安装成功:
pyte
哪吒_Nataku
·
2023-04-13 01:52
pytest
python
servlet
pytest进阶之html测试报告,pytest进阶之html测试报告
(咋就莫名其妙想起这句话了呢,估计看文章看多了,貌似挺多人用这句话过度……)使用pytest-html插件生成测试报告pytest-html生成报告pytest是借助
pyte
缪华武
·
2023-03-22 13:40
pytest进阶之html测试报告
pytest-allure-adaptor插件生成xml格式报告添加环境变量运行allure生成报告效果总结前言Pytest系列已经写了几篇文章了,也不知道对多少人有帮助,总之对于我自己来说该掌握的都已经掌握了,那么今天我们再来说说
pyte
锦都不二
·
2023-03-10 19:54
pytest
自动化测试框架
自动化测试
pytest
自动化测试
Python自动化测试
html
测试用例
当主程序引用了tesseract程序,python打包出来的exe无法在其他电脑上运行的问题的解决方法
提示下面的错误:D:\dist\pt_guodu.pngTraceback(mostrecentcalllast):File"pytesseract\
pyte
py617
·
2023-01-06 15:13
pycharm
python
ide
pycharm创建pytest文件的两种方式
python文件转换成以pytest方式运行的文件1、直接在项目中new一个pythonfile这个pythonfile要以test_xx方式来命名2、不以test_xx方式来命名,需要再做进一步的操作才能以
pyte
Eayon z
·
2023-01-01 09:13
Python
pytest运行
python
pycharm
经验分享
pytest测试自动化
pytest系列教程——10、配置文件pytest.ini
-x遇到错误时停止测试,–maxfail=1出现1个失败就终止测试,等等运行条件if__name__=='__main__':
pyte
软件测试技术
·
2023-01-01 09:13
pytest系列教程
pytest
python
测试工具
Pytest自动化框架运行全局配置文件pytest.ini
在运行
pyte
小梧敲代码
·
2022-11-29 20:33
pytest
软件测试
自动化测试
测试框架
测试工程师
接口自动化框架搭建:python+yaml+request+pytest+allure,实现单接口自动化测试
request+pytest+allure,实现单接口自动化测试前言一、数据驱动二、yaml基本语法三、读取yaml四、测试用例数据驱动五、参数化数据驱动六.使用正在表达式替换参数化数据七、发送请求八、
pyte
姑娘别秃头
·
2022-07-07 07:44
python
接口测试
python
自动化
开发语言
『德不孤』Pytest框架 — 11、Pytest中Fixture装饰器(一)
Fixture是
Pyte
繁华似锦Fighting
·
2022-03-12 21:00
pytest(8)-参数化
在unittest中可以使用ddt进行参数化,而
pyte
给你一页白纸
·
2022-02-17 08:00
pytest-pytest.ini配置用例查找规则
pytest-h查看命令行参数找到[pytest]ini-options[pytest]ini-optionsinthefirstpytest.ini|tox.ini|setup.cfgfilefound:新建
pyte
宇宙歆儿
·
2020-12-15 11:53
pytest
python
pytest进阶之html测试报告
(咋就莫名其妙想起这句话了呢,估计看文章看多了,貌似挺多人用这句话过度……)使用pytest-html插件生成测试报告pytest-html生成报告pytest是借助
pyte
dengying1836
·
2020-08-25 17:19
pytest+allure环境搭建
jdk1.8,这个由于allure-commandline基于java,jdk环境变量配置就不说了;pipinstallpytestpipinstallpytest-htmlpipinstallallure-
pyte
流浪的python
·
2020-08-13 13:20
自动化测试报告
自动化测试
python
从零到精通——pytest+selenium—UI自动化实战全集
项目实战个人实战总结:https://www.yuque.com/zaygee/pytestpytest框架简介&入门selenium简介selenium实战十八式(元素定位、浏览器操作等)PageObject设计模式
pyte
zaygee
·
2020-08-06 12:02
Pytest
Python接口自动化测试框架: pytest+allure+jsonpath+requests+excel实现的接口自动化测试框架(学习成果)
欢迎大家交流指出不合适的地方,源码在文末问题整体代码结构优化未实现,导致最终测试时间变长,其他工具单接口测试只需要39ms,该框架中使用了101ms,考虑和频繁读写用例数据导致环境与依赖名称版本作用python3.7.8
pyte
zy7y
·
2020-08-03 16:00
用django建一个简单到不好意思见人的博客
进入myblog/myblog/settings.
pyTE
小风风大叔
·
2020-06-25 21:35
pytest学习笔记整理
预期异常异常的发生在预期中,实际发生了指定异常则意味着测试通过,使用withpytest.raises()来声明3、函数标记marker一个函数可以有多个marker,一个marker也可以标记多个函数,使用@
pyte
熊二的日常
·
2020-04-17 14:25
pytest
自动化测试
Pytest实战API测试框架
pytest-rerunfailures环境切换pytest-base-url数据分离pyyaml配置分离pytest.ini报告生成pytest-html,allure-pytest用例等级pytest-level限制用例超时时间
pyte
琉璃_233a
·
2020-02-18 05:43
pytest + allure2.x 生成美观的测试报告
allure`生成报告3.打开生成的网页报告Done代码环境python:3.6.8pytest:4.6.3allure:2.12.1allure-pytest:2.6.5背景最近有使用pytest写接口测试,
pyte
feishicheng
·
2019-06-14 15:45
白菜系列--Python
Docker CI: Win7 下 Gitlab 安装与配置
涉及技术:Linux(Ubuntu14.04),Docker,Jenkins,Git/Gitlab,Web/Httpbin,Python/
Pyte
Allan_shore_ma
·
2018-11-05 15:19
测试管理
docker
Git
Docker
CI:持续集成
pytest文档15-使用自定义标记mark
哪些是模块2的,运行代码时候指定mark名称运行就可以mark标记1.以下用例,标记test_send_http()为webtest#contentoftest_server.pyimportpytest@
pyte
上海-悠悠
·
2018-08-20 22:00
python识别图片文字
、环境变量设置C:\Python27\;C:\Python27\Lib\site-packages;C:\Python27\Scripts;C:\Python27\Lib\site-packages\
pyte
chendetent181
·
2018-04-29 15:33
Python
pyte
模块
pytepyte implementsamixofVT100,VT220andVT520specification,andaimstosupportmostoftheTERM=linux functionality.Twoclasses: Stream,whichparsesthecommandstreamanddispatcheseventsforcommands,andScreen which
midion9
·
2016-05-12 09:00
上一页
1
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他