On 5 June 2014 15:57, BOLB (Bohdan L Bodnar) <[email protected]> wrote:
> I've a situation that I can't figure out how to solve; I'm hoping someone in 
> this forum can provide ideas.  Here is the background:
>
> I am making HTTP-based API calls to a system.  The response to one of these 
> calls returns the ID (an integer) of an entity that has been created.  This 
> ID is extracted via the Regular Expression Extractor and assigned to a 
> variable (call it "DEVICE_ID") in the Regular Expression Extractor pane and 
> the value of DEVICE_ID is written to a .csv file via the Flexible File Writer 
> plugin.  I have confirmed that the integer value is correctly written to the 
> file.  Eventually, I want to delete this entity via an API call.  The 
> following API call (format) works exactly as intended:
>
> /rest/api/X/Y/${DEVICE_ID}
>
> whereas the following fails:
> /rest/api/X/Y/${__CSVRead(C:\Users\Administrator\Desktop\jmeter\bin\FILENAME.csv,1)}
>
> The failure occurs because there is no appending of the device ID.
>
> What I am doing incorrectly?

Impossible to say for sure without knowing the format of the csv file.
But maybe the ID is in a different column.

> Best regards,
>
> Bo

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to