screw_driver 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +31 -0
- data/Rakefile +2 -0
- data/lib/screw_driver/version.rb +3 -0
- data/lib/screw_driver.rb +141 -0
- data/screw_driver.gemspec +23 -0
- metadata +81 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fe6f8350b8f77e928efaab3bb5a0a1c239c3d113
|
4
|
+
data.tar.gz: 37e97624657fe07c445fdabc1567ccecfe23ecf2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c725dec02896d9dc32723be656bc4b12d583656913c055fd096fac9c1b19419b5a4e2dd4ae69b6fa42deb41f91441568e31cac8089fa49997759357dc5ea2357
|
7
|
+
data.tar.gz: 43a72ae3764fa277da73714b0f52d5be45453d4d31d1d6b4ef89b3da30b5f809f0f9ffb40627cb30bf4689c98dd6cadca23326461e150c74580b409d71354a4e
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2016 Abhinav Tiwari
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# ScrewDriver
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'screw_driver'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install screw_driver
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
TODO: Write usage instructions here
|
24
|
+
|
25
|
+
## Contributing
|
26
|
+
|
27
|
+
1. Fork it ( https://github.com/[my-github-username]/screw_driver/fork )
|
28
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
31
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/lib/screw_driver.rb
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
require "screw_driver/version"
|
2
|
+
|
3
|
+
module ScrewDriver
|
4
|
+
|
5
|
+
def screw_driver
|
6
|
+
# if SCENARIO_CNT == 1
|
7
|
+
delete_folder_structure
|
8
|
+
make_folder_structure
|
9
|
+
make_html
|
10
|
+
# end
|
11
|
+
# SCENARIO_CNT = SCENARIO_CNT + 1
|
12
|
+
|
13
|
+
end
|
14
|
+
def delete_folder_structure()
|
15
|
+
file_array = $FILENAME.split('/')
|
16
|
+
l =file_array.length
|
17
|
+
feature_name = file_array[l-1]
|
18
|
+
feature_name = feature_name.chomp('.feature')
|
19
|
+
path = Dir.pwd + '\Test Run Reports\\'
|
20
|
+
dir_path = path+feature_name
|
21
|
+
if File.directory?(dir_path)
|
22
|
+
## Dir.foreach(dir_path) {|f| fn = File.join(dir_path, f); File.delete(fn) if f != '.' && f != '..'}
|
23
|
+
## Dir.foreach(dir_path) {|f| delete(Dir) if f != '.' && f != '..'}
|
24
|
+
puts 'Folder Structure Deleted \\n' + dir_path
|
25
|
+
FileUtils.rm_rf(dir_path)
|
26
|
+
sleep(2)
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
def make_folder_structure()
|
31
|
+
|
32
|
+
file_array = $FILENAME.split('/')
|
33
|
+
l =file_array.length
|
34
|
+
feature_name = file_array[l-1]
|
35
|
+
feature_name = feature_name.chomp('.feature')
|
36
|
+
path = Dir.pwd + '\Test Run Reports\\'
|
37
|
+
dir_path = path+feature_name
|
38
|
+
FileUtils.mkdir_p(dir_path)
|
39
|
+
puts 'Folder Structure Created -> ' + dir_path
|
40
|
+
|
41
|
+
|
42
|
+
end
|
43
|
+
def make_html()
|
44
|
+
|
45
|
+
file_array = $FILENAME.split('/')
|
46
|
+
l =file_array.length
|
47
|
+
feature_name = file_array[l-1]
|
48
|
+
feature_name = feature_name.chomp('.feature')
|
49
|
+
path = Dir.pwd + '\Test Run Reports\\'
|
50
|
+
dir_path = path+feature_name
|
51
|
+
|
52
|
+
|
53
|
+
x = open(dir_path+'\\' +feature_name +".html",'a')
|
54
|
+
x.write "<html>
|
55
|
+
<head>
|
56
|
+
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
|
57
|
+
<link rel=\"stylesheet\" href=\"http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css\">
|
58
|
+
<script src=\"http://code.jquery.com/jquery-1.11.3.min.js\"></script>
|
59
|
+
<script src=\"http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js\"></script>
|
60
|
+
<style>
|
61
|
+
div.img {
|
62
|
+
margin: 5px;
|
63
|
+
border: 1px solid #ccc;
|
64
|
+
float: left;
|
65
|
+
width: 1440px;
|
66
|
+
}
|
67
|
+
|
68
|
+
div.img:hover {
|
69
|
+
border: 1px solid #777;
|
70
|
+
}
|
71
|
+
|
72
|
+
div.img img {
|
73
|
+
width: 100%;
|
74
|
+
height: auto;
|
75
|
+
}
|
76
|
+
|
77
|
+
div.desc {
|
78
|
+
padding: 15px;
|
79
|
+
text-align: center;
|
80
|
+
}
|
81
|
+
|
82
|
+
h1 {
|
83
|
+
font-family: \"Verdana\";
|
84
|
+
font-size: 20px;
|
85
|
+
text-align: left;
|
86
|
+
}
|
87
|
+
|
88
|
+
h2 {
|
89
|
+
font-family: \"Verdana\";
|
90
|
+
font-size: 20px;
|
91
|
+
text-align: left;
|
92
|
+
}
|
93
|
+
</style>
|
94
|
+
</head>
|
95
|
+
|
96
|
+
|
97
|
+
<img width=\"1914\" height=\"74\" title=\"\" alt=\"\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB3oAAABKCAYAAABdGFXKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAACSbSURBVHhe7d0JnM31GsfxZ8YY+1hKyiCELCMtlqkuMRhyK67IliaExjIkIyIiW0auxjJZM9Zhblm6FK4aoUYo+55kTFmylFKEuef3n984c5xl9jnLfN6v18n/9/xn5hxnzvn3evme5/l5JW33SxIA8GDxt9ZLq+BgvbK2bsMGCfRuoVcAAAAAAAAAAACuz1v/CQAAAAAAAAAAAABwEwS9AAAAAAAAAAAAAOBm0jW6+Xyl4/Ll5s3y+aZNsn/fPtm3d68+k7OCmjaV2fPmSanjlXQFyJuu1Dgt803vhXlz5sjphARdzV4lSpaUgIAAeeTRR+XJJ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AAAADuj6AXANyY2icX6UPQCwAAAAAAAADwJAS9AAAAAAAAAAAAAOBm2KMXAAAAAAAAAAAAANwMQS8AAAAAAAAAAAAAuBmCXgAAAAAAAAAAAABwMwS9AAAAAAAAAAAAAOBmCHoBAAAAAAAAAAAAwM14JZnoYwAAAAAAAAAAAACAG6CjFwAAAAAAAAAAAADcDEEvAAAAAAAAAAAAALgZgl4AAAAAAAAAAAAAcCsi/we9aDpqvOC5zgAAAABJRU5ErkJggg==\" />
|
98
|
+
"
|
99
|
+
x.close
|
100
|
+
|
101
|
+
end
|
102
|
+
|
103
|
+
def push_snapshot(filename,browser_class_var = @browser, scen_desc_for_new = '')
|
104
|
+
|
105
|
+
|
106
|
+
tnow = Time.now.to_s.gsub(':','_')
|
107
|
+
file_array = $FILENAME.split('/')
|
108
|
+
l =file_array.length
|
109
|
+
feature_name = file_array[l-1]
|
110
|
+
feature_name = feature_name.chomp('.feature')
|
111
|
+
path = Dir.pwd + '\Test Run Reports\\'
|
112
|
+
dir_path = path+feature_name
|
113
|
+
sleep(5)
|
114
|
+
browser_class_var.windows.last.use do
|
115
|
+
browser_class_var.screenshot.save(dir_path+ "\\" + filename + '_' +tnow + ".png")
|
116
|
+
end
|
117
|
+
|
118
|
+
x = open(dir_path+'\\' +feature_name +".html",'a')
|
119
|
+
if scen_desc_for_new != ''
|
120
|
+
x.write "<h1> #{scen_desc_for_new} </h1>"
|
121
|
+
end
|
122
|
+
|
123
|
+
x.write "<div data-role=\"collapsible\">
|
124
|
+
<h2>#{filename}: </h2>
|
125
|
+
<div class=\"img\">
|
126
|
+
<a target=\"_blank\" href=\"fjords.jpg\">
|
127
|
+
<img src=\"#{filename}" + "_" + "#{tnow}.png\" alt=\"Fjords\" width=\"1600\" height=\"1400\">
|
128
|
+
</a>
|
129
|
+
<div class=\"desc\">#{filename}</div>
|
130
|
+
</div>
|
131
|
+
</div>
|
132
|
+
<br clear=\"all\" />
|
133
|
+
"
|
134
|
+
x.close
|
135
|
+
|
136
|
+
end
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'screw_driver/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "screw_driver"
|
8
|
+
spec.version = ScrewDriver::VERSION
|
9
|
+
spec.authors = ["Abhinav Tiwari"]
|
10
|
+
spec.email = ["abhinav.x.tiwari@gmail.com"]
|
11
|
+
spec.summary = %q{This gem is used to capture screenshots in html using watir test automation framework}
|
12
|
+
spec.description = %q{}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: screw_driver
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Abhinav Tiwari
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-04-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
description: ''
|
42
|
+
email:
|
43
|
+
- abhinav.x.tiwari@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".gitignore"
|
49
|
+
- Gemfile
|
50
|
+
- LICENSE.txt
|
51
|
+
- README.md
|
52
|
+
- Rakefile
|
53
|
+
- lib/screw_driver.rb
|
54
|
+
- lib/screw_driver/version.rb
|
55
|
+
- screw_driver.gemspec
|
56
|
+
homepage: ''
|
57
|
+
licenses:
|
58
|
+
- MIT
|
59
|
+
metadata: {}
|
60
|
+
post_install_message:
|
61
|
+
rdoc_options: []
|
62
|
+
require_paths:
|
63
|
+
- lib
|
64
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
requirements: []
|
75
|
+
rubyforge_project:
|
76
|
+
rubygems_version: 2.2.3
|
77
|
+
signing_key:
|
78
|
+
specification_version: 4
|
79
|
+
summary: This gem is used to capture screenshots in html using watir test automation
|
80
|
+
framework
|
81
|
+
test_files: []
|