scoutui 0.1.3 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 597490bc864b9a5ab5ae2abb47f5ab6d384f26db
4
- data.tar.gz: 250daf6f585493301d23a20b73b0ffec728ee177
3
+ metadata.gz: 3d9e2fde17563fe12087fe92fa34af5062ea17dd
4
+ data.tar.gz: 4bdfcf36e43d291564a99daab5b09528debd3ffe
5
5
  SHA512:
6
- metadata.gz: 9e64db3af7536e55a3d18769ef42d334c3dee36a05147a3fe014a16a77193677f8f0fc6799509377bf8a359a9e6a177bb991ebdc7ab90c9410c91351454c19b9
7
- data.tar.gz: d64d32a4627e59340781012c27f88d08423ab4eebd407a1f8e8cdfad5482a3a9fac345d1824fbb4c1b1721361eba0fee21ffb1c8859ac928029018cb44047477
6
+ metadata.gz: 8fe016fcdb86bdbbd0e9017b9dbf4813b3a3bbb099815da656f7b336c8f3a29056b67cc9537fbd2c1b571b17eb83b23e13e3ac72709bf1a26e688da1fcea08f5
7
+ data.tar.gz: e2941891d3e702659b569bc37ca4afbe5804ccda571a1494c55c36ece98fb15cdd18e04545d7e4a57c45ce5d5211b3b13144fff9ff921a83c493fdf1052ddd61
Binary file
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scoutui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Kim
8
+ - Joshua Peeling
8
9
  autorequire:
9
10
  bindir: exe
10
11
  cert_chain: []
11
- date: 2015-10-15 00:00:00.000000000 Z
12
+ date: 2016-03-07 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
@@ -108,49 +109,57 @@ dependencies:
108
109
  - - '>='
109
110
  - !ruby/object:Gem::Version
110
111
  version: '0'
111
- description: Leverage a navigation framework integrated with Applitool's Eyes for
112
- page/image capture capabilities - welcome to the world of Visual Testing!
112
+ - !ruby/object:Gem::Dependency
113
+ name: faker
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: logging
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - '>='
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ - !ruby/object:Gem::Dependency
141
+ name: testmgr
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - '>='
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - '>='
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ description: Leverage a fully functional e2e framework that's integrated with Applitool's
155
+ Eyes and Sauce Labs!
113
156
  email:
114
157
  - h20dragon@outlook.com
115
158
  executables: []
116
159
  extensions: []
117
160
  extra_rdoc_files: []
118
161
  files:
119
- - .gitignore
120
- - .rspec
121
- - .travis.yml
122
- - CODE_OF_CONDUCT.md
123
- - Gemfile
124
- - LICENSE.txt
125
- - README.md
126
- - Rakefile
127
- - bin/console
128
- - bin/scoutui_driver.rb
129
- - bin/setup
130
- - examples/ex1/commands.yml
131
- - examples/ex1/test-example.sh
132
- - examples/ex1/test.config.json
133
- - examples/ex2/commands.yml
134
- - examples/ex2/page_model.json
135
- - examples/ex2/test-example.sh
136
- - examples/ex2/test.config.json
137
- - examples/ex6/commands.yml
138
- - examples/ex6/ex1.config.json
139
- - examples/ex6/test-example.sh
140
- - lib/scoutui.rb
141
- - lib/scoutui/base/q_accounts.rb
142
- - lib/scoutui/base/q_applitools.rb
143
- - lib/scoutui/base/q_browser.rb
144
- - lib/scoutui/base/test_scout.rb
145
- - lib/scoutui/base/test_settings.rb
146
- - lib/scoutui/base/user_vars.rb
147
- - lib/scoutui/base/visual_test_framework.rb
148
- - lib/scoutui/eyes/eye_factory.rb
149
- - lib/scoutui/eyes/eye_scout.rb
150
- - lib/scoutui/navigator.rb
151
- - lib/scoutui/utils/utils.rb
152
- - lib/scoutui/version.rb
153
- - scoutui.gemspec
162
+ - pkg/scoutui-2.0.0.gem
154
163
  homepage: https://github.com/h20dragon
155
164
  licenses:
156
165
  - MIT
@@ -174,5 +183,5 @@ rubyforge_project:
174
183
  rubygems_version: 2.4.7
175
184
  signing_key:
176
185
  specification_version: 4
177
- summary: Simple yet powerful navigation and browser snapshot framework.
186
+ summary: Simple yet powerful application model based automation framework.
178
187
  test_files: []
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.0.0
4
- before_install: gem install bundler -v 1.10.6
data/CODE_OF_CONDUCT.md DELETED
@@ -1,13 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
-
5
- We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
-
7
- Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
-
9
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
-
11
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
-
13
- This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in scoutui.gemspec
4
- gemspec
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 H20Dragon - Application Model Based Automation Framework
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/README.md DELETED
@@ -1,116 +0,0 @@
1
- # ScoutUI
2
-
3
- The ScoutUI gem provides a simple, yet powerful visual test framework to help you and your team with an automated visual test strategy.
4
-
5
- This project is still in beta, but working - the version '1.0.0' will be the first "stable" release.
6
-
7
- ## What does ScoutUI provide?
8
-
9
- 1. Command driven test strategy using YAML and/or JSON format
10
- 2. Integration with Applitools Eyes (this is optional - only if you have an Eyes account)
11
- 3. Leverage Selenium/WebDriver without having to hassle with it (e.g. APIs) to conduct browser testing
12
- a. UI Regression with Eyes
13
- b. Functional Testing
14
-
15
-
16
- ## Helpful Links
17
- YouTube
18
-
19
- ## Installation
20
-
21
- ### Prerequisites
22
- 1. Ruby 1.9.3 or higher
23
- 2. Following Gems
24
- a. selenium-webdriver
25
- b. eyes_selenium
26
- c. yaml
27
- d. json
28
-
29
- Add this line to your application's Gemfile:
30
-
31
- ```ruby
32
- gem 'scoutui'
33
- ```
34
-
35
- And then execute:
36
-
37
- $ bundle
38
-
39
- Or install it yourself as:
40
-
41
- $ gem install scoutui
42
-
43
- To run unit tests:
44
-
45
- $ bundle exec rake spec
46
-
47
- ## Running the examples
48
-
49
- Following these steps to get started.
50
-
51
- 1. Goto the ./examples/ex1 folder
52
- 2. Set the environment variable APPLITOOLS_API_KEY with your key
53
-
54
- export APPLITOOLS_API_KEY=[__YOUR_APPLITOOLS_KEY__]
55
- 3. Set the environment variable SCOUTUI_BIN to the ScoutUi driver
56
-
57
- export SCOUTUI_BIN=[ScoutUI Path]\bin\scoutui_driver.rb
58
-
59
- 4. Run the script 'test-simple.sh'
60
- 5. Goto your Applitools account and look for the test named "Graceland"
61
-
62
- ## Development
63
-
64
-
65
- ## Creating Tests
66
-
67
- ### Command files
68
- Command files are currently supported only in YAML format, however JSON will be supported very shortly (by 10/28/2015).
69
-
70
- Each stanza of a Command YAML file starts with *page*.
71
-
72
- page:
73
-
74
- The following
75
-
76
-
77
- #### Example 1. Navigate to a URL then take snapshots after user actions (e.g. mouse events).
78
-
79
- page:
80
- name: Home
81
- url: http://www.elvis.com
82
- ---
83
- page:
84
- name: Mouseover Music
85
- action: mouseover(//ul[@class="nav-primary"]//a[text()="Music"])
86
- snapit: true
87
- ---
88
- page:
89
- name: Studio Albums
90
- action: click(//*[@id='music']//a[text()="Studio Albums"])
91
- snapit: true
92
- expected:
93
- wait: //footer[@id="footer"]//a[@class="credits"]
94
-
95
-
96
- ## To run from the command line
97
-
98
- ruby test_script.rb --config <your test settings JSON file> --eyes
99
-
100
-
101
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
102
-
103
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
104
-
105
- ## Contributing
106
-
107
- Bug reports and pull requests are welcome on GitHub at https://github.com/h20dragon/scoutui.
108
-
109
- ## License
110
-
111
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
112
-
113
- ## To do
114
-
115
- Advanced Test Reporting
116
-
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "scoutui"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start
@@ -1,22 +0,0 @@
1
- #!/usr/bin/ruby
2
- require_relative '../lib/scoutui'
3
-
4
- require 'logger'
5
-
6
- ##
7
- # --file <Yaml>
8
- # --host <String>
9
- # --lang <String>
10
- # --title <Applitools Title>
11
- # --browser <chrome|firefox|ie>
12
-
13
-
14
- nav = Scoutui::Navigator.new(Scoutui::Utils::TestUtils.instance.parseCommandLine())
15
-
16
-
17
- runner = Scoutui::Base::TestScout.new(nav)
18
-
19
- runner.start()
20
- runner.report()
21
-
22
-
data/bin/setup DELETED
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle install
6
-
7
- # Do any other automated setup that you need to do here
@@ -1,25 +0,0 @@
1
- page:
2
- name: Home
3
- url: http://www.elvis.com
4
- ---
5
- page:
6
- name: Mouseover Music
7
- action: mouseover(//ul[@class="nav-primary"]//a[text()="Music"])
8
- snapit: true
9
- ---
10
- page:
11
- name: Studio Albums
12
- action: click(//*[@id='music']//a[text()="Studio Albums"])
13
- snapit: true
14
- expected:
15
- xyz: //footer[@id="footer"]//a[@class="credits"]
16
- ---
17
- page:
18
- skip: true
19
- action: type(//input[@id="password"], ${password})
20
- ---
21
- page:
22
- skip: true
23
- action: click(//input[@id="btnSubmit"])
24
- expected:
25
- avatar: //img[@id="cnqr-profile-avatar"]
@@ -1,36 +0,0 @@
1
- #/bin/bash
2
- ##
3
- # Description
4
- # This test script overrides the provided title and appname (if provided in the test config. file)
5
- #
6
- # Set the APPLITOOLS_API_KEY environment variable with your key.
7
- #
8
- # export APPLITOOLS_API_KEY="__YOUR_KEY_HERE__"
9
- ##
10
-
11
- # Specify browser under test (chrome, firefox, ie, safari)
12
- BUT=chrome
13
-
14
- # Specify the title and appName needed by Applitools
15
- # Specify the title and appName needed by Applitools
16
- ## NOTE: If the test configuration file specifies the title and app, it is superseded by the
17
- ## command line options.
18
- TITLE=Graceland
19
- APP=Elvis
20
-
21
- # Specify the test configuration file
22
- TEST_CFG="./test.config.json"
23
-
24
- ##
25
- # content
26
- # strict
27
- # exact
28
- # layyout
29
- ##
30
- MATCH_TYPE="layout"
31
-
32
- # The following command line parameters will override provided title and appName (if provided in test config file)
33
- $SCOUTUI_BIN --config $TEST_CFG --browser $BUT --eyes --app $APP --title $TITLE --match $MATCH_TYPE
34
-
35
- # The following
36
- # $SCOUTUI_BIN --config $TEST_CFG --eyes --match $MATCH_TYPE --browser $BUT
@@ -1,16 +0,0 @@
1
- {
2
- "Project": "Example",
3
- "Version": "1.00",
4
- "Description": "Example1 - http://www.Elvis.com",
5
-
6
- "browser": "chrome",
7
-
8
- "eyes": {
9
- "title": "Example1",
10
- "viewport": "1700x718",
11
- "app": "09-26"
12
- },
13
-
14
- "host": "http://www.elvis-presley.com",
15
- "dut": "./commands.yml"
16
- }
@@ -1,35 +0,0 @@
1
- page:
2
- name: Home
3
- description: Navigate to a specified URL and wait until the expected elements are present
4
- url: http://www.carmax.com
5
- expected:
6
- wait: page(home).get(cars4sale)
7
- wait: page(home).get(whyCarMax)
8
- ---
9
- page:
10
- name: Mouseover View Tickets
11
- action: mouseover(page(home).get(whyCarMax))
12
- snapit: true
13
- ---
14
- page:
15
- name: Click - specified by Alias
16
- action: click(${whyCarMax})
17
- snapit: true
18
- ---
19
- page:
20
- skip: true
21
- action: pause
22
- ---
23
- page:
24
- skip: true
25
- name: Click on Input
26
- action: click(page(main_nav).get(search_input))
27
- snapit: true
28
- ---
29
- page:
30
- action: type(page(main_nav).get(search_input), ${Search_Me})
31
- ---
32
- page:
33
- action: click(page(main_nav).get(search_btn))
34
- expected:
35
- wait: //input[@id='zip']
@@ -1,18 +0,0 @@
1
- {
2
- "home": {
3
- "cars4sale": "//a[text()='Find Cars for Sale']",
4
- "whyCarMax": "//a[text()='Why CarMax']",
5
- "wait2": "//input[text()='Sign in']"
6
- },
7
-
8
- "main_nav": {
9
- "search_input": "//input[@id='search']",
10
- "search_btn": "//a[@id='search-btn']"
11
- },
12
-
13
-
14
- "search": {
15
- "header": "//title"
16
- }
17
- }
18
-
@@ -1,38 +0,0 @@
1
- #/bin/bash
2
- ##
3
- # Description
4
- # This test script overrides the provided title and appname (if provided in the test config. file)
5
- #
6
- # Set the APPLITOOLS_API_KEY environment variable with your key.
7
- #
8
- # export APPLITOOLS_API_KEY="__YOUR_KEY_HERE__"
9
- ##
10
- SCOUTUI_BIN=../../bin/scoutui_driver.rb
11
- # Specify browser under test (chrome, firefox, ie, safari)
12
- BUT=chrome
13
-
14
- # Specify the title and appName needed by Applitools
15
- ## NOTE: If the test configuration file specifies the title and app, it is superseded by the
16
- ## command line options.
17
- TITLE=DEMO-CarMax
18
- APP=Oct2015
19
-
20
- # Specify the test configuration file
21
- TEST_CFG="./test.config.json"
22
-
23
- ##
24
- # content
25
- # strict
26
- # exact
27
- # layyout
28
- ##
29
- MATCH_TYPE="layout"
30
-
31
- EYES=--eyes
32
-
33
-
34
- # The following command line parameters will override provided title and appName (if provided in test config file)
35
- $SCOUTUI_BIN --config $TEST_CFG --browser $BUT $EYES --app $APP --title $TITLE --match $MATCH_TYPE --pagemodel ./page_model.json
36
-
37
- # The following
38
- # $SCOUTUI_BIN --config $TEST_CFG --eyes --match $MATCH_TYPE --browser $BUT
@@ -1,25 +0,0 @@
1
- {
2
- "Project": "Example",
3
- "Version": "1.00",
4
- "Description": "Example - CarMax",
5
-
6
- "browser": "chrome",
7
-
8
- "eyes": {
9
- "title": "Example - CarMax",
10
- "viewport": "1024x718",
11
- "app": "10-16"
12
- },
13
-
14
- "host": "http://www.carmax.com",
15
- "dut": "./commands.yml",
16
-
17
-
18
- "user_vars": {
19
- "Search_Me": "BMW M3",
20
- "View_Tickets_Link": "page(main_nav).get(ViewTicketsLink)",
21
- "WhyCarMax": "page(home).get(whyCarMax)"
22
- }
23
-
24
- }
25
-
@@ -1,53 +0,0 @@
1
- page:
2
- name: Home
3
- description: Navigate to a specified URL and wait until the expected elements are present
4
- url: http://localhost:8081/trac/PWK/wiki
5
- expected:
6
- wait: page(home).get(wiki_link)
7
- wait2: page(home).get(login_form).get(password)
8
- ---
9
- page:
10
- name: Mouseover View Tickets
11
- action: mouseover(page(main_nav).get(ViewTicketsLink))
12
- snapit: true
13
- ---
14
- page:
15
- name: Click - specified by Alias
16
- action: click(${View_Tickets_Link})
17
- snapit: true
18
- ---
19
- page:
20
- skip: true
21
- action: pause
22
- ---
23
- page:
24
- name: Click on Input
25
- action: click(page(main_nav).get(search_input))
26
- snapit: true
27
- ---
28
- page:
29
- action: type(page(main_nav).get(search_input), ${Search_Me})
30
- ---
31
- page:
32
- skip: true
33
- name: Mouseover Music
34
- action: mouseover(//ul[@class="nav-primary"]//a[text()="Music"])
35
- snapit: true
36
- ---
37
- page:
38
- skip: true
39
- name: Studio Albums
40
- action: click(//*[@id='music']//a[text()="Studio Albums"])
41
- snapit: true
42
- expected:
43
- wait: //footer[@id="footer"]//a[@class="credits"]
44
- ---
45
- page:
46
- skip: true
47
- action: type(//input[@id="password"], ${password})
48
- ---
49
- page:
50
- skip: true
51
- action: click(//input[@id="btnSubmit"])
52
- expected:
53
- avatar: //img[@id="cnqr-profile-avatar"]
@@ -1,24 +0,0 @@
1
- {
2
- "Project": "Example",
3
- "Version": "1.00",
4
- "Description": "Example1",
5
-
6
- "browser": "chrome",
7
-
8
- "eyes": {
9
- "title": "Example1",
10
- "viewport": "1700x718",
11
- "app": "09-26"
12
- },
13
-
14
- "host": "http://localhost:8081/trac/PWK/wiki",
15
- "dut": "./commands.yml",
16
-
17
-
18
- "user_vars": {
19
- "Search_Me": "Van Halen",
20
- "View_Tickets_Link": "page(main_nav).get(ViewTicketsLink)"
21
- }
22
-
23
- }
24
-