Unanswered question

Is there any concept of array for correlated variables ?

I defined a Lower and Upper boundary for correlation .
I got multiple occurrences within the same boundary .

a)Is it possible to export this values and use it as a File variable ?

b)How do we handle instances where the boundaries are changing like

<SRC rect John ; 541 ; Martin >
<SRC quad Peter ; 844 ; Henry >

How do i correlate to get the value "541" in the extraction variable ?

rohit R.
rohit R.

rohit R.

Level
0
1 / 100
point

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

You can't export the result of an extraction but you could put them on a shared queue variable in order to re-use them later on.

Regarding the dynamic boundaries, the way to overcome that depends on the full response. The goal will be to find something static around the value you would like to extract.

Also something that is usefull  is to extract in multiple steps to achieve your goal.

NeoLoad executes the extractions sequentially that's why an extractor can rely on the result of a previous extraction and so on...

 

Robin L.
Robin L.

Robin L.

Level
0
42 / 100
points

As far as I know, you can export the values of an extraction to a file, you can use JavaScript, for example:

var lock = new java.util.concurrent.locks.ReentrantLock();
function writeLogFile(text, fileName) {
lock.lock();
var writer = new java.io.FileWriter("logs//"+fileName,true);
writer.write(text);
writer.write("\r\n");
writer.close();
lock.unlock();
}
var vuData = context.variableManager.getValue("Values")
writeLogFile(vuData , agentName+"_demo.txt");