lazyman 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -5,17 +5,17 @@ source "http://ruby.taobao.org"
5
5
 
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
8
- gem "rspec"
9
- gem "page-object"
10
- gem "watir-webdriver"
11
- gem "active_support"
8
+ gem "rspec", "~> 2.13.0"
9
+ gem "page-object", "~> 0.8.6.1"
10
+ gem "thor", "~> 0.14.6"
11
+ gem "active_support", "~> 3.0.0"
12
12
 
13
13
  group :development do
14
14
  gem "rdoc", "~> 3.12"
15
15
  gem "bundler", "~> 1.0.0"
16
16
  gem "jeweler", "~> 1.8.4"
17
- gem "rspec"
18
- gem "page-object"
19
- gem "watir-webdriver"
20
- gem "active_support"
17
+ gem "rspec", "~> 2.13.0"
18
+ gem "page-object", "~> 0.8.6.1"
19
+ gem "thor", "~> 0.14.6"
20
+ gem "active_support", "~> 3.0.0"
21
21
  end
@@ -45,6 +45,7 @@ GEM
45
45
  multi_json (~> 1.0)
46
46
  rubyzip
47
47
  websocket (~> 1.0.4)
48
+ thor (0.14.6)
48
49
  watir-webdriver (0.6.2)
49
50
  selenium-webdriver (>= 2.18.0)
50
51
  websocket (1.0.7)
@@ -54,10 +55,10 @@ PLATFORMS
54
55
  x86-mingw32
55
56
 
56
57
  DEPENDENCIES
57
- active_support
58
+ active_support (~> 3.0.0)
58
59
  bundler (~> 1.0.0)
59
60
  jeweler (~> 1.8.4)
60
- page-object
61
+ page-object (~> 0.8.6.1)
61
62
  rdoc (~> 3.12)
