Sha256: a90e96dfd9069e728ebaa7fbb4f0d9bbd545518eda35115afe9e4e36399dfed4
Contents?: true
Size: 1.1 KB
Versions: 15
Compression:
Stored size: 1.1 KB
Contents
module RubyJmeter module Plugins class DummySampler attr_accessor :doc include Helper def initialize(params={}) testname = params.kind_of?(Array) ? 'DummySampler' : (params[:name] || 'DummySampler') @doc = Nokogiri::XML(<<-EOF.strip_heredoc) <kg.apc.jmeter.samplers.DummySampler guiclass="kg.apc.jmeter.samplers.DummySamplerGui" testclass="kg.apc.jmeter.samplers.DummySampler" testname="#{testname}" enabled="true"> <boolProp name="WAITING">true</boolProp> <boolProp name="SUCCESFULL">true</boolProp> <stringProp name="RESPONSE_CODE">200</stringProp> <stringProp name="RESPONSE_MESSAGE">OK</stringProp> <stringProp name="REQUEST_DATA"></stringProp> <stringProp name="RESPONSE_DATA"></stringProp> <stringProp name="RESPONSE_TIME">0</stringProp> <stringProp name="LATENCY">0</stringProp> </kg.apc.jmeter.samplers.DummySampler> EOF upcased_params = {} params.each {|k,v| upcased_params[k.to_s.upcase] = v} update upcased_params end end end end
Version data entries
15 entries across 15 versions & 1 rubygems