0

I know I can download file from web, but in case that I want to get the updated jmx files in 1 machine (get from source control only once using trigger) and load it on different machines, Can I open in JMeter a jmx file located in web?

I'm trying but failing (with different escaping) from http://jmeter.apache.org/demos:

jmeter -t "http://jmeter.apache.org/demos/forEachTestPlan.jmx"

2017-09-28 09:09:53,527 ERROR o.a.j.JMeter: Failure loading test file
java.io.FileNotFoundException: http:\jmeter.apache.org\demos\forEachTestPlan.jmx (The filename, directory name, or volume label syntax is incorrect)
    at java.io.FileInputStream.open0(Native Method) ~[?:1.8.0_144]
    at java.io.FileInputStream.open(Unknown Source) ~[?:1.8.0_144]
    at java.io.FileInputStream.<init>(Unknown Source) ~[?:1.8.0_144]
    at org.apache.jmeter.save.SaveService.loadTree(SaveService.java:423) ~[ApacheJMeter_core.jar:3.3 r1808647]
    at org.apache.jmeter.JMeter.startGui(JMeter.java:386) [ApacheJMeter_core.jar:3.3 r1808647]
    at org.apache.jmeter.JMeter.start(JMeter.java:519) [ApacheJMeter_core.jar:3.3 r1808647]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_144]
    at org.apache.jmeter.NewDriver.main(NewDriver.java:248) [ApacheJMeter.jar:3.3 r1808647] 
Ori Marko
  • 56,308
  • 23
  • 131
  • 233

2 Answers2

0

No you can't OOTB, you need another tool

You could use a curl or wget to get a local copy then run it.

What is the use case ?

UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116
0

I would recommend putting your JMeter script under Jenkins management, Jenkins has ability to poll version control systems on schedule (or alternatively you can use a VCS hook) so Jenkins will scan the target version control system for any updates and if they are - it will checkout the latest .jmx file version and run JMeter test using it.

See Continuous Integration 101: How to Run JMeter With Jenkins for more information on JMeter and Jenkins integration.

Dmitri T
  • 159,985
  • 5
  • 83
  • 133