smicyk / groovy-jmeter

A Groovy-based DSL for building and running JMeter test plans from command line and more.
Apache License 2.0
13 stars 1 forks source link

[feature] Add descriptions to User Variables element #68

Closed AntonioSun closed 2 years ago

AntonioSun commented 2 years ago

Please add the description field to argument, which currently only allow name & value.

It'll be the extra <stringProp name="Argument.desc">descriptions</stringProp> field in JMeter.

thanks

smicyk commented 2 years ago

Hi, can you specify where you would like to have it? Currently only User Variables element has arguments where you can define description e.g.

plan {
    variables {
        variable name: 'test', value: 'test', description: 'test'
   }
}

The argument keyword in Test Plan and Backend Listener doesn't have that field (at least in GUI). Would you like to have such possibility in Test Plan and Backend Listener?

AntonioSun commented 2 years ago

Ah, good point -- didn't know that argument are used in so many places.

The User Variables element is all that I care for the descriptions, for anything else, whether you want to enforce validation or not, I'll leave it with you, :)

AntonioSun commented 2 years ago

Ah, Just realized that I made the wrong request -- not Test Plan and Backend Listener's argument, but User Variables element's variable. Changing it in OP...

AntonioSun commented 2 years ago

I only see variables in

https://github.com/smicyk/groovy-jmeter/wiki/reference#variables

and it is having entirely different fields.

Currently only User Variables element has arguments where you can define description e.g.

plan {
    variables {
        variable name: 'test', value: 'test', description: 'test'
   }
}

So if it is already done, maybe it is just to update the doc to close this issue.

AntonioSun commented 2 years ago

So if it is already done, maybe it is just to update the doc to close this issue.

Yep, it is already done.

So feel free to close it any time then.

smicyk commented 2 years ago

OK. I think you need this https://github.com/smicyk/groovy-jmeter/wiki/reference#variable. I see now that I have problem with this reference page as there couple of links which points to the different places.

Anyway I will close the issue since the feature is available.