Quantcast
Viewing all articles
Browse latest Browse all 5648

variable within csv

Hi,

I have a CSV that contains parts of an URI:

/new.html
/part.html
/some.html

In my test I loop over the CSV using variable $SUBPAGE. Now, one part
can contain parameters:

/new.html?period=1
/new.html?period=2
etc.

I thought of making the number a random variable (1,2,3,4,5) and
including the variable name in the CSV:

/new.html?period=${RANDNUM}

which would then translate to '?period=1' , '?period=2', etc.

Unfortunately that doesn't work, as jmeter won't fill in the variable. I
could remove the '/new.html' from my original CSV and make a separate
request for that, using the RANDNUM variable, but perhaps there's a
better way. Any advice is welcome!

regards,

Léon

Viewing all articles
Browse latest Browse all 5648

Trending Articles