SaudeiD 0.2.2 → 0.2.6
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.
- checksums.yaml +4 -4
- data/SaudeiD.gemspec +1 -1
- data/azure-pipelines.yaml +35 -32
- data/bin/SaudeiD +146 -146
- data/credentials +2 -0
- data/lib/SaudeiD/SaudeiD_helper.rb +41 -41
- data/lib/SaudeiD/version.rb +1 -1
- data/lib/SkeletonApi/.gitignore +1 -1
- data/lib/SkeletonApi/.rubocop.yml +62 -62
- data/lib/SkeletonApi/.solargraph.yml +16 -16
- data/lib/SkeletonApi/Gemfile +18 -18
- data/lib/SkeletonApi/README.md +36 -36
- data/lib/SkeletonApi/cucumber.yml +11 -11
- data/lib/SkeletonApi/features/support/config/environments/dev.yml +5 -5
- data/lib/SkeletonApi/features/support/config/environments/qa.yml +5 -5
- data/lib/SkeletonApi/features/support/env.rb +28 -28
- data/lib/SkeletonApi/features/support/helper.rb +6 -6
- data/lib/SkeletonApi/features/support/hooks.rb +53 -53
- data/lib/SkeletonWeb/.gitignore +7 -7
- data/lib/SkeletonWeb/.rubocop.yml +52 -52
- data/lib/SkeletonWeb/.solargraph.yml +16 -16
- data/lib/SkeletonWeb/Gemfile +13 -13
- data/lib/SkeletonWeb/README.md +49 -49
- data/lib/SkeletonWeb/cucumber.yml +16 -16
- data/lib/SkeletonWeb/features/support/config/elements.yml +2 -2
- data/lib/SkeletonWeb/features/support/env.rb +49 -49
- data/lib/SkeletonWeb/features/support/helper.rb +37 -37
- data/lib/SkeletonWeb/features/support/hooks.rb +56 -56
- data/lib/SkeletonWeb/features/support/pages/base_page.rb +3 -3
- data/lib/locales/en.yml +16 -16
- data/lib/locales/pt.yml +15 -15
- data/lib/templates/feature.tt +8 -8
- data/lib/templates/page.tt +8 -8
- data/lib/templates/services.tt +10 -10
- data/lib/templates/steps.tt +5 -5
- metadata +9 -9
- data/bin/saudeid +0 -146
data/lib/SkeletonApi/Gemfile
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gem 'awesome_print', '1.8'
|
4
|
-
gem 'cucumber', '5.2'
|
5
|
-
gem 'dotenv', '2.7'
|
6
|
-
gem 'factory_bot'
|
7
|
-
gem 'faker'
|
8
|
-
gem 'google-cloud-pubsub', '~> 2.9', '>= 2.9.2'
|
9
|
-
gem 'httparty'
|
10
|
-
gem 'json_matchers'
|
11
|
-
gem 'pg', '1.2.3'
|
12
|
-
gem 'pry', '0.12.2'
|
13
|
-
gem 'report_builder', '1.8'
|
14
|
-
gem 'rspec', '3.10'
|
15
|
-
gem 'rspec_junit_formatter', '~> 0.2.3'
|
16
|
-
gem 'selenium-webdriver', '3.142.7'
|
17
|
-
gem 'solargraph'
|
18
|
-
gem 'touch_action'
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gem 'awesome_print', '1.8'
|
4
|
+
gem 'cucumber', '5.2'
|
5
|
+
gem 'dotenv', '2.7'
|
6
|
+
gem 'factory_bot'
|
7
|
+
gem 'faker'
|
8
|
+
gem 'google-cloud-pubsub', '~> 2.9', '>= 2.9.2'
|
9
|
+
gem 'httparty'
|
10
|
+
gem 'json_matchers'
|
11
|
+
gem 'pg', '1.2.3'
|
12
|
+
gem 'pry', '0.12.2'
|
13
|
+
gem 'report_builder', '1.8'
|
14
|
+
gem 'rspec', '3.10'
|
15
|
+
gem 'rspec_junit_formatter', '~> 0.2.3'
|
16
|
+
gem 'selenium-webdriver', '3.142.7'
|
17
|
+
gem 'solargraph'
|
18
|
+
gem 'touch_action'
|
data/lib/SkeletonApi/README.md
CHANGED
@@ -1,36 +1,36 @@
|
|
1
|
-
## Getting Started ##
|
2
|
-
|
3
|
-
### Installing gems ###
|
4
|
-
To install gems type:
|
5
|
-
```shell
|
6
|
-
bundle install
|
7
|
-
```
|
8
|
-
|
9
|
-
### Run tests in DEV###
|
10
|
-
Type this in the tests folder:
|
11
|
-
```shell
|
12
|
-
bundle exec cucumber
|
13
|
-
```
|
14
|
-
### Run tests in HMG ###
|
15
|
-
Type this in the tests folder:
|
16
|
-
```shell
|
17
|
-
bundle exec cucumber -p json -p hmg
|
18
|
-
```
|
19
|
-
|
20
|
-
### HTML Report###
|
21
|
-
Type this in the tests folder:
|
22
|
-
```shell
|
23
|
-
bundle exec cucumber -p html -p hmg
|
24
|
-
```
|
25
|
-
|
26
|
-
### Json Report###
|
27
|
-
Type this in the tests folder:
|
28
|
-
```shell
|
29
|
-
bundle exec cucumber -p json -p hmg
|
30
|
-
```
|
31
|
-
|
32
|
-
### Run with tags###
|
33
|
-
Type this in the tests folder:
|
34
|
-
```shell
|
35
|
-
bundle exec cucumber --tags @run
|
36
|
-
```
|
1
|
+
## Getting Started ##
|
2
|
+
|
3
|
+
### Installing gems ###
|
4
|
+
To install gems type:
|
5
|
+
```shell
|
6
|
+
bundle install
|
7
|
+
```
|
8
|
+
|
9
|
+
### Run tests in DEV###
|
10
|
+
Type this in the tests folder:
|
11
|
+
```shell
|
12
|
+
bundle exec cucumber
|
13
|
+
```
|
14
|
+
### Run tests in HMG ###
|
15
|
+
Type this in the tests folder:
|
16
|
+
```shell
|
17
|
+
bundle exec cucumber -p json -p hmg
|
18
|
+
```
|
19
|
+
|
20
|
+
### HTML Report###
|
21
|
+
Type this in the tests folder:
|
22
|
+
```shell
|
23
|
+
bundle exec cucumber -p html -p hmg
|
24
|
+
```
|
25
|
+
|
26
|
+
### Json Report###
|
27
|
+
Type this in the tests folder:
|
28
|
+
```shell
|
29
|
+
bundle exec cucumber -p json -p hmg
|
30
|
+
```
|
31
|
+
|
32
|
+
### Run with tags###
|
33
|
+
Type this in the tests folder:
|
34
|
+
```shell
|
35
|
+
bundle exec cucumber --tags @run
|
36
|
+
```
|
@@ -1,11 +1,11 @@
|
|
1
|
-
---
|
2
|
-
default: -p pretty -p json -p html -p qa -p env_qa -p xml
|
3
|
-
ci: -p pretty -p json -p html -p qa -p env_qa -p xml
|
4
|
-
|
5
|
-
pretty: -f pretty
|
6
|
-
progress: -f progress
|
7
|
-
json: -f json --out=report/report.json
|
8
|
-
html: -f html --out=report/report.html
|
9
|
-
xml: -f junit --out=report/junit
|
10
|
-
qa: ENV_TYPE=qa
|
11
|
-
env_qa: ENV_PREFIX=qa
|
1
|
+
---
|
2
|
+
default: -p pretty -p json -p html -p qa -p env_qa -p xml
|
3
|
+
ci: -p pretty -p json -p html -p qa -p env_qa -p xml
|
4
|
+
|
5
|
+
pretty: -f pretty
|
6
|
+
progress: -f progress
|
7
|
+
json: -f json --out=report/report.json
|
8
|
+
html: -f html --out=report/report.html
|
9
|
+
xml: -f junit --out=report/junit
|
10
|
+
qa: ENV_TYPE=qa
|
11
|
+
env_qa: ENV_PREFIX=qa
|
@@ -1,5 +1,5 @@
|
|
1
|
-
BASE_URI: 'https://www.google.com/'
|
2
|
-
|
3
|
-
API_HEADERS: { 'Content-Type': 'application/json' }
|
4
|
-
|
5
|
-
TOPIC_MS_PRODUCTS_CREATE: 'MY-TOPIC'
|
1
|
+
BASE_URI: 'https://www.google.com/'
|
2
|
+
|
3
|
+
API_HEADERS: { 'Content-Type': 'application/json' }
|
4
|
+
|
5
|
+
TOPIC_MS_PRODUCTS_CREATE: 'MY-TOPIC'
|
@@ -1,5 +1,5 @@
|
|
1
|
-
BASE_URI: 'https://www.google.com/'
|
2
|
-
|
3
|
-
API_HEADERS: { 'Content-Type': 'application/json' }
|
4
|
-
|
5
|
-
TOPIC_MS_PRODUCTS_CREATE: 'MY-TOPIC'
|
1
|
+
BASE_URI: 'https://www.google.com/'
|
2
|
+
|
3
|
+
API_HEADERS: { 'Content-Type': 'application/json' }
|
4
|
+
|
5
|
+
TOPIC_MS_PRODUCTS_CREATE: 'MY-TOPIC'
|
@@ -1,28 +1,28 @@
|
|
1
|
-
require 'awesome_print'
|
2
|
-
require 'cucumber'
|
3
|
-
require 'dotenv/load'
|
4
|
-
require 'factory_bot'
|
5
|
-
require 'faker'
|
6
|
-
require 'google/cloud/pubsub'
|
7
|
-
require 'httparty'
|
8
|
-
require 'httparty/request'
|
9
|
-
require 'httparty/response/headers'
|
10
|
-
require 'pg'
|
11
|
-
require 'pry'
|
12
|
-
require 'report_builder'
|
13
|
-
require 'rspec'
|
14
|
-
require 'json_matchers/rspec'
|
15
|
-
|
16
|
-
require_relative 'helper'
|
17
|
-
require_relative 'data/models/model'
|
18
|
-
|
19
|
-
World(Helper)
|
20
|
-
|
21
|
-
World(FactoryBot::Syntax::Methods)
|
22
|
-
|
23
|
-
Dotenv.load('../.env')
|
24
|
-
|
25
|
-
CONFIG = YAML.load_file(File.join(Dir.pwd, "features/support/config/environments/#{ENV['ENV_TYPE']}.yml"))
|
26
|
-
ENV['GOOGLE_APPLICATION_CREDENTIALS'] = File.join(Dir.pwd, '../path_file.json')
|
27
|
-
|
28
|
-
JsonMatchers.schema_root = File.join(Dir.pwd, 'features/support/data/schemas')
|
1
|
+
require 'awesome_print'
|
2
|
+
require 'cucumber'
|
3
|
+
require 'dotenv/load'
|
4
|
+
require 'factory_bot'
|
5
|
+
require 'faker'
|
6
|
+
require 'google/cloud/pubsub'
|
7
|
+
require 'httparty'
|
8
|
+
require 'httparty/request'
|
9
|
+
require 'httparty/response/headers'
|
10
|
+
require 'pg'
|
11
|
+
require 'pry'
|
12
|
+
require 'report_builder'
|
13
|
+
require 'rspec'
|
14
|
+
require 'json_matchers/rspec'
|
15
|
+
|
16
|
+
require_relative 'helper'
|
17
|
+
require_relative 'data/models/model'
|
18
|
+
|
19
|
+
World(Helper)
|
20
|
+
|
21
|
+
World(FactoryBot::Syntax::Methods)
|
22
|
+
|
23
|
+
Dotenv.load('../.env')
|
24
|
+
|
25
|
+
CONFIG = YAML.load_file(File.join(Dir.pwd, "features/support/config/environments/#{ENV['ENV_TYPE']}.yml"))
|
26
|
+
ENV['GOOGLE_APPLICATION_CREDENTIALS'] = File.join(Dir.pwd, '../path_file.json')
|
27
|
+
|
28
|
+
JsonMatchers.schema_root = File.join(Dir.pwd, 'features/support/data/schemas')
|
@@ -1,6 +1,6 @@
|
|
1
|
-
module Helper
|
2
|
-
def create_message_pubsub(topic, body)
|
3
|
-
topic = @pubsub.topic topic
|
4
|
-
topic.publish body.to_json
|
5
|
-
end
|
6
|
-
end
|
1
|
+
module Helper
|
2
|
+
def create_message_pubsub(topic, body)
|
3
|
+
topic = @pubsub.topic topic
|
4
|
+
topic.publish body.to_json
|
5
|
+
end
|
6
|
+
end
|
@@ -1,53 +1,53 @@
|
|
1
|
-
Before do
|
2
|
-
@service = ->(klass) { klass.new }
|
3
|
-
|
4
|
-
@pubsub = Google::Cloud::PubSub.new
|
5
|
-
end
|
6
|
-
|
7
|
-
After do |scenario|
|
8
|
-
exception_message(scenario)
|
9
|
-
end
|
10
|
-
|
11
|
-
def exception_message(scenario)
|
12
|
-
scene = scenario.failed?
|
13
|
-
return unless scene == true
|
14
|
-
|
15
|
-
print_reason(scenario)
|
16
|
-
end
|
17
|
-
|
18
|
-
def print_reason(scenario)
|
19
|
-
puts "\n--------------------------------------------------------------------------------------------"
|
20
|
-
puts 'Reason:'
|
21
|
-
puts "\n - Request body: #{@payload.to_json}"
|
22
|
-
puts "\n - Response code: #{@response.response.code}"
|
23
|
-
puts "\n - Response body: #{@response.parsed_response.to_json}"
|
24
|
-
puts "\n🔥🔥🔥🐞🐞🐞🔥🔥🔥 #{scenario.exception.message}"
|
25
|
-
puts "--------------------------------------------------------------------------------------------\n"
|
26
|
-
end
|
27
|
-
|
28
|
-
AfterConfiguration do |config|
|
29
|
-
config.on_event(:test_case_finished) do |event|
|
30
|
-
puts "\n--------------------------------------------------------------------------------------------------"
|
31
|
-
puts 'Results:'
|
32
|
-
puts " - Scenario......: #{event.test_case.name}"
|
33
|
-
puts " - Result..: [ #{event.result.passed? ? '✅ ]' : '❌ ]'}"
|
34
|
-
puts "--------------------------------------------------------------------------------------------------\n"
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
at_exit do
|
39
|
-
@infos = {
|
40
|
-
'Data do Teste' => Time.now.strftime('%d/%B/%Y'),
|
41
|
-
'Hora do Teste' => Time.now.strftime('%HH%MM%SS')
|
42
|
-
}
|
43
|
-
ReportBuilder.configure do |config|
|
44
|
-
config.input_path = 'report/report.json'
|
45
|
-
config.report_path = 'report/report'
|
46
|
-
config.report_types = [:html]
|
47
|
-
config.include_images = true
|
48
|
-
config.report_title = '[SAUDE ID] MY - TITLE'
|
49
|
-
config.additional_info = @infos
|
50
|
-
config.collor = 'indigo'
|
51
|
-
end
|
52
|
-
ReportBuilder.build_report
|
53
|
-
end
|
1
|
+
Before do
|
2
|
+
@service = ->(klass) { klass.new }
|
3
|
+
|
4
|
+
@pubsub = Google::Cloud::PubSub.new
|
5
|
+
end
|
6
|
+
|
7
|
+
After do |scenario|
|
8
|
+
exception_message(scenario)
|
9
|
+
end
|
10
|
+
|
11
|
+
def exception_message(scenario)
|
12
|
+
scene = scenario.failed?
|
13
|
+
return unless scene == true
|
14
|
+
|
15
|
+
print_reason(scenario)
|
16
|
+
end
|
17
|
+
|
18
|
+
def print_reason(scenario)
|
19
|
+
puts "\n--------------------------------------------------------------------------------------------"
|
20
|
+
puts 'Reason:'
|
21
|
+
puts "\n - Request body: #{@payload.to_json}"
|
22
|
+
puts "\n - Response code: #{@response.response.code}"
|
23
|
+
puts "\n - Response body: #{@response.parsed_response.to_json}"
|
24
|
+
puts "\n🔥🔥🔥🐞🐞🐞🔥🔥🔥 #{scenario.exception.message}"
|
25
|
+
puts "--------------------------------------------------------------------------------------------\n"
|
26
|
+
end
|
27
|
+
|
28
|
+
AfterConfiguration do |config|
|
29
|
+
config.on_event(:test_case_finished) do |event|
|
30
|
+
puts "\n--------------------------------------------------------------------------------------------------"
|
31
|
+
puts 'Results:'
|
32
|
+
puts " - Scenario......: #{event.test_case.name}"
|
33
|
+
puts " - Result..: [ #{event.result.passed? ? '✅ ]' : '❌ ]'}"
|
34
|
+
puts "--------------------------------------------------------------------------------------------------\n"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
at_exit do
|
39
|
+
@infos = {
|
40
|
+
'Data do Teste' => Time.now.strftime('%d/%B/%Y'),
|
41
|
+
'Hora do Teste' => Time.now.strftime('%HH%MM%SS')
|
42
|
+
}
|
43
|
+
ReportBuilder.configure do |config|
|
44
|
+
config.input_path = 'report/report.json'
|
45
|
+
config.report_path = 'report/report'
|
46
|
+
config.report_types = [:html]
|
47
|
+
config.include_images = true
|
48
|
+
config.report_title = '[SAUDE ID] MY - TITLE'
|
49
|
+
config.additional_info = @infos
|
50
|
+
config.collor = 'indigo'
|
51
|
+
end
|
52
|
+
ReportBuilder.build_report
|
53
|
+
end
|
data/lib/SkeletonWeb/.gitignore
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
.DS_Store
|
2
|
-
# Regression Test
|
3
|
-
Gemfile.lock
|
4
|
-
report/*.html
|
5
|
-
report/*.json
|
6
|
-
report/junit/*.xml
|
7
|
-
report/screenshots/test_failed/*.png
|
1
|
+
.DS_Store
|
2
|
+
# Regression Test
|
3
|
+
Gemfile.lock
|
4
|
+
report/*.html
|
5
|
+
report/*.json
|
6
|
+
report/junit/*.xml
|
7
|
+
report/screenshots/test_failed/*.png
|
8
8
|
report/screenshots/test_passed/*.png
|
@@ -1,53 +1,53 @@
|
|
1
|
-
---
|
2
|
-
AllCops:
|
3
|
-
NewCops: disable
|
4
|
-
SuggestExtensions: false
|
5
|
-
|
6
|
-
Style/Documentation:
|
7
|
-
Enabled: false
|
8
|
-
|
9
|
-
Style/FrozenStringLiteralComment:
|
10
|
-
Enabled: false
|
11
|
-
|
12
|
-
Naming/MethodName:
|
13
|
-
Enabled: false
|
14
|
-
|
15
|
-
Naming/AsciiIdentifiers:
|
16
|
-
Enabled: false
|
17
|
-
|
18
|
-
Layout/LineLength:
|
19
|
-
Max: 190
|
20
|
-
|
21
|
-
Metrics/BlockLength:
|
22
|
-
Max: 50
|
23
|
-
|
24
|
-
Metrics/MethodLength:
|
25
|
-
Exclude:
|
26
|
-
Max: 20
|
27
|
-
|
28
|
-
Metrics/AbcSize:
|
29
|
-
Enabled: false
|
30
|
-
|
31
|
-
Metrics/ModuleLength:
|
32
|
-
Enabled: false
|
33
|
-
|
34
|
-
Metrics/CyclomaticComplexity:
|
35
|
-
Max: 10
|
36
|
-
|
37
|
-
Metrics/ClassLength:
|
38
|
-
Enabled: false
|
39
|
-
|
40
|
-
Style/RedundantSort:
|
41
|
-
Enabled: false
|
42
|
-
|
43
|
-
Style/SingleArgumentDig:
|
44
|
-
Enabled: false
|
45
|
-
|
46
|
-
Style/HashSyntax:
|
47
|
-
Enabled: false
|
48
|
-
|
49
|
-
Style/RedundantRegexpEscape:
|
50
|
-
Enabled: false
|
51
|
-
|
52
|
-
Lint/MissingSuper:
|
1
|
+
---
|
2
|
+
AllCops:
|
3
|
+
NewCops: disable
|
4
|
+
SuggestExtensions: false
|
5
|
+
|
6
|
+
Style/Documentation:
|
7
|
+
Enabled: false
|
8
|
+
|
9
|
+
Style/FrozenStringLiteralComment:
|
10
|
+
Enabled: false
|
11
|
+
|
12
|
+
Naming/MethodName:
|
13
|
+
Enabled: false
|
14
|
+
|
15
|
+
Naming/AsciiIdentifiers:
|
16
|
+
Enabled: false
|
17
|
+
|
18
|
+
Layout/LineLength:
|
19
|
+
Max: 190
|
20
|
+
|
21
|
+
Metrics/BlockLength:
|
22
|
+
Max: 50
|
23
|
+
|
24
|
+
Metrics/MethodLength:
|
25
|
+
Exclude:
|
26
|
+
Max: 20
|
27
|
+
|
28
|
+
Metrics/AbcSize:
|
29
|
+
Enabled: false
|
30
|
+
|
31
|
+
Metrics/ModuleLength:
|
32
|
+
Enabled: false
|
33
|
+
|
34
|
+
Metrics/CyclomaticComplexity:
|
35
|
+
Max: 10
|
36
|
+
|
37
|
+
Metrics/ClassLength:
|
38
|
+
Enabled: false
|
39
|
+
|
40
|
+
Style/RedundantSort:
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
Style/SingleArgumentDig:
|
44
|
+
Enabled: false
|
45
|
+
|
46
|
+
Style/HashSyntax:
|
47
|
+
Enabled: false
|
48
|
+
|
49
|
+
Style/RedundantRegexpEscape:
|
50
|
+
Enabled: false
|
51
|
+
|
52
|
+
Lint/MissingSuper:
|
53
53
|
Enabled: false
|
@@ -1,16 +1,16 @@
|
|
1
|
-
---
|
2
|
-
include:
|
3
|
-
- "**/*.rb"
|
4
|
-
exclude:
|
5
|
-
- spec/**/*
|
6
|
-
- step_definitions/**/*
|
7
|
-
- vendor/**/*
|
8
|
-
- ".bundle/**/*"
|
9
|
-
require: []
|
10
|
-
domains: []
|
11
|
-
reporters:
|
12
|
-
- rubocop
|
13
|
-
- require_not_found
|
14
|
-
require_paths: []
|
15
|
-
plugins: []
|
16
|
-
max_files: 5000
|
1
|
+
---
|
2
|
+
include:
|
3
|
+
- "**/*.rb"
|
4
|
+
exclude:
|
5
|
+
- spec/**/*
|
6
|
+
- step_definitions/**/*
|
7
|
+
- vendor/**/*
|
8
|
+
- ".bundle/**/*"
|
9
|
+
require: []
|
10
|
+
domains: []
|
11
|
+
reporters:
|
12
|
+
- rubocop
|
13
|
+
- require_not_found
|
14
|
+
require_paths: []
|
15
|
+
plugins: []
|
16
|
+
max_files: 5000
|
data/lib/SkeletonWeb/Gemfile
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gem 'awesome_print', '1.8'
|
4
|
-
gem 'capybara', '3.36.0'
|
5
|
-
gem 'cucumber', '5.2'
|
6
|
-
gem 'dotenv', '2.7'
|
7
|
-
gem 'pry', '0.12.2'
|
8
|
-
gem 'report_builder', '1.8'
|
9
|
-
gem 'rspec', '3.10'
|
10
|
-
gem 'rspec_junit_formatter', '~> 0.2.3'
|
11
|
-
gem 'selenium-webdriver', '3.142.7'
|
12
|
-
gem 'solargraph'
|
13
|
-
gem 'touch_action'
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gem 'awesome_print', '1.8'
|
4
|
+
gem 'capybara', '3.36.0'
|
5
|
+
gem 'cucumber', '5.2'
|
6
|
+
gem 'dotenv', '2.7'
|
7
|
+
gem 'pry', '0.12.2'
|
8
|
+
gem 'report_builder', '1.8'
|
9
|
+
gem 'rspec', '3.10'
|
10
|
+
gem 'rspec_junit_formatter', '~> 0.2.3'
|
11
|
+
gem 'selenium-webdriver', '3.142.7'
|
12
|
+
gem 'solargraph'
|
13
|
+
gem 'touch_action'
|
data/lib/SkeletonWeb/README.md
CHANGED
@@ -1,49 +1,49 @@
|
|
1
|
-
## Getting Started ##
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
### Installing gems ###
|
6
|
-
To install gems type:
|
7
|
-
```shell
|
8
|
-
bundle install
|
9
|
-
```
|
10
|
-
|
11
|
-
### Drivers: ###
|
12
|
-
Install and include in PATH
|
13
|
-
- [chromedriver](https://sites.google.com/a/chromium.org/chromedriver/)
|
14
|
-
- [phantomjs](http://phantomjs.org/)
|
15
|
-
- [internetExplorerDriver](http://www.seleniumhq.org/download/)
|
16
|
-
- [Firefox Geckodriver](https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver)
|
17
|
-
|
18
|
-
Install [Webdriver Safari extension](http://selenium-release.storage.googleapis.com/2.48/SafariDriver.safariextz).
|
19
|
-
|
20
|
-
|
21
|
-
### Run tests in DEV with Chrome###
|
22
|
-
Type this in the tests folder:
|
23
|
-
```shell
|
24
|
-
bundle exec cucumber -p ci -p html -p headless -p dev
|
25
|
-
```
|
26
|
-
|
27
|
-
### Run tests in DEV with headless###
|
28
|
-
Type this in the tests folder:
|
29
|
-
```shell
|
30
|
-
bundle exec cucumber -p ci -p html -p headless -p dev
|
31
|
-
```
|
32
|
-
|
33
|
-
### Run tests in HMG with Chrome###
|
34
|
-
Type this in the tests folder:
|
35
|
-
```shell
|
36
|
-
bundle exec cucumber -p pretty -p html -p no_headless -p hmg
|
37
|
-
```
|
38
|
-
|
39
|
-
### Run tests in HMG with headless###
|
40
|
-
Type this in the tests folder:
|
41
|
-
```shell
|
42
|
-
bundle exec cucumber -p ci -p html -p headless -p hmg
|
43
|
-
```
|
44
|
-
|
45
|
-
### Run with tags###
|
46
|
-
Type this in the tests folder:
|
47
|
-
```shell
|
48
|
-
bundle exec cucumber --tags @run
|
49
|
-
```
|
1
|
+
## Getting Started ##
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
### Installing gems ###
|
6
|
+
To install gems type:
|
7
|
+
```shell
|
8
|
+
bundle install
|
9
|
+
```
|
10
|
+
|
11
|
+
### Drivers: ###
|
12
|
+
Install and include in PATH
|
13
|
+
- [chromedriver](https://sites.google.com/a/chromium.org/chromedriver/)
|
14
|
+
- [phantomjs](http://phantomjs.org/)
|
15
|
+
- [internetExplorerDriver](http://www.seleniumhq.org/download/)
|
16
|
+
- [Firefox Geckodriver](https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver)
|
17
|
+
|
18
|
+
Install [Webdriver Safari extension](http://selenium-release.storage.googleapis.com/2.48/SafariDriver.safariextz).
|
19
|
+
|
20
|
+
|
21
|
+
### Run tests in DEV with Chrome###
|
22
|
+
Type this in the tests folder:
|
23
|
+
```shell
|
24
|
+
bundle exec cucumber -p ci -p html -p headless -p dev
|
25
|
+
```
|
26
|
+
|
27
|
+
### Run tests in DEV with headless###
|
28
|
+
Type this in the tests folder:
|
29
|
+
```shell
|
30
|
+
bundle exec cucumber -p ci -p html -p headless -p dev
|
31
|
+
```
|
32
|
+
|
33
|
+
### Run tests in HMG with Chrome###
|
34
|
+
Type this in the tests folder:
|
35
|
+
```shell
|
36
|
+
bundle exec cucumber -p pretty -p html -p no_headless -p hmg
|
37
|
+
```
|
38
|
+
|
39
|
+
### Run tests in HMG with headless###
|
40
|
+
Type this in the tests folder:
|
41
|
+
```shell
|
42
|
+
bundle exec cucumber -p ci -p html -p headless -p hmg
|
43
|
+
```
|
44
|
+
|
45
|
+
### Run with tags###
|
46
|
+
Type this in the tests folder:
|
47
|
+
```shell
|
48
|
+
bundle exec cucumber --tags @run
|
49
|
+
```
|
@@ -1,17 +1,17 @@
|
|
1
|
-
---
|
2
|
-
default: -p pretty -p qa -p chrome -p html -p json -p xml --publish-quiet
|
3
|
-
ci: -p pretty -p qa -p chrome_headless -p html -p json -p xml --publish-quiet
|
4
|
-
|
5
|
-
source: --no-source
|
6
|
-
progress: --format progress
|
7
|
-
pretty: --format pretty
|
8
|
-
dev: ENV_TYPE=dev
|
9
|
-
qa: ENV_TYPE=qa
|
10
|
-
html: --format html --out=report/report.html
|
11
|
-
json: --format json --out=report/report.json
|
12
|
-
xml: --format junit --out=report/junit
|
13
|
-
screen: screenshot=true
|
14
|
-
chrome: BROWSER=chrome
|
15
|
-
chrome_headless: BROWSER=chrome_headless
|
16
|
-
firefox: BROWSER=firefox
|
1
|
+
---
|
2
|
+
default: -p pretty -p qa -p chrome -p html -p json -p xml --publish-quiet
|
3
|
+
ci: -p pretty -p qa -p chrome_headless -p html -p json -p xml --publish-quiet
|
4
|
+
|
5
|
+
source: --no-source
|
6
|
+
progress: --format progress
|
7
|
+
pretty: --format pretty
|
8
|
+
dev: ENV_TYPE=dev
|
9
|
+
qa: ENV_TYPE=qa
|
10
|
+
html: --format html --out=report/report.html
|
11
|
+
json: --format json --out=report/report.json
|
12
|
+
xml: --format junit --out=report/junit
|
13
|
+
screen: screenshot=true
|
14
|
+
chrome: BROWSER=chrome
|
15
|
+
chrome_headless: BROWSER=chrome_headless
|
16
|
+
firefox: BROWSER=firefox
|
17
17
|
firefox_headless: BROWSER=firefox_headless
|
@@ -1,2 +1,2 @@
|
|
1
|
-
---
|
2
|
-
# Elementos Pages
|
1
|
+
---
|
2
|
+
# Elementos Pages
|