08 2022 档案

摘要:#django文档:https://docs.djangoproject.com/en/4.1/howto/static-files/ 阅读全文
posted @ 2022-08-31 23:03 zwx901323 阅读(19) 评论(0) 推荐(0) 编辑
摘要:python -m venv env .\env\Scripts\activate 阅读全文
posted @ 2022-08-31 22:25 zwx901323 阅读(16) 评论(0) 推荐(0) 编辑
摘要:1. 创建django程序 终端命令:django-admin startproject sitename (在当前目录下创建一个Django程序) IDE创建Django程序时,本质上都是自动执行上述命令 其他常用命令: python manage.py runserver ip:port (启动 阅读全文
posted @ 2022-08-29 22:35 zwx901323 阅读(92) 评论(0) 推荐(0) 编辑
摘要:一、unittest与HTMLtestrunner生成带日志的测试报告 下载项目 https://github.com/huilansame/htmltestRunner_PY3 #gthub项目地址 项目解析说明 import unittest from HTMLTestRunner_PY3 im 阅读全文
posted @ 2022-08-21 17:07 zwx901323 阅读(45) 评论(0) 推荐(0) 编辑
摘要:一、基础演示 import unittest class TestClass(unittest.TestCase): @classmethod def setUpClass(cls) -> None: print("类开始方法") @classmethod def tearDownClass(cls 阅读全文
posted @ 2022-08-19 08:40 zwx901323 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-08-19 07:53 zwx901323 阅读(8) 评论(0) 推荐(0) 编辑
摘要:一、语句覆盖:基础覆盖 二、判断覆盖: 三、条件覆盖:最常用的方法 四、路径覆盖: 阅读全文
posted @ 2022-08-19 07:51 zwx901323 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-08-19 07:43 zwx901323 阅读(4) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/Avicii2018/p/16391336.html 问题描述:写好test.py文件和pytest.ini文件后,报错:UnicodeDecodeError: 'gbk' codec can't decode byte 0xb0 1.选择pytest 阅读全文
posted @ 2022-08-14 12:38 zwx901323 阅读(59) 评论(0) 推荐(0) 编辑
摘要:一、 安装allure 1.下载Allure安装包:https://github.com/allure-framework/allure2/releases/ 2.添加到环境变量 3.pip安装包:pip install allure-pytest 4.配置pytest.ini文件 #https:/ 阅读全文
posted @ 2022-08-14 12:36 zwx901323 阅读(419) 评论(0) 推荐(0) 编辑
摘要:一、jsonpath的安装以及简单使用 #安装: pip install jsonpath import jsonpath json_data = { "log": { "version": "1.2", "creator": { "name": "WebInspector", "version": 阅读全文
posted @ 2022-08-13 08:02 zwx901323 阅读(448) 评论(0) 推荐(0) 编辑
摘要:一、yaml的使用说明 #定义yaml,读取操作 https://www.cnblogs.com/zwx901323/p/16541786.html 二、pytest框架数据驱动方式说明 import pytest class Testfirst: @pytest.mark.parametrize( 阅读全文
posted @ 2022-08-01 22:59 zwx901323 阅读(254) 评论(0) 推荐(0) 编辑
摘要:一、快速上手 定义一个yaml文件 #这是一个老师注释,注意冒号之后要有【空格】 teacher: name: 桃子老师 name: 毛毛老师 student: name: tom name: jerry 读取yaml文件 pip install pyyamlimport yaml def read 阅读全文
posted @ 2022-08-01 20:49 zwx901323 阅读(509) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示