selenium-framework 1.0.14 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/testdata/sample.flv +0 -0
- data/bin/testdata/sample.jpeg +0 -0
- data/bin/testdata/sample.mp4 +0 -0
- data/bin/testdata/sample.txt +9 -0
- data/bin/testframe +55 -1
- metadata +6 -2
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,9 @@
|
|
1
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut pulvinar iaculis consectetur. Vivamus gravida sollicitudin volutpat. Donec volutpat neque ipsum, et hendrerit diam varius et. Maecenas scelerisque, orci pellentesque sollicitudin suscipit, velit lorem cursus velit, eget euismod sem augue id metus. Integer eu posuere ante. Integer scelerisque in diam vitae rutrum. Fusce sit amet odio at est tempus interdum. Etiam sagittis massa arcu, sed lacinia ante tempus ut. Proin et tempus mauris.
|
2
|
+
|
3
|
+
Nullam id mauris facilisis, tincidunt nunc eget, tincidunt neque. Sed tincidunt imperdiet tellus. Nam pellentesque sem eget placerat tristique. Cras consectetur leo velit, ac vestibulum erat hendrerit vitae. Suspendisse potenti. Nam dignissim mi nec diam feugiat pellentesque. Mauris dictum eu metus sed tempus. Quisque eu eleifend quam. Proin gravida sem mauris. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur pretium leo at neque pharetra, sed placerat lacus porttitor.
|
4
|
+
|
5
|
+
Cras non molestie neque. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nullam vel scelerisque felis. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam sollicitudin ut lectus ac fringilla. Nulla convallis nunc erat, sit amet iaculis lectus vehicula in. Aliquam lacinia enim in tellus sagittis, vel feugiat tortor hendrerit. Maecenas justo felis, hendrerit vel quam in, cursus scelerisque nunc. Nullam condimentum est ut diam tempor congue. Praesent blandit vehicula risus, vulputate rhoncus est semper id.
|
6
|
+
|
7
|
+
Ut facilisis, justo quis pretium cursus, lacus purus suscipit sapien, nec facilisis lorem eros vel mi. Ut nec pharetra tellus. Fusce gravida et libero et suscipit. Sed sed urna leo. Nulla viverra, orci sit amet sollicitudin gravida, nulla velit malesuada mi, vitae sodales dolor augue ac lacus. Sed et scelerisque urna. Donec venenatis orci augue, nec fermentum purus viverra ut. Donec at velit nec neque malesuada cursus. Fusce aliquam justo vitae aliquam fermentum. Ut bibendum ligula nisl, vitae fringilla nisi dictum ut. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce nulla risus, vehicula eu risus vitae, varius sollicitudin nibh.
|
8
|
+
|
9
|
+
Donec et leo eu diam cursus ornare id nec velit. Nunc eget sodales mauris, vel convallis turpis. Donec varius ornare diam ac malesuada. Ut hendrerit malesuada felis, aliquet faucibus turpis tempus id. Integer eu mi eu ipsum auctor lobortis. Donec consequat augue et dui scelerisque lobortis. Donec convallis dui non neque venenatis, in facilisis erat eleifend. Nullam quam tellus, dapibus vel luctus vitae, vestibulum non urna. Suspendisse imperdiet, mi sodales ullamcorper viverra, lorem mauris ultrices dui, dapibus dignissim enim magna vel urna. Fusce feugiat enim nibh, et scelerisque metus commodo id. Morbi sit amet nibh eget nibh volutpat lobortis. Nunc tincidunt a elit id tempus.
|
data/bin/testframe
CHANGED
@@ -28,7 +28,7 @@ def help_text
|
|
28
28
|
exit
|
29
29
|
end
|
30
30
|
|
31
|
-
internal_dir = ['libraries', 'testcases','config','builds']
|
31
|
+
internal_dir = ['libraries', 'testcases', 'config', 'builds', 'testdata']
|
32
32
|
|
33
33
|
if ARGV[0] == nil || ARGV[1] == nil || (ARGV[0] !='new' && ARGV[0] !='update') || ARGV[0] == '-h' || ARGV[0] == '--help'
|
34
34
|
help_text
|
@@ -116,6 +116,33 @@ 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)
|
145
|
+
|
119
146
|
puts "\nFramework for #{project_name} is created..."
|
120
147
|
puts "\nbundle install"
|
121
148
|
Dir.chdir(project_directory_path + "/" + project_name)
|
@@ -175,6 +202,33 @@ if exist_flag == 2
|
|
175
202
|
Dir.chdir(project_directory_path)
|
176
203
|
print_path('config/selenium-framework.yml', project_directory_path + '/' + project_name, project_directory_path)
|
177
204
|
|
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)
|
231
|
+
|
178
232
|
puts "\nFramework for #{project_name} is created..."
|
179
233
|
puts "\nbundle install"
|
180
234
|
Dir.chdir(project_directory_path + "/" + project_name)
|
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.15
|
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-
|
12
|
+
date: 2013-06-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -156,6 +156,10 @@ 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
|
161
|
+
- bin/testdata/sample.flv
|
162
|
+
- bin/testdata/sample.mp4
|
159
163
|
- LICENSE
|
160
164
|
- README.md
|
161
165
|
- bin/testframe
|