Skip to content
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

jmeterListTestPlan should also list test plans added with the jmeterTestFiles property #37

Open
foragerr opened this issue Apr 2, 2015 · 4 comments

Comments

@foragerr
Copy link
Contributor

foragerr commented Apr 2, 2015

running the jmeterListTestPlan task looks for test plans in the folder returned by getSrcDir(). It should also look in any other custom locations added through properties.

@kulya
Copy link
Owner

kulya commented Apr 6, 2015

Can you please provide simple project that i can use for testing this feature?

@foragerr
Copy link
Contributor Author

foragerr commented Apr 6, 2015

I started working on a fix for this, I will send you my simple test project when I get back to my dev machine this evening. The problem I was facing is, if I define jmeterTestFiles in build.gradle like this:

jmeterRun.configure {
    jmeterTestFiles = [file("pathtoJMXfile/jmxfile.jmx")] //-t 
}

getJmeterTestFiles() returns the List<File> in jmeterRun task, but is null in the jmeterListTestPlan task. I couldn't figure out how to make jmeterRun configuration available to other tasks as well.

@foragerr
Copy link
Contributor Author

foragerr commented Apr 6, 2015

@kulya uploaded simple test project here: https://github.com/foragerr/jmeter-gradle-plugin-test1

if you run gradle jmeterrun it runs nonDefaultLocation,jmx as specified in build.gradle. However if you run gradle jmeterListTestPlan it lists DefaultLocation,jmx instead.

@foragerr
Copy link
Contributor Author

foragerr commented Apr 8, 2015

The top answer here might be one way to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants