selenium-framework 1.0.15 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/testdata/sample.avi +0 -0
- data/bin/testdata/sample.bmp +0 -0
- data/bin/testdata/sample.gif +0 -0
- data/bin/testdata/sample.pdf +0 -0
- data/bin/testdata/sample.png +0 -0
- data/bin/testdata/sample.wmv +0 -0
- data/bin/testdata/sample.xml +10 -0
- data/bin/testframe +18 -52
- metadata +11 -4
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
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.
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
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.
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
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.
|
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-
|
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.
|
160
|
-
- bin/testdata/sample.
|
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
|