- 博客(8)
- 收藏
- 关注
原创 python 发送form-data请求
#coding=utf-8import requestsimport osimport jsonfrom urllib3 import encode_multipart_formdatadef Form_data(): url = "http://10.23.118.148:8080/Image" # 接口入参为图片 path = r'C:\Users\18066662\Desktop\picture\\' for file in os.listdir(path
2021-03-12 17:48:49 2517
原创 Jmeter发送java请求压测脚本
Jmeter发送java请求压测脚本1.maven中引入jmeter包 <dependency> <groupId>org.apache.jmeter</groupId> <artifactId>ApacheJMeter_core</artifactId> <version>5.0</version> </dependency> <dependency> <gro
2021-03-12 16:35:31 337
原创 压测脚本---groovy---随机取值
import static net.grinder.script.Grinder.grinderimport static org.junit.Assert.*import static org.hamcrest.Matchers.*import net.grinder.plugin.http.HTTPRequestimport net.grinder.plugin.http.HTTPPl...
2020-03-26 16:48:01 1157
原创 压测脚本groovy--依次取值
import static net.grinder.script.Grinder.grinderimport static org.junit.Assert.*import static org.hamcrest.Matchers.*import net.grinder.plugin.http.HTTPRequestimport net.grinder.plugin.http.HTTPPl...
2020-03-26 16:44:27 524
原创 删减文本内容
with open('C:/UsersDesktop/ (3)/sftspstapp349-0.log',errors='ignore') as f: lines = f.readlines()# print(lines)with open('C:/Users/Desktop/sftspstapp349-0.log',"w") as fs: for...
2019-11-28 21:25:35 341
原创 python图片转base64
import base64import os, sysdirpath = r"C:\Users\18066662\Desktop\avg"dirpath2= r"C:\Users\18066662\Desktop\avg"filenames = os.listdir(dirpath)len = len(filenames)print(len)for filename in file...
2019-11-28 21:20:40 257
原创 读取TXT文件逐行输出
import java.io.BufferedReader;import java.io.File;import java.io.FileReader;import java.io.IOException;import java.util.ArrayList;import java.util.List;public class tests {public static void ma...
2019-11-28 21:14:51 702
原创 jmeter处理sign和requestTimestamp鉴权签名方法
1.鉴权方法打入jar包,放入jmeter的apache-jmeter-5.0\lib\ext目录文件夹下,2.打开jmeter,添加 BeanshellPreProcessor3.在BeanshellPreProcessor中编辑import com.suning.iva.merge.picture.service.impl.*; // 导入jar包中的EncryptedUtil包i...
2019-11-07 09:42:06 1251 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人