随笔分类 - 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
阅读全文
摘要:1、场景 从接口读取数据写入文件时,在文件中显示的是Unicode字符 2、处理方法 import json def read_json_file(file_path): try: with open(file_path, mode='r', encoding='utf-8') as fp: res
阅读全文
摘要:1、场景 自动化测试中,需要将一些接口自动的写入到yaml中, 但是发现文件中显示的是Unicode字符 2、处理方法 import yaml def load_yaml_data(file_path): try: with open(file_path, 'r', encoding='utf-8'
阅读全文
摘要:1、安装 sudo apt-get install stress sudo apt-get install stress-ng 2、查看cpu,内存,硬盘方法 # 查看cpu个数 cat /proc/cpuinfo # 查看内存大小 cat /proc/meminfo # 查看磁盘大小 df -h
阅读全文
摘要:1、问题 做接口测试自动化时,参数传递时,默认给的null,直接写None会被解析成字符串 2、出问题的格式 打印 “Total': 'None' 3、正确的解析成None的方法 方式一,后面留空 输出 方式二、写成 null 输出 方式三、写成 ~ 输出 参考链接: https://blog.cs
阅读全文
摘要: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
阅读全文
摘要:1、效果图 2、安装java15及以上版本并配置环境变量 添加JAVA_HOME变量 添加CLASSPATH 添加path https://blog.csdn.net/weixin_54557847/article/details/125091817 3、安装Android SDK并配置环境变量 添
阅读全文
摘要: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-
阅读全文
摘要:1、环境 OSX 12.5 Java8 vscode 2、脚本 JavaCvCameraTest.java import javax.swing.JFrame; import org.bytedeco.ffmpeg.global.avcodec; import org.bytedeco.javacp
阅读全文
摘要: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
阅读全文
摘要:1、安装ffmpeg brew install ffmpeg 2、查看本机设备 ffmpeg -devices % ffmpeg -devices ffmpeg version 5.1 Copyright (c) 2000-2022 the FFmpeg developers built with
阅读全文
摘要:参考链接: http://events.jianshu.io/p/2405999c7c88
阅读全文
摘要: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
阅读全文
摘要:1、报错 2、修改IDEA配置 重新打开项目 参考链接: https://blog.csdn.net/liveforyourself/article/details/122059698
阅读全文
摘要: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 测试关闭后删除
阅读全文
摘要: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
阅读全文
摘要:1、docker hub https://hub.docker.com/_/nginx 2、安装 默认配置安装 docker run --name nginx -d nginx 指定端口安装 docker run --name nginx -d -p 8080:80 nginx 文件映射主机安装 #
阅读全文
摘要:1、使用os.popen 2、使用os.system 3、使用subprocess.Popen 参考链接: https://blog.csdn.net/weixin_43276033/article/details/125481262 https://blog.csdn.net/sirobot/ar
阅读全文
摘要:1、使用国内的镜像地址 https://registry.npmmirror.com/binary.html?path=chromedriver/ 2、通过simulation模拟用户点击来下载(只贴出部分方法) #!/usr/bin/env python # -*- coding:utf-8 -*
阅读全文
摘要:1、pip install BeautifulSoup报错 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting BeautifulSoup Using cached https://pypi.tuna.tsi
阅读全文