jmeter二次开发
原创
©著作权归作者所有:来自51CTO博客作者软件质量保障的原创作品,请联系作者获取转载授权,否则将追究法律责任
1.下载源码
http://jmeter.apache.org/download_jmeter.cgi
2.修改文件名
eclipse.classpath和eclipse.project
ren .\eclipse.classpath .classpath
ren .\eclipse.project .project
3.导入源码到项目
4.ant编译build.xml下载依赖jar包
点击download_jar
install 将jar包同步到环境
5.F4配置依赖
先删除旧的依赖;
再导入新的依赖
最后install
6.找到主类 NewDtiver
7.run主类
8.配置jmeter_HOME系统变量
java.lang.Throwable: Could not access D:\1openSourceWorksapce\lib
at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:101)
java.lang.Throwable: Could not access D:\1openSourceWorksapce\lib\ext
at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:101)
java.lang.Throwable: Could not access D:\1openSourceWorksapce\lib\junit
at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:101)
ERROR StatusLogger Unable to access file:/D:/1openSourceWorksapce/bin/log4j2.xml
java.io.FileNotFoundException: D:\1openSourceWorksapce\bin\log4j2.xml (系统找不到指定的路径。)
-Djmeter.home=D:\apache-jmeter-3.3
IDEA上传到github
创建仓库,add, commit, share