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.
@@ -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">HttpClient4</stringProp>
34
+ <stringProp name="HTTPSampler.implementation"/>
35
35
  </HTTPSamplerProxy>)
36
36
  EOS
37
37
  update params
@@ -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">HttpClient4</stringProp>
530
+ <stringProp name="HTTPSampler.implementation"></stringProp>
531
531
  </HTTPSamplerProxy>
532
532
  <hashTree/>
533
533
  <JavaSampler guiclass="JavaTestSamplerGui" testclass="JavaSampler" testname="Java Request" enabled="true">
@@ -1,3 +1,3 @@
1
1
  module RubyJmeter
2
- VERSION = "2.0.9"
2
+ VERSION = "2.1.0"
3
3
  end
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'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-jmeter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9
4
+ version: 2.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: