venkat sai
venkat sai

Reputation: 475

Does the property file reader works in jmeter non gui mode

I have a jmeter test plan where i am using a property file reader to read properties from a config.properties file and use them in jmeter scripts it is working in gui mode when i run the jmx file in non gui mode then the property file reader is not working

Upvotes: 3

Views: 1813

Answers (2)

UBIK LOAD PACK
UBIK LOAD PACK

Reputation: 34536

The component works the same in gui and non gui mode.

Just check that path to file is correct when using Non Gui mode.

Jmeter.log will help you find the issue

Upvotes: 0

Dmitri T
Dmitri T

Reputation: 168122

There is no need to use 3rd-party elements as you can read data from a custom .properties file providing the file name/location via -q command-line argument like:

  • GUI:

    jmeter -q /path/to/your/properties -t /path/to/testplan.jmx
    
  • non-GUI:

    jmeter -q /path/to/your/properties -n -t /path/to/testplan.jmx -t /path/to/results.jtl
    

More information:

Upvotes: 1

Related Questions