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