User Tools

Site Tools


tech:devops:jmeter:start

JMeter Topics

Trivia

Refer to current date/time

${__time(yyyyMMddHHmmss)}

Embed result of arbitrary java

${__BeanShell(new java.util.Date())}

JMeter Recording

The directory where JMeter saves certs must be writable by the user. This location defaults to the bin directory where the JMeter executable lives, which is not suitable for user-writability, and should be changed in the user.properties file (located in the same bin location):

proxy.cert.directory=/usr/share/jmeter/certs

… then, the /usr/share/jmeter/certs directory should have ownership root:root and permissions drwxrwxrwt

Using JMeter via Jenkins & Maven

Adding this to build section of POM file will cause the plugin to pick up all .jmx files under the src/test/jmeter subdirectory of the project workspace.

	<plugin>
		<groupId>com.lazerycode.jmeter</groupId>
		<artifactId>jmeter-maven-plugin</artifactId>
		<version>2.3.0</version>
		<executions>
			<execution>
				<id>jmeter-tests</id>
				<phase>verify</phase>
				<goals>
					<goal>jmeter</goal>
				</goals>
		   </execution>
		</executions>
	</plugin>
tech/devops/jmeter/start.txt · Last modified: 2018/01/31 15:02 by rk4n3