Sha256: e1463574da97fb7368225df2beed158f486288064097ced4b047e5407b8a73fb

Contents?: true

Size: 860 Bytes

Versions: 61

Compression:

Stored size: 860 Bytes

Contents

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

  class KeystoreConfiguration
    attr_accessor :doc
    include Helper

    def initialize(params={})
      testname = params.kind_of?(Array) ? 'KeystoreConfiguration' : (params[:name] || 'KeystoreConfiguration')
      @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
<KeystoreConfig guiclass="TestBeanGUI" testclass="KeystoreConfig" testname="#{testname}" enabled="true">
  <stringProp name="endIndex"/>
  <stringProp name="preload">True</stringProp>
  <stringProp name="startIndex"/>
  <stringProp name="clientCertAliasVarName"/>
</KeystoreConfig>)
      EOS
      update params
      update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath]
    end
  end

end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
ruby-jmeter-3.1.08 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.1.07 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.1.06 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.1.05 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.1.04 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.1.03 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.1.02 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.1.01 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.0.13 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.0.12 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.0.11 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.0.10 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.0.9 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.0.8 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.0.7 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.0.6 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.0.5 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.0.4 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.0.3 lib/ruby-jmeter/dsl/keystore_configuration.rb
ruby-jmeter-3.0.2 lib/ruby-jmeter/dsl/keystore_configuration.rb