rollno748 / Extended-csv-dataset-config

This plugin will enable Apache JMeter users to have similar parameter advantage as LoadRunner
MIT License
25 stars 7 forks source link

Unique dataset value not working #12

Closed Vikash-tig closed 1 year ago

Vikash-tig commented 1 year ago

The other combinations are working fine except for this one, I am not sure if I am doing anything wrong. When I was trying to select the unique row on each iteration/once the jmeter is throwing below error:

2023-03-13 16:17:55,943 ERROR o.a.j.t.JMeterThread: Test failed! java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:67) ~[?:?] at java.lang.Integer.parseInt(Integer.java:675) ~[?:?] at java.lang.Integer.parseInt(Integer.java:781) ~[?:?] at com.di.jmeter.config.ExtendedCsvDataSetConfig.initBlockFeatures(ExtendedCsvDataSetConfig.java:164) ~[di-extended-csv-2.0.jar:?] at com.di.jmeter.config.ExtendedCsvDataSetConfig.initVars(ExtendedCsvDataSetConfig.java:152) ~[di-extended-csv-2.0.jar:?] at com.di.jmeter.config.ExtendedCsvDataSetConfig.iterationStart(ExtendedCsvDataSetConfig.java:53) ~[di-extended-csv-2.0.jar:?] at org.apache.jmeter.control.GenericController.fireIterationStart(GenericController.java:399) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.GenericController.fireIterEvents(GenericController.java:391) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.GenericController.next(GenericController.java:160) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.TransactionController.nextWithoutTransactionSampler(TransactionController.java:205) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.TransactionController.next(TransactionController.java:135) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:222) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.GenericController.next(GenericController.java:175) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.control.LoopController.next(LoopController.java:134) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.threads.AbstractThreadGroup.next(AbstractThreadGroup.java:99) ~[ApacheJMeter_core.jar:5.5] at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:266) ~[ApacheJMeter_core.jar:5.5] at java.lang.Thread.run(Thread.java:1589) ~[?:?]

image

rollno748 commented 1 year ago

Hello Vikash

Thanks for bringing up - From the screenshot you have shared I could see the Allocate block is unset

Try setting the value to Autoallocate or custom allocate and give it a try

rollno748 commented 1 year ago

I have updated the code for gui as well - It should select the autoallocate by default (if not set) when unique selection is enabled

Can you try uninstalling the plugin and install it again ?

Vikash-tig commented 1 year ago

Hello Vikash

Thanks for bringing up - From the screenshot you have shared I could see the Allocate block is unset

Try setting the value to Autoallocate or custom allocate and give it a try

I tried autoallocating the value and still it is throwing some error: image

Vikash-tig commented 1 year ago

I have updated the code for gui as well - It should select the autoallocate by default (if not set) when unique selection is enabled

Can you try uninstalling the plugin and install it again ?

I will try this method.

rollno748 commented 1 year ago

I tried the same - it works fine with me

image image

Couple of things:

  1. First thing is, its going on a quoted data read - If your csv is not having quoted data then I would recommend to set it to false
  2. Check your csv file path
  3. Check your csv file by clicking Edit button
  4. Check your delimiter value

If you are still facing the issue - could you please share a model csv which you are using ?

rollno748 commented 1 year ago

Hi,

Did you get a chance to check the issue?

Vikash-tig commented 1 year ago

Thanks, After building the jar again it was running fine.

rollno748 commented 1 year ago

FYI: It's already available with plugins manager. I will mark this issue as closed

Feel free to hit a star, it means a lot