selenium-framework 1.0.15 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <reviews itemIdentifier="ligouHDR-HC1_sample1"> <info>
3
+
4
+ <num_reviews>0</num_reviews>
5
+
6
+ <avg_rating>0</avg_rating>
7
+
8
+ </info>
9
+
10
+ </reviews>
data/bin/testframe CHANGED
@@ -116,32 +116,15 @@ if exist_flag == 1 && update_flag == 0
116
116
  Dir.chdir(project_directory_path)
117
117
  print_path('config/selenium-framework.yml', project_directory_path + '/' + project_name, project_directory_path)
118
118
 
119
- Dir.chdir(project_directory_path + '/' + project_name)
120
- Dir.chdir('testdata')
121
- FileUtils.touch 'sample.txt'
122
- source = File.expand_path File.dirname(__FILE__).to_s + '/testdata/sample.txt'
123
- destination = project_directory_path + '/' + project_name + '/testdata/sample.txt'
124
- FileUtils.copy_file(source, destination)
125
- Dir.chdir(project_directory_path)
126
- print_path('testdata/sample.txt', project_directory_path + '/' + project_name, project_directory_path)
127
- FileUtils.touch 'sample.jpeg'
128
- source = File.expand_path File.dirname(__FILE__).to_s + '/testdata/sample.jpeg'
129
- destination = project_directory_path + '/' + project_name + '/testdata/sample.jpeg'
130
- FileUtils.copy_file(source, destination)
131
- Dir.chdir(project_directory_path)
132
- print_path('testdata/sample.jpeg', project_directory_path + '/' + project_name, project_directory_path)
133
- FileUtils.touch 'sample.flv'
134
- source = File.expand_path File.dirname(__FILE__).to_s + '/testdata/sample.flv'
135
- destination = project_directory_path + '/' + project_name + '/testdata/sample.flv'
136
- FileUtils.copy_file(source, destination)
137
- Dir.chdir(project_directory_path)
138
- print_path('testdata/sample.flv', project_directory_path + '/' + project_name, project_directory_path)
139
- FileUtils.touch 'sample.mp4'
140
- source = File.expand_path File.dirname(__FILE__).to_s + '/testdata/sample.mp4'
141
- destination = project_directory_path + '/' + project_name + '/testdata/sample.mp4'
142
- FileUtils.copy_file(source, destination)
143
- Dir.chdir(project_directory_path)
144
- print_path('testdata/sample.mp4', project_directory_path + '/' + project_name, project_directory_path)
119
+ Dir.entries(File.expand_path File.dirname(__FILE__).to_s + '/testdata').select { |f| !File.directory? f }.each do |file_name|
120
+ Dir.chdir(project_directory_path + '/' + project_name + '/testdata')
121
+ FileUtils.touch file_name
122
+ source = File.expand_path File.dirname(__FILE__).to_s + "/testdata/#{file_name}"
123
+ destination = project_directory_path + '/' + project_name + "/testdata/#{file_name}"
124
+ FileUtils.copy_file(source, destination)
125
+ Dir.chdir(project_directory_path)
126
+ print_path("testdata/#{file_name}", project_directory_path + '/' + project_name, project_directory_path)
127
+ end
145
128
 
146
129
  puts "\nFramework for #{project_name} is created..."
147
130
  puts "\nbundle install"
@@ -202,32 +185,15 @@ if exist_flag == 2
202
185
  Dir.chdir(project_directory_path)
203
186
  print_path('config/selenium-framework.yml', project_directory_path + '/' + project_name, project_directory_path)
204
187
 
205
- Dir.chdir(project_directory_path + '/' + project_name)
206
- Dir.chdir('testdata')
207
- FileUtils.touch 'sample.txt'
208
- source = File.expand_path File.dirname(__FILE__).to_s + '/testdata/sample.txt'
209
- destination = project_directory_path + '/' + project_name + '/testdata/sample.txt'
210
- FileUtils.copy_file(source, destination)
211
- Dir.chdir(project_directory_path)
212
- print_path('testdata/sample.txt', project_directory_path + '/' + project_name, project_directory_path)
213
- FileUtils.touch 'sample.jpeg'
214
- source = File.expand_path File.dirname(__FILE__).to_s + '/testdata/sample.jpeg'
215
- destination = project_directory_path + '/' + project_name + '/testdata/sample.jpeg'
216
- FileUtils.copy_file(source, destination)
217
- Dir.chdir(project_directory_path)
218
- print_path('testdata/sample.jpeg', project_directory_path + '/' + project_name, project_directory_path)
219
- FileUtils.touch 'sample.flv'
220
- source = File.expand_path File.dirname(__FILE__).to_s + '/testdata/sample.flv'
221
- destination = project_directory_path + '/' + project_name + '/testdata/sample.flv'
222
- FileUtils.copy_file(source, destination)
223
- Dir.chdir(project_directory_path)
224
- print_path('testdata/sample.flv', project_directory_path + '/' + project_name, project_directory_path)
225
- FileUtils.touch 'sample.mp4'
226
- source = File.expand_path File.dirname(__FILE__).to_s + '/testdata/sample.mp4'
227
- destination = project_directory_path + '/' + project_name + '/testdata/sample.mp4'
228
- FileUtils.copy_file(source, destination)
229
- Dir.chdir(project_directory_path)
230
- print_path('testdata/sample.mp4', project_directory_path + '/' + project_name, project_directory_path)
188
+ Dir.entries(File.expand_path File.dirname(__FILE__).to_s + '/testdata').select { |f| !File.directory? f }.each do |file_name|
189
+ Dir.chdir(project_directory_path + '/' + project_name + '/testdata')
190
+ FileUtils.touch file_name
191
+ source = File.expand_path File.dirname(__FILE__).to_s + "/testdata/#{file_name}"
192
+ destination = project_directory_path + '/' + project_name + "/testdata/#{file_name}"
193
+ FileUtils.copy_file(source, destination)
194
+ Dir.chdir(project_directory_path)
195
+ print_path("testdata/#{file_name}", project_directory_path + '/' + project_name, project_directory_path)
196
+ end
231
197
 
232
198
  puts "\nFramework for #{project_name} is created..."
233
199
  puts "\nbundle install"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.15
4
+ version: 1.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-26 00:00:00.000000000 Z
12
+ date: 2013-06-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -156,10 +156,17 @@ files:
156
156
  - bin/copyfiles/project_file.rb
157
157
  - lib/userextension/pre_requisite.rb
158
158
  - lib/userextension/utilities.rb
159
- - bin/testdata/sample.txt
160
- - bin/testdata/sample.jpeg
159
+ - bin/testdata/sample.avi
160
+ - bin/testdata/sample.bmp
161
161
  - bin/testdata/sample.flv
162
+ - bin/testdata/sample.gif
163
+ - bin/testdata/sample.jpeg
162
164
  - bin/testdata/sample.mp4
165
+ - bin/testdata/sample.pdf
166
+ - bin/testdata/sample.png
167
+ - bin/testdata/sample.txt
168
+ - bin/testdata/sample.wmv
169
+ - bin/testdata/sample.xml
163
170
  - LICENSE
164
171
  - README.md
165
172
  - bin/testframe