Quantcast
Channel: [Q&A - FAQ Neotys] Last questions
Viewing all articles
Browse latest Browse all 2283

Access File Variables from within Javascript action?

$
0
0

Hi,
I have a CSV file which I want to read in the javascript file. The file variable is named as AUTHDATA.
This is how Im accessing it in java script.

var authData=context.variableManager.getValue("AUTHDATA");
logger.info("AUTHDATA Name:"+ authData.hostname );

For some reason, it return null. It works when I use ${AUTHDATA.hostname} in the request file, but i dont want to use this value there directly. what am I doing wrong here


Viewing all articles
Browse latest Browse all 2283

Trending Articles