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

Add an option to add a custom name to the result file #316

Open
awadodeh opened this Issue Mar 7, 2019 · 5 comments

Comments

Projects
None yet
3 participants
@awadodeh
Copy link

awadodeh commented Mar 7, 2019

I am using the current version of <jmeter.plugin.version>2.8.6</jmeter.plugin.version>, and I have a requirement to run a test on multiple machines and I believe it would be really nice to add the machine name to the generated report. Is this currently possible, if not, is it possible to be added?

PS: I moved away from distributed testing for a reason.

@pmouawad

This comment has been minimized.

Copy link
Contributor

pmouawad commented Mar 8, 2019

Do you mean adding it inside html content ?
And you mean the injector machine ?

Thanks

@Ardesco

This comment has been minimized.

Copy link
Contributor

Ardesco commented Mar 8, 2019

I'm making the assumption that this is a request to be able to modify the resultFilename, currently we generate this programatically. based on the test name.

@awadodeh

This comment has been minimized.

Copy link
Author

awadodeh commented Mar 8, 2019

I'm making the assumption that this is a request to be able to modify the resultFilename, currently we generate this programmatically. based on the test name.

This is exactly what I meant, it would be nice to have the option to rename the result file name, other than what the original *.jmx file name was.

@Ardesco

This comment has been minimized.

Copy link
Contributor

Ardesco commented Mar 10, 2019

The biggest problem implementing this is that we don't know the names of the .jmx files that are going to be used in advance, we use pattern matching to collect all of the files.

Possible solutions:

  • We could add a switch that would allow you to toggle the addition of a hostname to all files (should we ignore it if the hostname is the default?)
  • We could have a look at providing some variables that would be used to build up the results filename (could get very complex very quickly)
  • We could provide a mapping file that will set specific results file names if the test file name is an exact match (open to user error, confusing for people coming along later and changing a .jmx file name and potentially seeing a totally different results filename)
  • We could leave it as is.
@awadodeh

This comment has been minimized.

Copy link
Author

awadodeh commented Mar 11, 2019

First of all, thank you for taking the time looking into it!

I totally get what you are saying, and it make sense.
This requirement is not really critical. However, jmeter provide the ability to provide a name for your result, it would be also nice to have it in the maven plugin too.

The first thought was to easily keep track of multiple test runs across multiple machines.
Regarding your approaches, I believe if we can add a switch that can evaluate the hostname at runtime, and add that to the all resultnames that would great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.