- Install Java, JMeter in same version on Jenkins and remote JMeter server (ex: 10.1.2.3).
- [remote JMeter server]
- Edit jmeter.properties: "server.rmi.port=1099", "server.rmi.localport=4000".
- Allow firewall inbound port: 1099, 4000.
- Run "jmeter-server".
- [Jenkins (JMeter controller)]
- Edit jmeter.properties: "#server_port=1099" (default), "client-rmi-localport=1098", "jmeter.save.saveservice.output_format=xml".
- Allow firewall inbound port: 1098.
- Install Performance plugin on Jenkins.
- Source Code Management: checkout your script (my.jmx) to workspace.
- Execute Windows batch command: jmeter.bat -n -t my.jmx -l output.jtl [-j jmeter.log] -R10.1.2.3
- Publish Performance test result report: output.jtl
星期二, 2月 03, 2015
Jenkins + remote JMeter
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言