随笔分类 -  Software Test

摘要:1、官方文档 https://docs.python.org/3/library/concurrent.futures.html 2、安装 python 3.x中自带了concurrent.futures模块 python 2.7需要安装futures模块,使用命令pip install futur 阅读全文
posted @ 2023-03-21 15:35 代码诠释的世界 阅读(128) 评论(0) 推荐(0) 编辑
摘要:1、场景 从接口读取数据写入文件时,在文件中显示的是Unicode字符 2、处理方法 import json def read_json_file(file_path): try: with open(file_path, mode='r', encoding='utf-8') as fp: res 阅读全文
posted @ 2022-10-26 10:06 代码诠释的世界 阅读(965) 评论(0) 推荐(0) 编辑
摘要:1、场景 自动化测试中,需要将一些接口自动的写入到yaml中, 但是发现文件中显示的是Unicode字符 2、处理方法 import yaml def load_yaml_data(file_path): try: with open(file_path, 'r', encoding='utf-8' 阅读全文
posted @ 2022-10-25 21:02 代码诠释的世界 阅读(317) 评论(0) 推荐(0) 编辑
摘要:1、安装 sudo apt-get install stress sudo apt-get install stress-ng 2、查看cpu,内存,硬盘方法 # 查看cpu个数 cat /proc/cpuinfo # 查看内存大小 cat /proc/meminfo # 查看磁盘大小 df -h 阅读全文
posted @ 2022-10-01 16:24 代码诠释的世界 阅读(14626) 评论(0) 推荐(0) 编辑
摘要:1、问题 做接口测试自动化时,参数传递时,默认给的null,直接写None会被解析成字符串 2、出问题的格式 打印 “Total': 'None' 3、正确的解析成None的方法 方式一,后面留空 输出 方式二、写成 null 输出 方式三、写成 ~ 输出 参考链接: https://blog.cs 阅读全文
posted @ 2022-10-01 16:00 代码诠释的世界 阅读(330) 评论(0) 推荐(0) 编辑
摘要:1、安装 sudo apt-get update sudo apt-get install -y linux-tools-$(uname -r) sudo apt-get install stress 2、命令介绍 stress --help `stress' imposes certain typ 阅读全文
posted @ 2022-10-01 15:28 代码诠释的世界 阅读(6692) 评论(0) 推荐(0) 编辑
摘要:1、效果图 2、安装java15及以上版本并配置环境变量 添加JAVA_HOME变量 添加CLASSPATH 添加path https://blog.csdn.net/weixin_54557847/article/details/125091817 3、安装Android SDK并配置环境变量 添 阅读全文
posted @ 2022-09-19 17:34 代码诠释的世界 阅读(885) 评论(0) 推荐(0) 编辑
摘要:1、官网 https://sonic-cloud.gitee.io/#/Deploy 2、github https://github.com/SonicCloudOrg 3、下载 https://download.sonic-cloud.wiki/sonic/sonic-server/v1.5.0- 阅读全文
posted @ 2022-09-16 13:19 代码诠释的世界 阅读(484) 评论(0) 推荐(0) 编辑
摘要:1、环境 OSX 12.5 Java8 vscode 2、脚本 JavaCvCameraTest.java import javax.swing.JFrame; import org.bytedeco.ffmpeg.global.avcodec; import org.bytedeco.javacp 阅读全文
posted @ 2022-08-24 15:35 代码诠释的世界 阅读(1538) 评论(0) 推荐(0) 编辑
摘要:1、环境 python3 OSX 12.5 vscode 2、安装ffmpeg brew install ffmpeg 3、安装cv2 pip install opencv-python # or pip --default-timeout=100 install opencv-python -i 阅读全文
posted @ 2022-08-24 14:43 代码诠释的世界 阅读(4145) 评论(0) 推荐(0) 编辑
摘要:1、安装ffmpeg brew install ffmpeg 2、查看本机设备 ffmpeg -devices % ffmpeg -devices ffmpeg version 5.1 Copyright (c) 2000-2022 the FFmpeg developers built with 阅读全文
posted @ 2022-08-24 14:27 代码诠释的世界 阅读(2053) 评论(0) 推荐(0) 编辑
摘要:参考链接: http://events.jianshu.io/p/2405999c7c88 阅读全文
posted @ 2022-08-24 14:13 代码诠释的世界 阅读(58) 评论(0) 推荐(0) 编辑
摘要:1、代码 # -*- coding:utf8 -*- import cv2 as cv cap = cv.VideoCapture(0) while (True): hx, frame = cap.read() if hx is False: print('read video error') ex 阅读全文
posted @ 2022-08-24 11:55 代码诠释的世界 阅读(348) 评论(0) 推荐(0) 编辑
摘要:1、报错 2、修改IDEA配置 重新打开项目 参考链接: https://blog.csdn.net/liveforyourself/article/details/122059698 阅读全文
posted @ 2022-08-23 16:21 代码诠释的世界 阅读(513) 评论(0) 推荐(0) 编辑
摘要:1、docker hub https://hub.docker.com/r/alfg/nginx-rtmp/ 2、安装 docker pull alfg/nginx-rtmp docker run -it -p 1935:1935 -p 8080:80 --rm nginx-rtmp 测试关闭后删除 阅读全文
posted @ 2022-08-23 15:47 代码诠释的世界 阅读(1077) 评论(0) 推荐(0) 编辑
摘要:1、nginx http://nginx.org/en/ 2、docker-hub https://hub.docker.com/r/alqutami/rtmp-hls https://hub.docker.com/_/nginx 3、github https://github.com/TareqA 阅读全文
posted @ 2022-08-23 15:23 代码诠释的世界 阅读(3393) 评论(0) 推荐(0) 编辑
摘要:1、docker hub https://hub.docker.com/_/nginx 2、安装 默认配置安装 docker run --name nginx -d nginx 指定端口安装 docker run --name nginx -d -p 8080:80 nginx 文件映射主机安装 # 阅读全文
posted @ 2022-08-23 10:52 代码诠释的世界 阅读(50) 评论(0) 推荐(0) 编辑
摘要:1、使用os.popen 2、使用os.system 3、使用subprocess.Popen 参考链接: https://blog.csdn.net/weixin_43276033/article/details/125481262 https://blog.csdn.net/sirobot/ar 阅读全文
posted @ 2022-08-22 11:20 代码诠释的世界 阅读(31) 评论(0) 推荐(0) 编辑
摘要:1、使用国内的镜像地址 https://registry.npmmirror.com/binary.html?path=chromedriver/ 2、通过simulation模拟用户点击来下载(只贴出部分方法) #!/usr/bin/env python # -*- coding:utf-8 -* 阅读全文
posted @ 2022-08-19 20:49 代码诠释的世界 阅读(276) 评论(0) 推荐(0) 编辑
摘要:1、pip install BeautifulSoup报错 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting BeautifulSoup Using cached https://pypi.tuna.tsi 阅读全文
posted @ 2022-08-18 11:58 代码诠释的世界 阅读(773) 评论(0) 推荐(0) 编辑

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