Sha256: 0c915c19f55838cb99a464c64081bf4c28ad17aa18431e4cfafb720f0daeea15

Contents?: true

Size: 1010 Bytes

Versions: 14

Compression:

Stored size: 1010 Bytes

Contents

module RubyJmeter
  class DSL
    def csv_data_set_config(params={}, &block)
      node = RubyJmeter::CsvDataSetConfig.new(params)
      attach_node(node, &block)
    end
  end

  class CsvDataSetConfig
    attr_accessor :doc
    include Helper

    def initialize(params={})
      testname = params.kind_of?(Array) ? 'CsvDataSetConfig' : (params[:name] || 'CsvDataSetConfig')
      @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
<CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="#{testname}" enabled="true">
  <stringProp name="delimiter">,</stringProp>
  <stringProp name="fileEncoding"/>
  <stringProp name="filename"/>
  <boolProp name="quotedData">false</boolProp>
  <boolProp name="recycle">true</boolProp>
  <stringProp name="shareMode">All threads</stringProp>
  <boolProp name="stopThread">false</boolProp>
  <stringProp name="variableNames"/>
</CSVDataSet>)
      EOS
      update params
      update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath]
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ruby-jmeter-2.1.7 lib/ruby-jmeter/dsl/csv_data_set_config.rb
ruby-jmeter-2.1.6 lib/ruby-jmeter/dsl/csv_data_set_config.rb
ruby-jmeter-2.1.5 lib/ruby-jmeter/dsl/csv_data_set_config.rb
ruby-jmeter-2.1.4 lib/ruby-jmeter/dsl/csv_data_set_config.rb
ruby-jmeter-2.1.3 lib/ruby-jmeter/dsl/csv_data_set_config.rb
ruby-jmeter-2.1.2 lib/ruby-jmeter/dsl/csv_data_set_config.rb
ruby-jmeter-2.1.1 lib/ruby-jmeter/dsl/csv_data_set_config.rb
ruby-jmeter-2.1.0 lib/ruby-jmeter/dsl/csv_data_set_config.rb
ruby-jmeter-2.0.9 lib/ruby-jmeter/dsl/csv_data_set_config.rb
ruby-jmeter-2.0.8 lib/ruby-jmeter/dsl/csv_data_set_config.rb
ruby-jmeter-2.0.7 lib/ruby-jmeter/dsl/csv_data_set_config.rb
ruby-jmeter-2.0.6 lib/ruby-jmeter/dsl/csv_data_set_config.rb
ruby-jmeter-2.0.5 lib/ruby-jmeter/dsl/csv_data_set_config.rb
ruby-jmeter-2.0.4 lib/ruby-jmeter/dsl/csv_data_set_config.rb