1. 20180627 调整启动的内存set HEAP=-Xms1024m -Xmx1024m
2. 20180627 调整输出格式为xml #jmeter.save.saveservice.output_format=xml
3. 新建了几个文件夹,主要用来做load test
4. 查看结果树中,请求中的中文显示乱码问题
meterinjmeter.properties
默认编码为:ISO-8859-1
# The encoding to be used if none is provided (default ISO-8859-1)
#sampleresult.default.encoding=ISO-8859-1
根据测试系统修改对应的编码,如为utf-8
则增加编码设置为:
sampleresult.default.encoding=utf-8
修改配置后,要重启jmeter才会生效
jmeter -n -t C:/Users/jasqia.AP/Desktop/Converse.jmx -l C:/Users/jasqia.AP/Desktop/Converse -e -o C:/Users/jasqia.AP/Desktop/Output/converse/
jmeter -n -t C:/Users/jasqia.AP/Desktop/Go_alive -l C:/Users/jasqia.AP/Desktop/Output/k1 -e -o C:/Users/jasqia.AP/Desktop/Output/kk1/
jmeter -n -t C:/Users/jasqia.AP/Desktop/wechatbind_total3.jmx -l C:/Users/jasqia.AP/Desktop/k6 -e -o C:/Users/jasqia.AP/Desktop/kk6/
jmeter -n -t *.jmx -l -e -o OutPut/
cd
jmeter -n -t /home/jasqia/apache-jmeter4.0/jmxfile/ikea/*.jmx -l /home/jasqia/apache-jmeter4.0/jmxfile/ikea -e -o /home/jasqia/apache-jmeter4.0/jmxfile/ikea02/
./jmeter -n -t /home/jasqia/apache-jmeter4.0/jmxfile/ikea/*.jmx -l /home/jasqia/apache-jmeter4.0/jmxfile/ikea -e -o /home/jasqia/apache-jmeter4.0/jmxfile/ikea02/
jmeter -n -t coach190.jmx -l Test -e -o Test1
若是涉及二次开发,涉及到的代码在NewDriver()中startGui一段
/**
* Starts up JMeter in GUI mode
*/
private void startGui(String testFile) {
System.out.println("================================================================================");//NOSONAR
System.out.println("================================================================================");//NOSONAR
System.out.println("此工具为二次开发之后的工具,新增功能如下:");//NOSONAR
System.out.println("20180824: 更新:GUI模式下的语言");
System.out.println("20180824: jmeter.save.saveservice.output_format=xml");//NOSONAR
System.out.println("20180824: sampleresult.timestamp.start=true=========");//NOSONAR
System.out.println("20180824: summariser.name=summary================================");//NOSONAR
System.out.println("20180824:csvdataset.file.encoding_list=UTF-8|UTF-16|ISO-8859-15|US-ASCII");//NOSONAR
System.out.println("20180824: sampleresult.default.encoding=UTF-8");
System.out.println("================================================================================");//NOSONAR