星期二, 2月 03, 2015

Jenkins + remote JMeter

  1. Install Java, JMeter in same version on Jenkins and remote JMeter server (ex: 10.1.2.3).
  2. [remote JMeter server]
    1. Edit jmeter.properties: "server.rmi.port=1099", "server.rmi.localport=4000".
    2. Allow firewall inbound port: 1099, 4000.
    3. Run "jmeter-server".
  3. [Jenkins (JMeter controller)]
    1. Edit jmeter.properties: "#server_port=1099" (default), "client-rmi-localport=1098", "jmeter.save.saveservice.output_format=xml".
    2. Allow firewall inbound port: 1098.
  4. Install Performance plugin on Jenkins.
  5. Source Code Management: checkout your script (my.jmx) to workspace.
  6. Execute Windows batch command: jmeter.bat -n -t my.jmx -l output.jtl [-j jmeter.log] -R10.1.2.3
  7. Publish Performance test result report: output.jtl

沒有留言:

張貼留言