jmeter二次开发
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
参考文章:https://blog.csdn.net/collonn/article/details/78565300
打包jar 包: https://www.cnblogs.com/VweiweiyixiaoV/p/6610681.html
IDEA上传到github: https://www.cnblogs.com/520playboy/p/6697127.html
本文版权归作者所有,转载请注明出处http://www.cnblogs.com/iloverain/.未经作者同意必须保留此段声明,否则保留追究法律责任的权利.