How to integrate Gradle jmeter plugin with jmeter + jenkins

℡╲_俬逩灬. 提交于 2020-06-28 11:07:26

问题


  1. How to locate build.gradle file ?. Under which folder i need to create build.gradle file ? I am saving all my .jmx test files under jmeter/bin folder
  2. Do i need to create a new java project in IDE to use Gradle?

Please provide detail steps to integrate Gradle jmeter plugin with jmeter + Jenkins


回答1:


To create a standalone gradle project that runs jmeter tests, you can create a new folder and add a file build.gradle to it, with the following contents:

plugins {
  id "net.foragerr.jmeter" version "1.0.3-2.13"
}

Create a folder src/test/jmeter and place all your test .jmx files there.

From jenkins you can run gradle jmrun to run tests and gradle jmreport to generate reports.



来源:https://stackoverflow.com/questions/35595537/how-to-integrate-gradle-jmeter-plugin-with-jmeter-jenkins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!