Sha256: 5c090f4c43d4815030fd87bb4acded68a1e1ff85fc461845ac727048ef5f21fe
Contents?: true
Size: 845 Bytes
Versions: 2
Compression:
Stored size: 845 Bytes
Contents
module JmeterPerf class DSL def bsf_preprocessor(params = {}, &) node = JmeterPerf::BSFPreprocessor.new(params) attach_node(node, &) end end class BSFPreprocessor attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "BSFPreprocessor" : (params[:name] || "BSFPreprocessor") @doc = Nokogiri::XML(<<~EOS.strip_heredoc) <BSFPreProcessor guiclass="TestBeanGUI" testclass="BSFPreProcessor" testname="#{testname}" enabled="true"> <stringProp name="filename"/> <stringProp name="parameters"/> <stringProp name="script"/> <stringProp name="scriptLanguage"/> </BSFPreProcessor> 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/bsf_preprocessor.rb |
jmeter_perf-0.0.2 | lib/jmeter_perf/dsl/bsf_preprocessor.rb |