随笔分类 -  Pytest

摘要:例子: { "code": 10000, "msg": "操作成功", "traceId": "", "timestamp": 1715677467068, "data": [ { "id": "509", "name": "休闲套装", "describeContent": "安德玛男女运动休闲套 阅读全文
posted @ 2024-05-14 17:08 悠然现南山 阅读(47) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2024-05-09 16:34 悠然现南山 阅读(16) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/Small-lucky/p/15556153.html 阅读全文
posted @ 2022-09-02 16:59 悠然现南山 阅读(16) 评论(0) 推荐(0)
摘要:链接地址: https://zhuanlan.zhihu.com/p/382158304 阅读全文
posted @ 2022-05-13 17:22 悠然现南山 阅读(57) 评论(0) 推荐(0)
摘要:链接地址: https://www.cnblogs.com/zhuxibo/p/14863835.html 阅读全文
posted @ 2022-05-13 17:11 悠然现南山 阅读(31) 评论(0) 推荐(0)
摘要:场景: 之前大部分参数化都是对测试用例进行参数化用@pytest.mark.parametrize来参数化,但是有的时候,需要对@pytest.fixture进行参数化, 比如一个用户登录后,去新建好多账号,可以用@pytest.mark.parametrize对账号进行参数化,把登录写在@pyte 阅读全文
posted @ 2021-03-05 10:49 悠然现南山 阅读(301) 评论(0) 推荐(0)
摘要:第一种方法pytest-assume插件 原文地址: https://blog.csdn.net/kami_ochin_akane/article/details/109681523 第二种方法try..exception捕获AssertError 原文地址: https://ask.csdn.ne 阅读全文
posted @ 2021-02-25 15:54 悠然现南山 阅读(495) 评论(0) 推荐(0)
摘要:原文地址: https://blog.csdn.net/zhusongziye/article/details/79857543 阅读全文
posted @ 2021-02-22 10:07 悠然现南山 阅读(153) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/qq_42610167/article/details/101204066 阅读全文
posted @ 2020-05-07 14:20 悠然现南山 阅读(619) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/yoyoketang/p/12004145.html 阅读全文
posted @ 2020-04-28 10:02 悠然现南山 阅读(158) 评论(0) 推荐(0)
摘要:https://www.jb51.net/article/181095.htm 阅读全文
posted @ 2020-04-28 09:32 悠然现南山 阅读(235) 评论(0) 推荐(0)
摘要:写在conftest.py文件中,参考链接:https://blog.csdn.net/xiao_feng77/article/details/103902230 #coding:utf-8 from selenium import webdriver import pytest driver = 阅读全文
posted @ 2020-04-23 13:47 悠然现南山 阅读(1279) 评论(0) 推荐(0)
摘要:test_caseskip.py #coding:utf-8 import pytest myskip=pytest.mark.skipif(1==1,reason="skip") test_m1.py #coding:utf-8 import pytest from test_caseskip i 阅读全文
posted @ 2020-04-17 14:52 悠然现南山 阅读(214) 评论(0) 推荐(0)
摘要:https://cloud.tencent.com/developer/article/1554027 阅读全文
posted @ 2020-04-17 14:33 悠然现南山 阅读(476) 评论(0) 推荐(0)