Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-6751

Add support for custom Sample Results

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • jmeter
    • None

      I had need to subclass off of SampleResult for a custom sampler I created. Unfortunately, this breaks the performance plugin since it's looking specifically for sample or httpSample (and not, say .*[S|s]ample)

      My xml report looks like this:
      <?xml version="1.0" encoding="UTF-8"?>
      <testResults version="1.2">
      <com.ften.vx.jmeter.sampler.FixSampleResult>

      In case the xml tags get removed, basically we get a fully qualified class name as a tag instead of just sample or httpSample.

      Looking at JMeterParser.java, I believe you could just create a SampleResult instead of a HttpSampleResult since you don't use any methods specific to the http sample result (in that method at least). You could look for any tag ending in Sample or sample and populate the SampleResult with the data you need.

            vergnes vergnes
            scooper4711 scooper4711
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: