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 7433659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:42:28+00:00 2026-05-29T09:42:28+00:00

Is there a way of accessing the current script’s absolute physical path via a

  • 0

Is there a way of accessing the current script’s absolute physical path via a variable/property? There doesn’t appear to be anything listed via a Debug Sampler.

It’s incredibly annoying that actions like loading CSV files and JMX Includes uses the current working directory as its relative path.

  • 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-05-29T09:42:29+00:00Added an answer on May 29, 2026 at 9:42 am
    • Include Controller
      As per component’s reference:

      This element does not support variables/functions in the filename
      field.
      However, if the property includecontroller.prefix is
      defined, the contents are used to prefix the pathname.
      If the file
      cannot be found at the location given by prefix+filename, then the
      controller attempts to open the fileName relative to the JMX launch
      directory (versions of JMeter after 2.3.4).

      You can pass JMeter a java property named includecontroller.prefix
      which can be used to prepend a directory to the JMX file you’re
      including.

      1) In case of console launch use:


      -Jincludecontroller.prefix=/full/path/to/jmx/scripts/dir/

      2) in case of GUI – add the same to .sh/.cmd/.bat file or write a wrapper file;

      3) in case of Jmeter Ant Task usage – set as separate property:

      <jmeter 
      jmeterhome="${jmeter.home}" 
      testplan="..." 
      resultlog="...">
          <property name="jmeter.save.saveservice.assertion_results" value="all"/>
          <property name="jmeter.save.saveservice.output_format" value="xml"/>
          <property name="includecontroller.prefix" value="..."/>
      </jmeter>
      
    • CSV Data Set Config
      As per component’s reference:

      Relative file names are resolved with respect to the path of the
      active test plan.
      Absolute file names are also supported, but note
      that they are unlikely to work in remote mode, unless the remote
      server has the same directory structure.
      If the same physical file is
      referenced in two different ways – e.g. csvdata.txt and ./csvdata.txt – then these are > > treated as different files. If the OS does not distinguish between upper
      and lower case, csvData.TXT would also be opened separately.

      You can declare a test plan variable that retrieves parameter value with the folder containing csv data files:

      e.g.

      csv.path | ${__P(csv.path, ${__property(user.dir)}${__BeanShell(File.separator,)})} 

      CSV Data Set Config
      Filename = ${csv.path}${__P(users-list,)}
      

      Setting from console:

      -Jcsv.path=/full/path/to/csv/data/dir/

      Setting for distributed testing setup:

      -Gcsv.path=/full/path/to/csv/data/dir/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way of accessing the current session in the AppModel class? I
i have problem with libhid . i found that there 2 way 4 accessing
Is there a way of accessing the width of a DOM element? In particular,
Is there any way for accessing the web page in iPhone application, without address
Is there any way of accessing, editing,deleting files on the desktop through your android
Is there way in next piece of code to only get the first record?
is there way thats i can preselect an item when the page loads or
is there way how to get name ov event from Lambda expression like with
Is there way to better identify design pattern in source codes, esp. if you
Is there way to mute an audio stream or at least control the volume?

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.