Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8067843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:27:53+00:00 2026-06-05T12:27:53+00:00

I am using Apache JMeter 2.7 to load test Liferay. One such test I

  • 0

I am using Apache JMeter 2.7 to load test Liferay. One such test I am creating involves dynamically generating files and uploading them to Liferay’s Document and Media portlet. The problem I’m having has nothing to do with Liferay though… I know this because I can upload a document if I type the exact path into the “file path” box of “Send Files With the Request” in an HTTP request. This is not how I need the test to run.

I want the test to run in such a way that I generate a unique file each loop of the test with a different UUID for the file name (I do so in a BeanShell PreProcessor and it does as I want). I have a user defined variable FILENAME that I use to store the file name. In the HTTP Request, for the file path I use the path C:\Installs\Apache Jmeter\apache-jmeter-2.7\bin\${FILENAME} but JMeter does not process the variable.

When I view the Results Tree, I see the error:

java.io.FileNotFoundException: C:\Installs\Apache
Jmeter\apache-jmeter-2.7\bin\${FILENAME} (The system cannot find the
file specified)

Yet, if I hard code the file path (for example …\bin\doc.txt) and use ${FILENAME} as the value for the title of the document(a parameter I send in the HTTP Request), the document(doc.txt) uploads to the portlet with the string value of FILENAME as the title. This lets me know the right string is stored in the variable FILENAME. From this, I deduce that JMeter simply does not replace variables in the file path for sending files in an HTTP Request. If I am incorrect in this conclusion, please let me know how to fix whatever error I have. Has anyone else had this problem?

I am currently trying to create a workaround by adding a BeanShell PreProcessor to this http request that would dynamically update the filepath with the variable name. I would need to set some variable = vars.get("FILENAME"). Anyone know how to proceed from here to set the HTTP file path programmatically? I’m looking in the API for the answer. Any help would be much appreciated because I am completely stumped right now.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T12:27:56+00:00Added an answer on June 5, 2026 at 12:27 pm

    It is failing because you use \${FILENAME}.
    This escapes $ so variable is not interpreted.

    Solution:

    • C:\\Installs\\Apache Jmeter\\apache-jmeter-2.7\\bin\\${FILENAME}
      (I cannot test as I am on Mac OS);
    • C:/Installs/Apache Jmeter/apache-jmeter-2.7/bin/${FILENAME}
      (this works on Windows sure).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using JMeter to load test our SMTP server using the TCP Sampler (BinaryTCPClientImpl
I recently started using JMeter to load test my webapp, locally on my pc.
We are using Jmeter to test our Php application running on the Apache 2
I'm going to perform a load and stress test on a webpage using Apache
We are using Apache Velocity for website templates and some of them are getting
I am doing a server stress testing using Apache Benchmark Tool and Apache jMeter.
I am using Apache POI for writing content into excel sheet. after generating an
i am using apache fop 1.0 to create some pdfs for customers for one
I am using apache web server as a load balancer for two tomcat instances
I am using Apache POI-HSSF for working with Excel files. I have a cell

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.