JMeter CSV file path reading issue in ALT

Shivam Shukla (Ext) 5 Reputation points
2025-10-17T05:51:23.6+00:00

I am running a JMeter test plan in Azure Load Testing (ALT). My use case involves reading different JSON files, so I’m using a jsonpath.csv file in the CSV config with a variable name ERequestBody. In the request body, I’m using the following expression to read the JSON:

${__eval(${__FileToString(${ERequestBody},,)})}

This setup works perfectly in my local JMeter, but it fails when executed in ALT. I’ve placed the JMX, CSV, and JSON files directly (not inside any folder). What should I specify in the JMeter request so that it correctly reads the JSON file from the path provided in the CSV while running in ALT?

 

Azure Load Testing
Azure Load Testing
An Azure service that enables developers and testers to generate insights on how to improve the performance, scalability, and capacity usage of their application
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vinodh247 40,051 Reputation points MVP Volunteer Moderator
    2025-11-21T15:43:37.98+00:00

    In Azure Load Testing, JMeter does not see your local file paths. ALT unpacks all uploaded files into the /jmeter/user-files directory. So any path coming from your CSV must be relative to that folder.

    Fix:

    Upload your CSV and JSON files to ALT in the same upload bundle as the JMX.

    In your CSV, keep only the file name, not a full or local path. Example: payload1.json

    In your sampler, read it like this: ${__FileToString(/jmeter/user-files/${ERequestBody},,)}

    You do not need __eval in ALT.

    I think this works because ALT resolves files only from /jmeter/user-files. Let me know how this worked.

    Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.