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