62
- rspec
63
- watir-webdriver
63
+ rspec (~> 2.13.0)
64
+ thor (~> 0.14.6)
@@ -0,0 +1,76 @@
1
+ lazyman
2
+ =====================
3
+
4
+ A simple web automation test framework using [selenium-webdriver](http://docs.seleniumhq.org/projects/webdriver/),[watir-webdriver](https://github.com/watir/watir-webdriver),[page-object](https://github.com/cheezy/page-object) and [rspec](https://github.com/rspec/rspec).
5
+
6
+ The philosophy of lazyman is 'do less, gain more'.
7
+
8
+ Now lazyman only tested in windows, other platformes are going to be tested soon.
9
+
10
+ Install lazyman
11
+ ---------------
12
+ Install lazyman from rubygems
13
+
14
+ gem install lazyman
15
+
16
+ Or clone from github
17
+
18
+ If you have any issue when install lazyman, install the gems below:
19
+
20
+ gem install thor
21
+
22
+
23
+ Create a lazyman project
24
+ ------------------------
25
+ In windows, open command console and type just like below:
26
+
27
+ lazyman new your_project_name
28
+
29
+ Run Examples
30
+ ------------
31
+
32
+ Lazyman contains some examples that explain how to use lazyman writing your own test cases.
33
+
34
+ By default, lazyman runs examples using chrome browser, so make sure you installed google chrome and according [chrome driver](http://code.google.com/p/chromedriver/downloads/list)
35
+
36
+ Using following command to make everything running.
37
+
38
+ cd your_project_name
39
+ rspec -f doc
40
+
41
+ Understand lazyman project structure
42
+ ------------------------------------
43
+
44
+ Lazyman project has a clean and simple structure.
45
+
46
+ * app: holds your test codes;
47
+ * config: where your config file placed;
48
+
49
+ * app->pages: puts all your pages files here;
50
+ * app->pages->components: sometimes,there are some html element that could be reused more than once, define a component, place the file here and you can include your components in your pages.
51
+
52
+ * app->cases: holds your testcase files;
53
+ * app->cases->shared: Image that, you are testing a system which need to login before any actions, so you want to define a login function which can be called from your cases. Define reused cases here.
54
+
55
+ * app->reports: the fold holds your test reports.
56
+
57
+ * app->matchers: defind your owner rspec matchers here.
58
+
59
+
60
+ Contributing to lazyman
61
+ -----------------------
62
+
63
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
64
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
65
+ * Fork the project.
66
+ * Start a feature/bugfix branch.
67
+ * Commit and push until you are happy with your contribution.
68
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
69
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
70
+
71
+ Copyright
72
+ ---------
73
+
74
+ Copyright (c) 2013 easonhan. See LICENSE.txt for
75
+ further details.
76
+
@@ -1,6 +1,25 @@
1
- = lazyman
1
+ lazyman
2
+ =====================
3
+
4
+ A simple web automation test framework using [selenium-webdriver](http://docs.seleniumhq.org/projects/webdriver/),[watir-webdriver](https://github.com/watir/watir-webdriver),[page-object](https://github.com/cheezy/page-object) and rspec(https://github.com/rspec/rspec).
5
+
6
+ Now lazyman only tested in windows, other platformes are going to be tested soon.
7
+
8
+ Install lazyman
9
+ ---------------
10
+ Install lazyman from rubygems
11
+
12
+ gem install lazyman
13
+
14
+ Or clone from github
15
+
16
+ Create a lazyman project
17
+ ------------------------
18
+ In windows, open command console and type just like below:
19
+
20
+ lazyman new your_project_name
21
+
2
22
 
3
- Description goes here.
4
23
 
5
24
  == Contributing to lazyman
6
25
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -5,16 +5,17 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "lazyman"
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["easonhan"]
12
- s.date = "2013-04-06"
12
+ s.date = "2013-04-07"
13
13
  s.description = "A test framework using watir-webdriver rspec and page-object"
14
14
  s.email = "nbkhic@qq.com"
15
15
  s.executables = ["lazyman"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.txt",
18
+ "README.md",
18
19
  "README.rdoc"
19
20
  ]
20
21
  s.files = [
@@ -22,6 +23,7 @@ Gem::Specification.new do |s|
22
23
  "Gemfile",
23
24
  "Gemfile.lock",
24
25
  "LICENSE.txt",
26
+ "README.md",
25
27
  "README.rdoc",
26
28
  "Rakefile",
27
29
  "VERSION",
@@ -71,42 +73,42 @@ Gem::Specification.new do |s|
71
73
  s.specification_version = 3
72
74
 
73
75
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
74
- s.add_runtime_dependency(%q<rspec>, [">= 0"])
75
- s.add_runtime_dependency(%q<page-object>, [">= 0"])
76
- s.add_runtime_dependency(%q<watir-webdriver>, [">= 0"])
77
- s.add_runtime_dependency(%q<active_support>, [">= 0"])
76
+ s.add_runtime_dependency(%q<rspec>, ["~> 2.13.0"])
77
+ s.add_runtime_dependency(%q<page-object>, ["~> 0.8.6.1"])
78
+ s.add_runtime_dependency(%q<thor>, ["~> 0.14.6"])
79
+ s.add_runtime_dependency(%q<active_support>, ["~> 3.0.0"])
78
80
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
79
81
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
80
82
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
81
- s.add_development_dependency(%q<rspec>, [">= 0"])
82
- s.add_development_dependency(%q<page-object>, [">= 0"])
83
- s.add_development_dependency(%q<watir-webdriver>, [">= 0"])
84
- s.add_development_dependency(%q<active_support>, [">= 0"])
83
+ s.add_development_dependency(%q<rspec>, ["~> 2.13.0"])
84
+ s.add_development_dependency(%q<page-object>, ["~> 0.8.6.1"])
85
+ s.add_development_dependency(%q<thor>, ["~> 0.14.6"])
86
+ s.add_development_dependency(%q<active_support>, ["~> 3.0.0"])
85
87
  else
86
- s.add_dependency(%q<rspec>, [">= 0"])
87
- s.add_dependency(%q<page-object>, [">= 0"])
88
- s.add_dependency(%q<watir-webdriver>, [">= 0"])
89
- s.add_dependency(%q<active_support>, [">= 0"])
88
+ s.add_dependency(%q<rspec>, ["~> 2.13.0"])
89
+ s.add_dependency(%q<page-object>, ["~> 0.8.6.1"])
90
+ s.add_dependency(%q<thor>, ["~> 0.14.6"])
91
+ s.add_dependency(%q<active_support>, ["~> 3.0.0"])
90
92
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
91
93
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
92
94
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
93
- s.add_dependency(%q<rspec>, [">= 0"])
94
- s.add_dependency(%q<page-object>, [">= 0"])
95
- s.add_dependency(%q<watir-webdriver>, [">= 0"])
96
- s.add_dependency(%q<active_support>, [">= 0"])
95
+ s.add_dependency(%q<rspec>, ["~> 2.13.0"])
96
+ s.add_dependency(%q<page-object>, ["~> 0.8.6.1"])
97
+ s.add_dependency(%q<thor>, ["~> 0.14.6"])
98
+ s.add_dependency(%q<active_support>, ["~> 3.0.0"])
97
99
  end
98
100
  else
99
- s.add_dependency(%q<rspec>, [">= 0"])
100
- s.add_dependency(%q<page-object>, [">= 0"])
101
- s.add_dependency(%q<watir-webdriver>, [">= 0"])
102
- s.add_dependency(%q<active_support>, [">= 0"])
101
+ s.add_dependency(%q<rspec>, ["~> 2.13.0"])
102
+ s.add_dependency(%q<page-object>, ["~> 0.8.6.1"])
103
+ s.add_dependency(%q<thor>, ["~> 0.14.6"])
104
+ s.add_dependency(%q<active_support>, ["~> 3.0.0"])
103
105
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
104
106
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
105
107
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
106
- s.add_dependency(%q<rspec>, [">= 0"])
107
- s.add_dependency(%q<page-object>, [">= 0"])
108
- s.add_dependency(%q<watir-webdriver>, [">= 0"])
109
- s.add_dependency(%q<active_support>, [">= 0"])
108
+ s.add_dependency(%q<rspec>, ["~> 2.13.0"])
109
+ s.add_dependency(%q<page-object>, ["~> 0.8.6.1"])
110
+ s.add_dependency(%q<thor>, ["~> 0.14.6"])
111
+ s.add_dependency(%q<active_support>, ["~> 3.0.0"])
110
112
  end
111
113
  end
112
114
 
@@ -1,3 +1,4 @@
1
+ require 'rubygems' #for ruby187
1
2
  begin
2
3
  require 'lazyman'
3
4
  rescue LoadError
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazyman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,55 +9,55 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-06 00:00:00.000000000 Z
12
+ date: 2013-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &23455464 !ruby/object:Gem::Requirement
16
+ requirement: &24142308 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ! '>='
19
+ - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
21
+ version: 2.13.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *23455464
24
+ version_requirements: *24142308
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: page-object
27
- requirement: &23455176 !ruby/object:Gem::Requirement
27
+ requirement: &24142008 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
- - - ! '>='
30
+ - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: '0'
32
+ version: 0.8.6.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *23455176
35
+ version_requirements: *24142008
36
36
  - !ruby/object:Gem::Dependency
37
- name: watir-webdriver
38
- requirement: &23454888 !ruby/object:Gem::Requirement
37
+ name: thor
38
+ requirement: &24141720 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
- - - ! '>='
41
+ - - ~>
42
42
  - !ruby/object:Gem::Version
43
- version: '0'
43
+ version: 0.14.6
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *23454888
46
+ version_requirements: *24141720
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: active_support
49
- requirement: &23454600 !ruby/object:Gem::Requirement
49
+ requirement: &24141432 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
- - - ! '>='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 3.0.0
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *23454600
57
+ version_requirements: *24141432
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rdoc
60
- requirement: &23454312 !ruby/object:Gem::Requirement
60
+ requirement: &24141120 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '3.12'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *23454312
68
+ version_requirements: *24141120
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
- requirement: &23454024 !ruby/object:Gem::Requirement
71
+ requirement: &24140832 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.0.0
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *23454024
79
+ version_requirements: *24140832
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: jeweler
82
- requirement: &23453724 !ruby/object:Gem::Requirement
82
+ requirement: &24140532 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,51 +87,51 @@ dependencies:
87
87
  version: 1.8.4
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *23453724
90
+ version_requirements: *24140532
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rspec
93
- requirement: &23453424 !ruby/object:Gem::Requirement
93
+ requirement: &24140232 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
- - - ! '>='
96
+ - - ~>
97
97
  - !ruby/object:Gem::Version
98
- version: '0'
98
+ version: 2.13.0
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *23453424
101
+ version_requirements: *24140232
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: page-object
104
- requirement: &23453100 !ruby/object:Gem::Requirement
104
+ requirement: &24139944 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
- - - ! '>='
107
+ - - ~>
108
108
  - !ruby/object:Gem::Version
109
- version: '0'
109
+ version: 0.8.6.1
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *23453100
112
+ version_requirements: *24139944
113
113
  - !ruby/object:Gem::Dependency
114
- name: watir-webdriver
115
- requirement: &23452812 !ruby/object:Gem::Requirement
114
+ name: thor
115
+ requirement: &24164232 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
- - - ! '>='
118
+ - - ~>
119
119
  - !ruby/object:Gem::Version
120
- version: '0'
120
+ version: 0.14.6
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *23452812
123
+ version_requirements: *24164232
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: active_support
126
- requirement: &23452512 !ruby/object:Gem::Requirement
126
+ requirement: &24163944 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
- - - ! '>='
129
+ - - ~>
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: 3.0.0
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *23452512
134
+ version_requirements: *24163944
135
135
  description: A test framework using watir-webdriver rspec and page-object
136
136
  email: nbkhic@qq.com
137
137
  executables:
@@ -139,12 +139,14 @@ executables:
139
139
  extensions: []
140
140
  extra_rdoc_files:
141
141
  - LICENSE.txt
142
+ - README.md
142
143
  - README.rdoc
143
144
  files:
144
145
  - .document
145
146
  - Gemfile
146
147
  - Gemfile.lock
147
148
  - LICENSE.txt
149
+ - README.md
148
150
  - README.rdoc
149
151
  - Rakefile
150
152
  - VERSION
@@ -198,7 +200,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
200
  version: '0'
199
201
  segments:
200
202
  - 0
201
- hash: 154184751
203
+ hash: -704091149
202
204
  required_rubygems_version: !ruby/object:Gem::Requirement
203
205
  none: false
204
206
  requirements: