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

Version Path
ruby-jmeter-3.1.08 lib/ruby-jmeter/plugins/dummy_sampler.rb
ruby-jmeter-3.1.07 lib/ruby-jmeter/plugins/dummy_sampler.rb
ruby-jmeter-3.1.06 lib/ruby-jmeter/plugins/dummy_sampler.rb
ruby-jmeter-3.1.05 lib/ruby-jmeter/plugins/dummy_sampler.rb
ruby-jmeter-3.1.04 lib/ruby-jmeter/plugins/dummy_sampler.rb
ruby-jmeter-3.1.03 lib/ruby-jmeter/plugins/dummy_sampler.rb
ruby-jmeter-3.1.02 lib/ruby-jmeter/plugins/dummy_sampler.rb
ruby-jmeter-3.1.01 lib/ruby-jmeter/plugins/dummy_sampler.rb
ruby-jmeter-3.0.13 lib/ruby-jmeter/plugins/dummy_sampler.rb
ruby-jmeter-3.0.12 lib/ruby-jmeter/plugins/dummy_sampler.rb
ruby-jmeter-3.0.11 lib/ruby-jmeter/plugins/dummy_sampler.rb
ruby-jmeter-3.0.10 lib/ruby-jmeter/plugins/dummy_sampler.rb
ruby-jmeter-3.0.9 lib/ruby-jmeter/plugins/dummy_sampler.rb
ruby-jmeter-3.0.8 lib/ruby-jmeter/plugins/dummy_sampler.rb
ruby-jmeter-3.0.7 lib/ruby-jmeter/plugins/dummy_sampler.rb