Sha256: 6371a56e2f97d4c5a6a4c03100e589d3f4becbb11ad498dffd534625414b14c5
Contents?: true
Size: 943 Bytes
Versions: 51
Compression:
Stored size: 943 Bytes
Contents
module RubyJmeter module Plugins class JsonPathExtractor attr_accessor :doc include Helper def initialize(params={}) testname = params.kind_of?(Array) ? 'XpathExtractor' : (params[:name] || 'XpathExtractor') @doc = Nokogiri::XML(<<-EOF.strip_heredoc) <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
51 entries across 51 versions & 1 rubygems