Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Construction of JMeter Eclipse development environment

2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Reprint part of the document: http://www.cnblogs.com/taoSir/p/5144274.html

JMeter pure Java development, the interface is also based on Swing or AWT out, so want to know more about this tool or want to understand the JMeter plug-in development or secondary development of children's shoes, read JMeter source code estimate is essential, so first of all to integrate the source code to facilitate the back of the Debug and secondary development.

1. First download the source file (just download it on the official website)

two。 Then decompress the downloaded source file to the local road strength

3. Open Eclipse, create a JavaProject, and create a JavaProject according to the screenshot below

Next

Finish

4. Import source code

Next > > Select the extracted source file (step 2), and select all

5. After the import is completed, it is all red x, as shown in the figure below. The cause of the error is

a. No corresponding jar package was imported

b. Compilation directory structure problem

6. Use Ant to download the jar file required by the project. The steps are as follows:

Eclipse-> Window-> Show View-> Ant, add ant to the control panel of Eclipse

Then select add Buildfiles on the Ant panel

7. Select the build file "build.xml" of ant under this project.

8. Double-click "download_jars" on the ant page, and ant runs to automatically download the default jar file to the specified road strength under the project until Build Success is displayed.

You may encounter that part of the jar package is not downloaded due to network restrictions, so there are two solutions: an and × × click to download again.

B. Download the same version of jmeter installation software as shown in the third figure below. Copy the jar package that has not been downloaded to workspace for replacement.

9. After downloading the jar package or directly copying the jar package to the Lib folder, right-select the project Build Path-> configure build path, and then select "Add Jars"

10. This problem has not been completely solved, and you still need to modify the compiled directory (because the default directory after import is not the directory under src, but the code is usually org.*.*, you need to modify it as follows)

11. There should be no red x now.

12. But it still doesn't work. If necessary, close Eclipse and go to the local folder of the Java project.

13. After the above operation is completed, reopen Eclipse and find the entry of the project, main method, / jmeter/src/core/org/apache/jmeter/NewDriver.java

Run the discovery, indicating that the jmeter.properties is missing

Copy the files in the source code decompression package to the eclipse workspace bin directory.

14. After the above operation is completed, select the project again, right-select the main class NewDriver, select Run As-> Run Configuration, and solve all errors as follows.

15. Application, so that all problems should be solved.

Thanks to the blogger, I wrote my own version: http://www.cnblogs.com/taoSir/p/5144274.html

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report