摘要: 直接上代码:import jsondef json_load(json_file): with open(json_file, 'r') as fh: content = json.load(fh) return content fh.close()def json_save(json_file, 阅读全文
posted @ 2023-12-15 11:42 Gloria_Chen 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 处理文件时发现这个错误: def Load_json(): json_file = 'C:\Python\assets\config.json' with open(json_file, 'r') as fh: data = json.load(fh) print(data) fh.close() 阅读全文
posted @ 2023-12-15 11:15 Gloria_Chen 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 背景介绍 Kafka 是一个消息系统,原本开发自 LinkedIn,用作 LinkedIn 的活动流(Activity Stream)和运营数据处理管道(Pipeline)的基础。现在它已被多家不同类型的公司作为多种类型的数据管道和消息系统使用。LinkIn于2010年贡献给了Apache基金会并成 阅读全文
posted @ 2023-12-01 17:25 Gloria_Chen 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 背景介绍 随着企业的发展,目前的业务线越来越复杂,各个业务系统独立运营。例如:CRM系统只会生产CRM的 数据;Billing只会生产Billing的数据。各业务系统之间只关心自己的数据,导致各业务系统之间数据相互独立,互不相通。一旦业务系统之间进行数据交互,只能通过传统的webservice接口之 阅读全文
posted @ 2023-12-01 16:16 Gloria_Chen 阅读(9) 评论(0) 推荐(0) 编辑
摘要: Guideline: Jmeter.properties file should avoid to be modified , modified user.properties instead >>copy the property in Jmeter.properties into user.pr 阅读全文
posted @ 2023-01-29 13:08 Gloria_Chen 阅读(20) 评论(0) 推荐(0) 编辑
摘要: Run Jmeter in non-GUI mode: 1. Swith to \Jmeter\bin 2. run "jmeter -n -t E:\JmeterforLoadGenesisResulttoRules\JMeter_Moxy\Moxy_Load_Testing.jmx -l E:\ 阅读全文
posted @ 2022-11-24 15:12 Gloria_Chen 阅读(11) 评论(0) 推荐(0) 编辑
摘要: Troubleshooting when run python script in new environment 1. Error: pluggy._manager.PluginValidationError: unknown hook 'pytest_html_report_title' Res 阅读全文
posted @ 2022-11-18 14:59 Gloria_Chen 阅读(96) 评论(0) 推荐(0) 编辑
摘要: Http是一个基于TCP/IP通信协议来传递数据的协议,传输的数据类型为HTML 文件,、图片文件, 查询结果等。明文传输, 不安全。 Https是http + SSL/TLS组成的加密传输. 传输的内容被加密, 相对安全。目前绝大多数网站都采用https协议。 HTTP特点 http协议支持客户端 阅读全文
posted @ 2022-07-03 22:05 Gloria_Chen 阅读(41) 评论(0) 推荐(0) 编辑
摘要: yaml 是一种数据格式, 它可以和json数据相互转化 。 自动化测试中一般用于做配置文件或是测试用例。 数据的组成, 两种格式: 1. 字典 2. 列表 Eg. config.yaml serverName: windowsserver1serverIp: 192.168.1.2domain: 阅读全文
posted @ 2022-06-15 23:17 Gloria_Chen 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 绝对路径的三种写法: 方法1, with open(r"C:\Git\moxyrulesnewui_python\org\adv\rules\UIAutomation\testcase\test.py") as file_obj: contents = file_obj.read() print(c 阅读全文
posted @ 2022-05-06 23:23 Gloria_Chen 阅读(631) 评论(0) 推荐(0) 编辑