apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
8.25k stars 2.09k forks source link

New Config element: TabularDataSet #2453

Open asfimport opened 13 years ago

asfimport commented 13 years ago

Daniel Brolund (Bug 50580): Hi,

I made a simpler CSV (or any delimiter) config element, something I've been lacking for a while.

It is a bit like a cross between the CSV Data Set element and User Defined Variables. It is easy to use, you just put the data in a text area, then it will loop that data in the tests. In addition, you don't need to put the files on all nodes when doing distributed testing, which was a showstopper for me.

I know you have a distributed file server in the pipe, but I think this element has its own merits.

I hope you'll like it. I'll be happy to hear from you, with any feedback.

BTW: My current assignment employer (I'm a consultant) would be happy if their name could appear somewhere. Is that possible?

Cheers Daniel

Created attachment JMeter.patch: Patch for TabularDataSet element

OS: All

asfimport commented 13 years ago

Daniel Brolund (migrated from Bugzilla): I had a off-by-one error for the iteration counter that starts on 1 and not on 0.

Created attachment JMeter.patch: Patch for TabularDataSet element NEW VERSION

asfimport commented 13 years ago

@milamberspace (migrated from Bugzilla): Thanks for your submission. This config element bring a shortcut vs a CSV Data Set. I thinks that Tabular Data Set behaviors must be similar to CSV Data Set. In particular when a bad value/parameter is in Data field, or when used a bad delimiter. I have make a test cases script to show some behaviors differ with CSV Data Set

If Tabular Data Set can implement this behaviors like CSV, this will be better:

A patch for user manual is important too.

Please note: when a patch has a new file (or several files), provide a zip file contains this file with directory tree.

asfimport commented 13 years ago

@milamberspace (migrated from Bugzilla): Created attachment Test_Tabular.jmx: Test cases

asfimport commented 13 years ago

Daniel Brolund (migrated from Bugzilla): If we are to support all features of CSV Data Set, we can add the Data text area to the CSV presenter, and have the options;

Maybe that would present a more cohesive element for that type of data?

Cheers Daniel

(In reply to comment 2)

Thanks for your submission. This config element bring a shortcut vs a CSV Data Set. I thinks that Tabular Data Set behaviors must be similar to CSV Data Set. In particular when a bad value/parameter is in Data field, or when used a bad delimiter. I have make a test cases script to show some behaviors differ with CSV Data Set

If Tabular Data Set can implement this behaviors like CSV, this will be better:

  • Allow quoted data?
  • Recycle on EOF? (or End of table)
  • Stop thread on EOF? (or End of table)
  • Sharing mode

A patch for user manual is important too.

Please note: when a patch has a new file (or several files), provide a zip file contains this file with directory tree.

asfimport commented 7 years ago

@pmouawad (migrated from Bugzilla): Shall we commit this ? Some work has been done, there are unit tests. Use case seems interesting.

+1 to commit it. Thoughts ?

Thanks