上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 33 下一页
摘要: https://www.cnblogs.com/shamo89/p/6707898.html 阅读全文
posted @ 2020-10-09 14:06 左岸丶 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-09-30 16:30 左岸丶 阅读(172) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/mieleizhi0522/article/details/82142856/ 阅读全文
posted @ 2020-09-27 15:45 左岸丶 阅读(58) 评论(0) 推荐(0) 编辑
摘要: Python中os与sys两模块的区别 os与sys模块的官方解释如下: os: This module provides a portable way of using operating system dependent functionality. 这个模块提供了一种方便的使用操作系统函数的方 阅读全文
posted @ 2020-09-21 14:37 左岸丶 阅读(218) 评论(0) 推荐(0) 编辑
摘要: import sys,os sys.path.append(os.getcwd()) #将当前工作目录加入path #sys.path.append:添加环境变量 #os.getcwd:返回当前工作目录(注意是工作目录cwd哦) import sys,os sys.path.append(os.pa 阅读全文
posted @ 2020-09-21 14:32 左岸丶 阅读(3931) 评论(0) 推荐(0) 编辑
摘要: Pytest插件 插件列表网址:https://plugincompat.herokuapp.com,包含了很多插件包 一、调整测试用例的执行顺序 安装:pip install pytest-ordering 在测试方法上加下面装饰器 @pytest.mark.last #最后一个执行 @pytes 阅读全文
posted @ 2020-09-20 15:02 左岸丶 阅读(258) 评论(0) 推荐(0) 编辑
摘要: pytest 6.0.2 一、Pytest运行方式 测试类主函数模式 import pytest if __name__ == "__main__": pytest.main() #自动搜寻所有目录下的适合文件并执行 pytest.main(['./scripts/']) #指定目录 pytest. 阅读全文
posted @ 2020-09-20 11:23 左岸丶 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 传送门 阅读全文
posted @ 2020-09-15 09:38 左岸丶 阅读(172) 评论(0) 推荐(0) 编辑
摘要: vscode插件记录 Chinese (Simplified) Language Pack for Visual Studio Code配置中文语言 Comment Translate注释翻译 Rainbow Fart程序员彩虹屁插件 Python运行python代码 Pylancepython增强 阅读全文
posted @ 2020-09-14 14:32 左岸丶 阅读(191) 评论(0) 推荐(0) 编辑
摘要: UnitTest 单元测试框架,使用时需要导入unitest,所有测试类需要继承unittest.TestCase import unittest class Test_A(unitest.TestCase): def test_01(self): print('test_01') if __nam 阅读全文
posted @ 2020-09-12 15:53 左岸丶 阅读(137) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 33 下一页