Sha256: eaf7efbcd56ecc6836c7a618ab087ac9f4fbd56c2f928bd0df7fb75ffa26454f

Contents?: true

Size: 971 Bytes

Versions: 12

Compression:

Stored size: 971 Bytes

Contents

module JmeterPerf
  module Plugins
    class JsonPathExtractor
      attr_accessor :doc
      include JmeterPerf::Helpers::XmlDocumentUpdater
      def initialize(params = {})
        @doc = Nokogiri::XML(
          JmeterPerf::Helpers::String.strip_heredoc(
            <<-EOF
              <com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor guiclass="com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.gui.JSONPathExtractorGui" testclass="com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor" testname="jp@gc - JSON Path Extractor" enabled="true">
                <stringProp name="VAR"></stringProp>
                <stringProp name="JSONPATH"></stringProp>
              </com.atlantbh.jmeter.plugins.jsonutils.jsonpathextractor.JSONPathExtractor>
            EOF
          )
        )
        update params
        update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath]
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
jmeter_perf-1.1.1 lib/jmeter_perf/plugins/json_path_extractor.rb
jmeter_perf-1.1.0 lib/jmeter_perf/plugins/json_path_extractor.rb
jmeter_perf-1.0.10 lib/jmeter_perf/plugins/json_path_extractor.rb
jmeter_perf-1.0.9 lib/jmeter_perf/plugins/json_path_extractor.rb
jmeter_perf-1.0.8 lib/jmeter_perf/plugins/json_path_extractor.rb
jmeter_perf-1.0.7 lib/jmeter_perf/plugins/json_path_extractor.rb
jmeter_perf-1.0.6 lib/jmeter_perf/plugins/json_path_extractor.rb
jmeter_perf-1.0.5 lib/jmeter_perf/plugins/json_path_extractor.rb
jmeter_perf-1.0.4 lib/jmeter_perf/plugins/json_path_extractor.rb
jmeter_perf-1.0.2 lib/jmeter_perf/plugins/json_path_extractor.rb
jmeter_perf-1.0.1 lib/jmeter_perf/plugins/json_path_extractor.rb
jmeter_perf-1.0.0 lib/jmeter_perf/plugins/json_path_extractor.rb