all you want is an unique field value?
${csv_field_value}_${__threadNum()}_${__machineName()}
or
${__UUID()}
2013/11/12 Richard Gaywood richardgayw...@gmail.com
Hey list,
Am I missing an easy way to do this?
I have a CSV file with a number of params in it, and in my test I want to
be
Hi,
you have no Response Assertions in script, so you need to add then to ensure
you are getting the correct responses.
Also some parameters are probably dynamic and change each time you run the
test, I cant be sure as your test cannot be ran outside your organisation.
For example:
Content.css:
Adding to Flavios suggestion, you could try:
${csv_field_value}_${__threadNum()}_${__machineName()}_${__time(hh:mm:ss,today)}
ZK
--
View this message in context:
http://jmeter.512774.n5.nabble.com/Counting-loops-through-a-CSV-file-tp5718669p5718675.html
Sent from the JMeter - User mailing
Hi
So here is an example of the JMeter response I am struggling with:
diva href=12354spanFoo1a href=12357spanFoo2/div
The text I need to use regex on is the ahref next to Foo2 (12357).When I do
this regex on RegexTester.com (a href=(.*)spanFoo2), it returns the href
value for Foo1.
Can anyone
Hi
I guess your expression is too greedy (Im assuming you are getting a lot
more than 12354
a href=([^]*)spanFoo2
Note that your snippet is invalid html and people tend to put in quotes or
apostrophes or add spaces or more attributes and if you want to write an
expression that doesnt break easily
Try this:
a href=([^]*)spanFoo2
That tells Regex to get everything in the () that doesn't include a ''
character...
Your other regex is actually getting this string:
12354spanFoo1a href=12357
That's because by nature, the 'regex' is 'greedy' in its match. So it is
matching all characters
Hi Robin. Your first solution works perfectly, and also thanks for the tip on
non greedy matching research.
On 13 Nov 2013, at 19:26, Robin D. Wilson rwils...@gmail.com wrote:
Try this:
a href=([^]*)spanFoo2
That tells Regex to get everything in the () that doesn't include a ''
Thanks also Deepak for your help.
On 13 Nov 2013, at 19:01, Deepak Shetty shet...@gmail.com wrote:
Hi
I guess your expression is too greedy (Im assuming you are getting a lot
more than 12354
a href=([^]*)spanFoo2
Note that your snippet is invalid html and people tend to put in quotes
One other thing about getting stuff in post-processors using regex...
You want to try to make your expression as generic as possible - while still
being specific enough to get what you want.
This is so your test case won't break if there are slight variations in the
response data being