Reputation: 1
I am using graphql in jmeter for API testing. Where in graphal we have the query and variable section. My query would require a client ID which is int. Where as in Variable if I try to pass "{clientid : ${clientid}}"(here I am passing the CSV config variable, for testing the app for multiple users). But it is throwing an error like $ is unauthorised and expecting a (json,null,true or false).
Please help me out how I can pass the clientid which is a csv config variable.
Thanks in advance.
Upvotes: 0
Views: 571
Reputation: 168072
It looks like your CSV Data Set Config setup is not very correct so the JMeter Variable placeholder isn't getting substituted with its respective value from the CSV file.
We cannot help without seeing first couple of lines of the CSV file and your CSV Data Set Config setup so far I can only suggest re-visit the configuration and cross-check it with JMeter Documentation
You can observe JMeter Properties and Variables with their values using Debug Sampler and View Results Tree listener combination, if you don't see clientid
line there - the variable is not set and JMeter sends it as it is, to wit "{clientid : ${clientid}}"
and doesn't substitute ${clientid}
with the value from CSV
Upvotes: 1