Sha256: 2b69b6a02e67a9d12b8fa08f548b3989ec18b4a84b1637e60bc71de411b25373
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
module JmeterPerf class DSL def html_parameter_mask(params = {}, &) node = JmeterPerf::HTMLParameterMask.new(params) attach_node(node, &) end end class HTMLParameterMask attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "HTMLParameterMask" : (params[:name] || "HTMLParameterMask") @doc = Nokogiri::XML(<<~EOS.strip_heredoc) <ConfigTestElement guiclass="ObsoleteGui" testclass="ConfigTestElement" testname="#{testname}" enabled="true"> <elementProp name="ParamModifier.mask" elementType="ConfigTestElement"> <stringProp name="ParamModifier.field_name"/> <stringProp name="ParamModifier.prefix"/> <longProp name="ParamModifier.lower_bound">0</longProp> <longProp name="ParamModifier.upper_bound">10</longProp> <longProp name="ParamModifier.increment">1</longProp> <stringProp name="ParamModifier.suffix"/> </elementProp> </ConfigTestElement> EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jmeter_perf-0.0.6 | lib/jmeter_perf/dsl/html_parameter_mask.rb |
jmeter_perf-0.0.2 | lib/jmeter_perf/dsl/html_parameter_mask.rb |