摘要:
https://www.cnblogs.com/shamo89/p/6707898.html 阅读全文
摘要:
ab命令做简单压测 ab -c 10 -n 100 https://baidu.com/ # -c 10 表示并发用户数为10 # -n 10 表示请求总数为100 [root@sxlc-152 siyang]# ab -c 10 -n 100 https://baidu.com/ This is 阅读全文
摘要:
https://blog.csdn.net/mieleizhi0522/article/details/82142856/ 阅读全文
摘要:
Python中os与sys两模块的区别 os与sys模块的官方解释如下: os: This module provides a portable way of using operating system dependent functionality. 这个模块提供了一种方便的使用操作系统函数的方 阅读全文
摘要:
import sys,os sys.path.append(os.getcwd()) #将当前工作目录加入path #sys.path.append:添加环境变量 #os.getcwd:返回当前工作目录(注意是工作目录cwd哦) import sys,os sys.path.append(os.pa 阅读全文
摘要:
Pytest插件 插件列表网址:https://plugincompat.herokuapp.com,包含了很多插件包 一、调整测试用例的执行顺序 安装:pip install pytest-ordering 在测试方法上加下面装饰器 @pytest.mark.last #最后一个执行 @pytes 阅读全文
摘要:
pytest 6.0.2 一、Pytest运行方式 测试类主函数模式 import pytest if __name__ == "__main__": pytest.main() #自动搜寻所有目录下的适合文件并执行 pytest.main(['./scripts/']) #指定目录 pytest. 阅读全文
摘要:
vscode插件记录 Chinese (Simplified) Language Pack for Visual Studio Code配置中文语言 Comment Translate注释翻译 Rainbow Fart程序员彩虹屁插件 Python运行python代码 Pylancepython增强 阅读全文
摘要:
UnitTest 单元测试框架,使用时需要导入unitest,所有测试类需要继承unittest.TestCase import unittest class Test_A(unitest.TestCase): def test_01(self): print('test_01') if __nam 阅读全文