ruby-jmeter 3.0.13 → 3.1.01

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7dab8de97a7861526f1546fd51839fee7388fa5
4
- data.tar.gz: eebdd9d78ae028b992193a7cc1b768aa9668dd34
3
+ metadata.gz: 3663e498326bf8d01026ced80d7706a98288f802
4
+ data.tar.gz: d1ca16c4f60497ec740162a87e72a8f6107abe84
5
5
  SHA512:
6
- metadata.gz: c1fd9f311fc06997e81d9a66c0d7920507f98321fc3f704b54e1ccb2278b075941a93072c63529302a5213a5e491b010ea15e2f882dfaf705f357adbfbd99126
7
- data.tar.gz: 808d38f0e291839a283c874845a19fa12bd0d1e9072f9ca1d3b694aa2f1a565feb5c6bc9d980ae41e85f19ed7f69c85dcc6cc2449c04f59c3ab27f6722a57f9b
6
+ metadata.gz: 80e2b735c36093957df2b0a43600105527149b4e99442c940850a0b52cba6b33eb38b37aad33f90899846dc6957638d86dec3301b773c685507e466a065d1f61
7
+ data.tar.gz: 97749ed9ab443c911735950b42e40e2547019ff901d9ae97f3f368facfb6f66d0e4458e490bdeddd176efbb4c69c8535110254495023910b4589b3838f0d430f
@@ -0,0 +1,19 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ require 'ruby-jmeter'
3
+
4
+ module RubyJmeter
5
+ class ExtendedDSL < DSL
6
+ def test_method_here
7
+ puts "here be dragons"
8
+ end
9
+ end
10
+ end
11
+
12
+
13
+ test do
14
+ threads count: 1 do
15
+ test_fragment name: 'RegisterResponseToSentMail', enabled: 'false' do
16
+ test_method_here
17
+ end
18
+ end
19
+ end.run(path: '/usr/local/share/jmeter-3.1/bin/', gui: true)
@@ -6,7 +6,7 @@ module RubyJmeter
6
6
  def initialize(params = {})
7
7
  @root = Nokogiri::XML(<<-EOF.strip_heredoc)
8
8
  <?xml version="1.0" encoding="UTF-8"?>
9
- <jmeterTestPlan version="1.2" properties="2.9" jmeter="3.0" ruby-jmeter="3.0">
9
+ <jmeterTestPlan version="1.2" properties="3.1" jmeter="3.1" ruby-jmeter="3.0">
10
10
  <hashTree>
11
11
  </hashTree>
12
12
  </jmeterTestPlan>
@@ -20,6 +20,7 @@ module RubyJmeter
20
20
  <boolProp name="JMSSampler.isFireAndForget">true</boolProp>
21
21
  <boolProp name="JMSSampler.isNonPersistent">false</boolProp>
22
22
  <boolProp name="JMSSampler.useReqMsgIdAsCorrelId">false</boolProp>
23
+ <boolProp name="JMSSampler.useResMsgIdAsCorrelId">false</boolProp>
23
24
  <stringProp name="JMSSampler.timeout"/>
24
25
  <stringProp name="HTTPSamper.xml_data"/>
25
26
  <stringProp name="JMSSampler.initialContextFactory"/>
@@ -0,0 +1,26 @@
1
+ module RubyJmeter
2
+ class ExtendedDSL < DSL
3
+ def jms_pointtopoint(params, &block)
4
+
5
+ node = RubyJmeter::JmsPointtopoint.new(params).tap do |node|
6
+
7
+ if params[:jndi_properties]
8
+ params[:jndi_properties].map do |property_name, property_value|
9
+ node.doc.xpath('//collectionProp').first.add_child (
10
+ Nokogiri::XML(<<-EOS.strip_heredoc).children
11
+ <elementProp name="#{property_name}" elementType="Argument">
12
+ <stringProp name="Argument.name">#{property_name}</stringProp>
13
+ <stringProp name="Argument.value">#{property_value}</stringProp>
14
+ <stringProp name="Argument.metadata">=</stringProp>
15
+ </elementProp>
16
+ EOS
17
+ )
18
+ end
19
+ end
20
+
21
+ attach_node(node, &block)
22
+
23
+ end
24
+ end
25
+ end
26
+ end
@@ -597,6 +597,7 @@
597
597
  <boolProp name="JMSSampler.isFireAndForget">true</boolProp>
598
598
  <boolProp name="JMSSampler.isNonPersistent">false</boolProp>
599
599
  <boolProp name="JMSSampler.useReqMsgIdAsCorrelId">false</boolProp>
600
+ <boolProp name="JMSSampler.useResMsgIdAsCorrelId">false</boolProp>
600
601
  <stringProp name="JMSSampler.timeout"></stringProp>
601
602
  <stringProp name="HTTPSamper.xml_data"></stringProp>
602
603
  <stringProp name="JMSSampler.initialContextFactory"></stringProp>
@@ -1,3 +1,3 @@
1
1
  module RubyJmeter
2
- VERSION = '3.0.13'
2
+ VERSION = '3.1.01'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-jmeter
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.13
4
+ version: 3.1.01
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Koopmans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-21 00:00:00.000000000 Z
11
+ date: 2017-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -89,6 +89,7 @@ files:
89
89
  - examples/loops_with_counter.rb
90
90
  - examples/once_only_controller.rb
91
91
  - examples/perfmon.rb
92
+ - examples/real_custom_methods.rb
92
93
  - examples/real_page_objects.rb
93
94
  - examples/real_redis_data_set_with_setup.rb
94
95
  - examples/real_user_objects_github.rb
@@ -250,6 +251,7 @@ files:
250
251
  - lib/ruby-jmeter/extend/processors/extract.rb
251
252
  - lib/ruby-jmeter/extend/processors/regular_expression_extractor.rb
252
253
  - lib/ruby-jmeter/extend/samplers/http_request.rb
254
+ - lib/ruby-jmeter/extend/samplers/jms_pointtopoint.rb
253
255
  - lib/ruby-jmeter/extend/samplers/soapxmlrpc_request.rb
254
256
  - lib/ruby-jmeter/extend/threads/setup_thread_group.rb
255
257
  - lib/ruby-jmeter/extend/threads/thread_group.rb