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 +4 -4
- data/examples/real_custom_methods.rb +19 -0
- data/lib/ruby-jmeter/dsl.rb +1 -1
- data/lib/ruby-jmeter/dsl/jms_pointtopoint.rb +1 -0
- data/lib/ruby-jmeter/extend/samplers/jms_pointtopoint.rb +26 -0
- data/lib/ruby-jmeter/idl.xml +1 -0
- data/lib/ruby-jmeter/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3663e498326bf8d01026ced80d7706a98288f802
|
4
|
+
data.tar.gz: d1ca16c4f60497ec740162a87e72a8f6107abe84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/lib/ruby-jmeter/dsl.rb
CHANGED
@@ -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="
|
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
|
data/lib/ruby-jmeter/idl.xml
CHANGED
@@ -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>
|
data/lib/ruby-jmeter/version.rb
CHANGED
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.
|
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:
|
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
|