• 在Eclipse下运行Jmeter3.0源代码


    1.创建项目

    准备工作:在http://jmeter.apache.org/download_jmeter.cgi中分别下载binaries和source两个压缩包,前者为release版本,后者则为jmeter的源码。

    1、在eclipse中新建javaproject,名为ApacheJmeter3.0,在下一步中选择"Allowoutputfolders for source folders",防止导入源码时把bin目录做为输出目录给清理掉。

    输入Project name后,点击Netx按钮。

    选择Allow output folders for source folders选项后,点击Finish按钮。

    2.导入文件系统源代码

     
    选择从文件系统导入apache-jmeter-2.8源码;(即右键apache-jmeter-2.8点击import,选择General-FileSystem然后导入源码)
     
    选择项目后,点击Next按钮。
     
     
    选择项目点击Select All按钮,并且指定Into folder目录的Apache3.0的路径,最后点击Finished按钮。
     
     
     
    在project目录下把eclipse.classpath中的内容复制到.classpath文件中;
     

    3.拷贝jar到eclipse项目下的lib目录

     

    3、在project目录下执行antdownload_jars,或在这之前就先把安装好的jmeter(可运行jmeter)的lib目录下文件都拷贝到项目下。

    4.附加jar包

     

    选择项目,右击项目的Properties->Java Build Path->Libraries->Add External JARS…

    选择jar包,点击打开按钮。

    选择select all 按钮后,点击Apply按钮,最后点击OK就可以附加jar文件成功。

    5.拷贝jmeter.properties文件

     
    从apache-jmeter-3.0包中拷贝jmeter.properties(apache-jmeter-3.0非源代码文件夹,而是一个可直接运行的jmeter的文件夹)

    从apache-jmeter-3.0包中拷贝jmeter.properties到bin目录下面,同时拷贝到/ApacheJmeter3.0/src/core/org/apache/jmeter/

    6.运行设置

     

    打开Run->RunConfigurations,选择工作目录为“${workspace_loc:jmeter/bin}”,即可运行jmeter了。找到创建项目ApacheJmeter3.0,找到bin目录,并选中。

    选择bin目录后,点击Ok按钮。

    点击Apply按钮,最后点击Run按钮。

    点击Proceed按钮运行项目。

    7.运行成功

     
    运行jmeter成功。

     转载:http://blog.csdn.net/chris_111x/article/details/52312750

  • 相关阅读:
    牛影传说【线段树+BFS序运用】
    动态规划 :传纸条
    CQYZ-OJ P1377 危险的组合
    使用 git 管理你的配置文件
    Exponential Distribution
    初尝 C++ 类设计
    Android刷机的一般步骤
    重装 Linux 记录
    Linux 折腾记录 (非正式)
    最大熵对应的概率分布
  • 原文地址:https://www.cnblogs.com/Gent-Wang/p/7389671.html
Copyright © 2020-2023  润新知