-
Notifications
You must be signed in to change notification settings - Fork 42
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
Array of Map #39
Comments
Hi Ismail, |
As soon as I tried to load my schema, it failed on line number: 153 in SchemaExtractor class with index out of bound exception. It returned empty Array because the above method didn't had typeset of Map defined in SchemaExtractor.
After I added Type.MAP in the above line, Schema Extractor worked fine. Now I don't know what format will it accept for values section.
And I think it does not know to convert string into map inside array type. If parent type is Map or Array then it can handle things correctly. But if parent type is Array and subtype is Map, then code might not exist to handle that. But I might be wrong. I do see 2 changes that needs to be done:
|
Thanks for the feedback! |
Hi there, |
Would you be able to give any timeline on when this feature can be available? |
Hi Ismail, |
Hey. My Java request fails and it fails from master too. When i try to open new java request in jmeter, i get following error: |
I checked out commit from 11th june with 1.5.1 version and it worked. |
Uh, that's strange. I test it before commit. Did you delete previous plugin versions? |
Latest release jar name had change. Since we complet the standalone version now there is a "-plugin-" In the name. This is the right one to use. |
This is the jar name "kloadgen-1.6.1.jar" that it gets builds and install in local repository. I do not see a "plugin" in name in jar version. |
Can you please check the target folder where you are building the plugin. This version should generate a kloadgen-plugin-1. 6.1.jar file . About 30Mb. The one you are using doesn't have all the required dependencies. |
Please verify you are using the Branch #39_Map_array |
Thanks for that it worked. I was copying jar file that got installed to local maven repository and I didn't realize the process had changed. |
Can you help with the format for array map in field value list? |
Sure, details are in the readme. But for add values to generate testing data you should write pair key:value comma separated. |
No worries. This is what i put in value: Some of the values that it generates on topics are: But it does not generate array with multiple map objects. My specific requirement is to be able to generate 10 array object with each object containing map of 2 values in it. |
This is my configuration: It is not generating array of size 5 and it is also not generating string for 20 characters.
|
With this configuration: It still generated array of size 1 but there were 5 parameters in a map every time. I think it is using an array number to generate number of elements in map. There should be a way to specify 2 numbers now. One for size of array and one for number of parameters required in map.
|
Thank you for all the feedback. At the moment array of map is still something under development. |
That's fine. I appreciate so much for you getting this done asap. Thank you very much. |
Hi Ismail, |
Thanks Jose. Let me give it a try. What if value inside the map needs to be of specific size too? As in generate a map of 20 fixed values with 45 characters in length. |
Hi Jose, With this configuration: It was supposed to produce an array of size 3 with map size of 2. But it did reverse. It produced an array of size 2 with map size of 3
|
Hi Jose, Is there a way to to generate random string for one of the value in the map? If Field Values list can contain something like this: |
Mmmm not at the moment, maps we generate are same type value.. All the values should have the same time. However, we support variable replacement, that is, you can write [${mygeneratedmap}] and it will replace by the value of the variable with the same name. You can use a Pre-processor to do that, like a Groove, bean shell.... Or values from a csv file... |
"It was supposed to produce an array of size 3 with map size of 2. But it did reverse. It produced an array of size 2 with map size of 3" |
Hi Jose, I tested and yes array issue has been fixed. I see correct sizes of array and map written to topic. Also I was able to use pre processor to generate random map values. So that worked too. I think all looks good at this moment. |
Good to know, will merge that branch them. |
Thank you Jose for getting this done so soon 👍 Appreciate a lot |
My schema has an array of map. And I believe that feature does not exist. Am I correct on this? Or Am I missing something?
The text was updated successfully, but these errors were encountered: