I have a complex Jmeter test script, in script1.jmx, which calls in a dozen
or so components via the Include controller. This works fine in the GUI with
either a relative path in the Include Controller's box (e.g.
'component_foo.jmx') or an absolute one
('d:\jmeter\test\component_foo.jmx'). Each compent JMX has a Simple
Controller with some HTTP Samplers below it. In the top-level script, for
each component, I have a Transaction Controller, then the Include Controller
below that. An abbreviated sample is as follows:

top-level:
- thread group
  - while controller
    - CSVdata set
    - transaction controller
      - include controller
    - if controller
      - transaction controller
        - include controller
    - if controller
      - transaction controller
        - include controller

[aside: the while controller loops through the CSV data set until an
endpoint is reached in the file. The if controllers fire depending on
settings read in from the CSV file. It's a complex test.]

component_foo.jmx:
+ simple controller
  - HTTP sampler
  - HTTP sampler

However, when I run the test outside the gui with the -n -t command line
options, I can see from the sampler results that none of the samplers in any
of the Included component JMXs are run at all. This happens with either
relative or absolute paths in the Include Controllers.


Running on the command line, I get these messages in jmeter.log:

2006/02/16 11:21:04 INFO -
jmeter.control.IncludeController<file:///X:/travelink/Nov%202006%20load%20testing/notes.htm#>:
loadIncludedElements -- try to load included module
...  [REPEATED] ...
2006/02/16 11:21:05 INFO -
jmeter.threads.JMeterThread<file:///X:/travelink/Nov%202006%20load%20testing/notes.htm#>:
Thread Thread Group 1-1 started
2006/02/16 11:21:05 WARN -
jmeter.control.TransactionController<file:///X:/travelink/Nov%202006%20load%20testing/notes.htm#>:
Could not fetch
SamplePackage<file:///X:/travelink/Nov%202006%20load%20testing/notes.htm#>
2006/02/16 11:21:05 ERROR -
jmeter.samplers.SampleResult<file:///X:/travelink/Nov%202006%20load%20testing/notes.htm#>:
sampleEnd called twice java.lang.Throwable: Invalid call sequence
at 
org.apache.jmeter.samplers.SampleResult<file:///X:/travelink/Nov%202006%20load%20testing/notes.htm#>
.sampleEnd(SampleResult<file:///X:/travelink/Nov%202006%20load%20testing/notes.htm#>
.java:612)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSampler2<file:///X:/travelink/Nov%202006%20load%20testing/notes.htm#>
.sample(HTTPSampler2<file:///X:/travelink/Nov%202006%20load%20testing/notes.htm#>
.java:505)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase<file:///X:/travelink/Nov%202006%20load%20testing/notes.htm#>
.sample(HTTPSamplerBase<file:///X:/travelink/Nov%202006%20load%20testing/notes.htm#>
.java:514)
at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase<file:///X:/travelink/Nov%202006%20load%20testing/notes.htm#>
.sample(HTTPSamplerBase<file:///X:/travelink/Nov%202006%20load%20testing/notes.htm#>
.java:503)
at 
org.apache.jmeter.threads.JMeterThread<file:///X:/travelink/Nov%202006%20load%20testing/notes.htm#>
.run(JMeterThread<file:///X:/travelink/Nov%202006%20load%20testing/notes.htm#>
.java:247)
at java.lang.Thread.run(Thread.java:534)
...  [REPEATED] ...
2006/02/16 11:21:04 INFO -
jmeter.control.IncludeController<file:///X:/travelink/Nov%202006%20load%20testing/notes.htm#>:
loadIncludedElements -- try to load included module
...  [REPEATED] ...

These error messages do not appear in GUI mode, although I can't quite
figure out why. Taking the Include controller outside the Transaction
Controller doesn't seem to change anything, it still doesn't work.

So.... anyone know what's going on?

Reply via email to