gridinit-jmeter 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitattributes +22 -0
- data/.gitignore +20 -0
- data/.rbenv-version +1 -0
- data/.rspec +2 -0
- data/.travis.yml +6 -0
- data/Gemfile +18 -0
- data/LICENSE.txt +22 -0
- data/README.md +335 -0
- data/Rakefile +6 -0
- data/examples/basic_assertion.rb +13 -0
- data/examples/basic_auth.rb +11 -0
- data/examples/basic_cache.rb +11 -0
- data/examples/basic_cookies.rb +11 -0
- data/examples/basic_google.rb +8 -0
- data/examples/basic_grid.rb +11 -0
- data/examples/basic_run.rb +12 -0
- data/examples/basic_testplan.jmx +138 -0
- data/examples/basic_testplan.rb +44 -0
- data/examples/basic_think_time.rb +12 -0
- data/gridinit-jmeter.gemspec +19 -0
- data/lib/gridinit-jmeter/auth_manager.rb +28 -0
- data/lib/gridinit-jmeter/cache_manager.rb +22 -0
- data/lib/gridinit-jmeter/cookie_manager.rb +23 -0
- data/lib/gridinit-jmeter/dsl.rb +177 -0
- data/lib/gridinit-jmeter/gaussian_random_timer.rb +17 -0
- data/lib/gridinit-jmeter/http_sampler.rb +68 -0
- data/lib/gridinit-jmeter/regex_extractor.rb +25 -0
- data/lib/gridinit-jmeter/response_assertion.rb +58 -0
- data/lib/gridinit-jmeter/test_plan.rb +22 -0
- data/lib/gridinit-jmeter/thread_group.rb +31 -0
- data/lib/gridinit-jmeter/transaction.rb +20 -0
- data/lib/gridinit-jmeter/user_defined_variable.rb +27 -0
- data/lib/gridinit-jmeter/version.rb +5 -0
- data/lib/gridinit-jmeter.rb +20 -0
- data/spec/dsl_spec.rb +35 -0
- data/spec/spec_helper.rb +10 -0
- data/spec/stub.rb +31 -0
- metadata +85 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rspec'
|
3
|
+
|
4
|
+
test_dir = File.dirname(__FILE__)
|
5
|
+
$LOAD_PATH.unshift test_dir unless $LOAD_PATH.include?(test_dir)
|
6
|
+
|
7
|
+
lib_dir = File.join(File.dirname(test_dir), 'lib')
|
8
|
+
$LOAD_PATH.unshift lib_dir unless $LOAD_PATH.include?(lib_dir)
|
9
|
+
|
10
|
+
require 'gridinit-jmeter'
|
data/spec/stub.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'sinatra'
|
2
|
+
|
3
|
+
get '/' do
|
4
|
+
haml :index
|
5
|
+
end
|
6
|
+
|
7
|
+
post '/login' do
|
8
|
+
logger.info params
|
9
|
+
haml :index
|
10
|
+
end
|
11
|
+
|
12
|
+
get '/cookies' do
|
13
|
+
response.set_cookie("JSESSIONID", :value => "1337")
|
14
|
+
end
|
15
|
+
|
16
|
+
get '/magic' do
|
17
|
+
haml :magic
|
18
|
+
end
|
19
|
+
|
20
|
+
__END__
|
21
|
+
|
22
|
+
@@ layout
|
23
|
+
%html
|
24
|
+
%meta(content="XAWfTfoqH9eOQy4ZN1U4z+rzfnC/hihb5lWv4VLRY5g=" name="csrf-token")
|
25
|
+
= yield
|
26
|
+
|
27
|
+
@@ index
|
28
|
+
%div.title Hello world.
|
29
|
+
|
30
|
+
@@ magic
|
31
|
+
%div.title Magic happens
|
metadata
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gridinit-jmeter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Tim Koopmans
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-11-19 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: This is a Ruby based DSL for writing JMeter test plans
|
15
|
+
email:
|
16
|
+
- support@gridinit.com
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- .gitattributes
|
22
|
+
- .gitignore
|
23
|
+
- .rbenv-version
|
24
|
+
- .rspec
|
25
|
+
- .travis.yml
|
26
|
+
- Gemfile
|
27
|
+
- LICENSE.txt
|
28
|
+
- README.md
|
29
|
+
- Rakefile
|
30
|
+
- examples/basic_assertion.rb
|
31
|
+
- examples/basic_auth.rb
|
32
|
+
- examples/basic_cache.rb
|
33
|
+
- examples/basic_cookies.rb
|
34
|
+
- examples/basic_google.rb
|
35
|
+
- examples/basic_grid.rb
|
36
|
+
- examples/basic_run.rb
|
37
|
+
- examples/basic_testplan.jmx
|
38
|
+
- examples/basic_testplan.rb
|
39
|
+
- examples/basic_think_time.rb
|
40
|
+
- gridinit-jmeter.gemspec
|
41
|
+
- lib/gridinit-jmeter.rb
|
42
|
+
- lib/gridinit-jmeter/auth_manager.rb
|
43
|
+
- lib/gridinit-jmeter/cache_manager.rb
|
44
|
+
- lib/gridinit-jmeter/cookie_manager.rb
|
45
|
+
- lib/gridinit-jmeter/dsl.rb
|
46
|
+
- lib/gridinit-jmeter/gaussian_random_timer.rb
|
47
|
+
- lib/gridinit-jmeter/http_sampler.rb
|
48
|
+
- lib/gridinit-jmeter/regex_extractor.rb
|
49
|
+
- lib/gridinit-jmeter/response_assertion.rb
|
50
|
+
- lib/gridinit-jmeter/test_plan.rb
|
51
|
+
- lib/gridinit-jmeter/thread_group.rb
|
52
|
+
- lib/gridinit-jmeter/transaction.rb
|
53
|
+
- lib/gridinit-jmeter/user_defined_variable.rb
|
54
|
+
- lib/gridinit-jmeter/version.rb
|
55
|
+
- spec/dsl_spec.rb
|
56
|
+
- spec/spec_helper.rb
|
57
|
+
- spec/stub.rb
|
58
|
+
homepage: ''
|
59
|
+
licenses: []
|
60
|
+
post_install_message:
|
61
|
+
rdoc_options: []
|
62
|
+
require_paths:
|
63
|
+
- lib
|
64
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
+
none: false
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
requirements: []
|
77
|
+
rubyforge_project:
|
78
|
+
rubygems_version: 1.8.23
|
79
|
+
signing_key:
|
80
|
+
specification_version: 3
|
81
|
+
summary: This is a Ruby based DSL for writing JMeter test plans
|
82
|
+
test_files:
|
83
|
+
- spec/dsl_spec.rb
|
84
|
+
- spec/spec_helper.rb
|
85
|
+
- spec/stub.rb
|