ruby-jmeter 2.0.9 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ruby-jmeter/dsl/http_request.rb +1 -1
- data/lib/ruby-jmeter/idl.xml +1 -1
- data/lib/ruby-jmeter/version.rb +1 -1
- data/spec/dsl_spec.rb +8 -0
- metadata +1 -1
@@ -31,7 +31,7 @@ module RubyJmeter
|
|
31
31
|
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
32
32
|
<boolProp name="HTTPSampler.monitor">false</boolProp>
|
33
33
|
<stringProp name="HTTPSampler.embedded_url_re"/>
|
34
|
-
<stringProp name="HTTPSampler.implementation"
|
34
|
+
<stringProp name="HTTPSampler.implementation"/>
|
35
35
|
</HTTPSamplerProxy>)
|
36
36
|
EOS
|
37
37
|
update params
|
data/lib/ruby-jmeter/idl.xml
CHANGED
@@ -527,7 +527,7 @@
|
|
527
527
|
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
528
528
|
<boolProp name="HTTPSampler.monitor">false</boolProp>
|
529
529
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
530
|
-
<stringProp name="HTTPSampler.implementation"
|
530
|
+
<stringProp name="HTTPSampler.implementation"></stringProp>
|
531
531
|
</HTTPSamplerProxy>
|
532
532
|
<hashTree/>
|
533
533
|
<JavaSampler guiclass="JavaTestSamplerGui" testclass="JavaSampler" testname="Java Request" enabled="true">
|
data/lib/ruby-jmeter/version.rb
CHANGED
data/spec/dsl_spec.rb
CHANGED
@@ -59,10 +59,18 @@ describe "DSL" do
|
|
59
59
|
implementation: 'HttpClient3.1',
|
60
60
|
concurrentDwn: true,
|
61
61
|
concurrentPool: 4
|
62
|
+
threads do
|
63
|
+
visit url: "/"
|
64
|
+
end
|
62
65
|
end.to_doc
|
63
66
|
end
|
64
67
|
|
65
68
|
let(:fragment) { doc.search("//ConfigTestElement").first }
|
69
|
+
let(:sampler_fragment) { doc.search("//HTTPSamplerProxy").first }
|
70
|
+
|
71
|
+
it 'should match on implementation' do
|
72
|
+
sampler_fragment.search(".//stringProp[@name='HTTPSampler.implementation']").text.should == ''
|
73
|
+
end
|
66
74
|
|
67
75
|
it 'should match on defaults' do
|
68
76
|
fragment.search(".//stringProp[@name='HTTPSampler.domain']").text.should == 'example.com'
|