当前位置:网站首页>JMeter learning experience

JMeter learning experience

2022-06-11 12:12:00 Why is utopia occupied

1、 Download address :http://jmeter.apache.org/download_jmeter.cgi ( For the time being 4.0 edition , This version is recommended )

2、 Change of language :

Temporary changes -Options-Choose Language

Permanent change -/bin/jmeter.properties In profile #language=en Change to such as language=zh_CN

3、 Command execution parameter meaning ( Not gui The next test can greatly reduce the required system resources ):

-h help -> Print out useful information and exit

-n Not GUI Pattern -> In Africa GUI Run in mode JMeter

-t The test file -> To run JMeter Test script file

-l Log files -> Documentation of results

-r Remote execution -> stay Jmter.properties All remote servers specified in the file

-H Proxy host -> Set up JMeter Proxy host used

-P The proxy port -> Set up JMeter Port number of the proxy host used

 

Example :/home/zheren/JMeter/bin/jmeter -n -t /home/zheren/JMeter/jmxdir/test.jmx -l /home/zheren/JMeter/log/logfile.jtl

4、Jmeter Cannot load JDBC driver class 'com.mysql.jdbc.Driver'

resolvent :

The reason is that it is indeed connected mysql The driver , download mysql-connector-java-5.1.44-bin.jar, Any version can , Press your own mysql Version , take jar Put the bag in jmeter Under the installation path apache-jmeter-3.2\lib\ext in , And then restart JMeter that will do .

5、 Connection database configuration ( The configuration element --JDBC Connection Configuration):

6、 Regular expression extractor ( Post Processors -- Regular expression extractor )

Regular expressions :

(): The enclosed part is to be extracted .

.: Match any string .

+: Once or more .

?: Stop after first match found .

原网站

版权声明
本文为[Why is utopia occupied]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206111204583763.html