-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Gradle 2.0 #30
Comments
Same here. I have installed Gradle 2.2.1 and after setting things up, I have following error: Could not find method add() for arguments [jmeterEditor, class com.github.kulya.gradle.plugins.jmeter.JmeterRunGuiTask] on task set. |
Are you guys talking about the bundled gradle wrapper version? |
No. I have downloaded latest Gradle version 2.3. This is the build script:
And here is the error:
I am not using task wrapper, just plain old gradle command from command line. Any help would be appreciated. NOTE: of course there is test1.jmx JMeter test in src/test/jmeter/ folder. |
Can you please try with 1.3.2-2.6 as well? |
Hi, I will, but that version I don't see as released version :) Stay tuned. I will be back to you. |
It is. While you're at it, you should up your jmeter version as well :) |
Ok, now we are moving :) I see that new version is uploaded to central M2 repo. But this version is not in github: Or maybe I am somewhere wrong? Anyway, now I have different error when I run
Maybe you have some idea what is wrong here? Thank You |
If I execute this task from Eclipse IDE, here is the "Details log"
I am pretty sure that I don't have Gradle 2.2.1. As I said previously, I am using Gradle 2.3
That might put some light on the problem :) Thank You |
Ah I see, the releases page needs to be updated.
The problem isn't the plugin anymore, its jmeter :) This plugin runs jmeter as a separate process, jmeter logs aren't show in the build output. You should look at the jmeter log, I believe the default location is |
Does it means that I need to have jmeter installed in |
No, the plugin creates the folder, and then adds a jmeter.log to it when you run |
You are right, there is folder projectFolder/build/jmeter created. And plugin creates ext and junit folders in jmeter. And further more there are two properties files I think that problem still is in this error log
|
Well, you're not getting the second line when running from commandline. Eclipse gradle plugin by default picks up the wrapper version from your project folder - not certain what version it uses if wrapper isn't present in the project. I believe gradle version isn't your problem, unfortunately you're running into #40 during jmeter launch. |
OK, sorry for delay, but I had some "burning" issues on my daytime project :) Now, I've cloned repository, build from source and got following artifacts in ${PROJECT_HOME}/build/libs folder:
Can you help me now how to integrate this version now in my project build script ? Thank You |
Following "Maven logic" (as I am coming from this world and I am new to Gradle), I guess that But building this project from source, doesn't generate pom.xml and I am afraid that just placing this JAR won't work for me. Any suggestions ? Thank You |
@staleks 1.3.3 and 1.3.4 binaries are now built and published to maven central - except it may take some time for them to appear there. Meanwhile you can use them from this maven repo: https://oss.sonatype.org/content/groups/public 1.3.3 has a different defect, you should use 1.3.4 If you still want to build from source, you can add |
Ok, this seems working :) just for future users: buildscript section:
and repostiories:
At least until this version is publicly available on Maven Central. Thnx for support. |
Now I have other problem with jmeter report in HTML format. But let's open another issue for this. NOTE: this one can be closed, since starting problem is not more an issue. Thnx |
I'm facing the same problem with 1.3.4-2.13 and gradle 2.3. My buildscript is as follows:
Running ./gradlew jmeterRun returns only "Something went wrong during jmeter test execution, Please see jmeter logs for more information" with no actual log to look into. Interestingly, jmeterListTestPlan works:
|
@jk1 Where is your |
@foragerr, thanks for looking into this. I've tried with |
@jk1 Thank for the minimal example, certainly makes debugging easier :) I ran jmeterrun on your example and got this:
This is a known issue #38 , fix is waiting for a pull request #47 to be accepted. The workaround is to add a jmeter.properties file in either I'm more curious about why you didn't see the error stack trace when you ran jmeterRun. try running gradle with --info or --debug? |
@foragerr, that's a good question. I've tried the same code in a clean virtual environment and it works exactly as you're describing, printing:
so I suppose it's an issue with my laptop or OS configuration and not with the plugin. |
Gradle has recently upgraded to version 2.0 with some important updates. This makes the jmeter plugin impossible to install. Thanks.
The text was updated successfully, but these errors were encountered: