Collections:
Pass Windows Environment Variable to JMeter
How to Pass Windows Environment Variable to JMeter? I want to use Windows temporary folder environment variable in my test plan.
✍: FYIcenter.com
JMeter can not access Windows environment variables directly.
You can follow this tutorial to access Windows environment variable indirectly through JMeter system properties by following this tutorial.
1. Create the following batch file, jmeter.bat, to launch JMeter:
echo off set JMETER_BIN=\fyicenter\jmeter\bin\ set JVM_ARGS="-Denv.temp=%TEMP%" \fyicenter\jmeter\bin\jmeter
2. Run jmeter.bat to start JMeter:
\fyicenter>set TEMP=C:\temp \fyicenter>jmeter.bat ...
2. Open "\fyicenter\Facebook-Login-Test-8.jmx".
3. Add the following variable to the test plan:
Name: temp Value: ${__P(env.temp)}
Now you can access the TEMP environment variable using ${temp} or ${__P(env.temp)}.
Â
⇒ Substring of Windows Environment Variable
⇠Call JMeter Command in Windows Batch
⇑ Running JMeter in Command Line Mode
⇑⇑ Apache JMeter Tutorials
2017-12-04, 11541👍, 0💬
Popular Posts:
What are date and time test values? Date and time test values are frequently needed in testing date ...
How to valid IP addresses? In order to help your programming or testing tasks, FYIcenter.com has des...
How to generate MAC addresses? To help you to obtain some MAC addresses for testing purpose, FYIcent...
How to generate user birthday dates? Test user birthday dates are frequently needed in testing appli...
How to valid UUID/GUID strings? In order to help your programming or testing tasks, FYIcenter.com ha...