GeneSaudeId 0.1.1 → 0.1.4

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
  SHA256:
3
- metadata.gz: 6f1413843424c04f70bc76fc0e213608f37737d296b7d06f4d35c67846d6863d
4
- data.tar.gz: 468897248f5980673bc13ea84e4b008b701a9db646c83d57b3d4de47119be895
3
+ metadata.gz: 5ed08678c2028cd55b44b982fe6286f04cbb416697b37c40b7bfb214f2c8cc13
4
+ data.tar.gz: 3e99c5d724a68fcbff6fcef73749d2c6fadb67fa0ad8e030dedbbfcbcf36962e
5
5
  SHA512:
6
- metadata.gz: 7691c6099ebbc75673e664b90c98b17c4adb111d51eecfaeea7ffc557d8a2479215b0c81f446c24ebb41ba020e26bde1b77c8d3c26fafb7beca3c8d9e9542d90
7
- data.tar.gz: 849a426fa70ac4de18c4aa1987a39288cf934e0458a5e08da879604c722063c3f25fda3b6cd2ed6da2b1a97c8053a279d80eb3bfdc61f8e87ef39a73dcec2f7d
6
+ metadata.gz: 926d3da0f8f3765cac0183aaa6bc844ff41f9d255297e386222c93f851d021c247c0c7df49fbeafbd775c0c3295dec0ac5b770ccc633b2b6a9de16f2890b7ed9
7
+ data.tar.gz: 7ddbe04446fed7ad98c73e5c79bc197d37458a60dfdd584acd46e11c59739f8ed84f238b44c2908c266e154af451ba714daeb1265339ee88b85be0ac09811fd3
data/GeneSaudeId.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.version = GeneSaudeId::VERSION
8
8
  spec.authors = ["Raphael Castro"]
9
9
  spec.email = ["raphael_antonio_vieira@hotmail.com"]
10
- spec.summary = %q{Generates an Web, Api and Mobile Test Automation project with Cucumber, Rspec,
10
+ spec.summary = %q{Generates an Web, Api Test Automation project with Cucumber, Rspec,
11
11
  Capybara, Selenium, Httparty and JsonSchema.}
12
12
  spec.description = %q{A simple gem to generate all files needed in a
13
13
  project Mobile, Web and Api for Testing Automation.}
data/bin/GeneSaudeId CHANGED
@@ -18,7 +18,7 @@ module GeneCapybara
18
18
  desc 'feature [RESOURCE_NAME]', 'Generates a feature'
19
19
  option :lang,
20
20
  banner: 'any of the gherkin support languages',
21
- default: :en
21
+ default: :pt
22
22
  def feature(name)
23
23
  I18n.config.default_locale = options[:lang]
24
24
  in_root_project_folder?
@@ -28,7 +28,7 @@ module GeneCapybara
28
28
  desc 'step [RESOURCE_NAME]', 'Generates a step'
29
29
  option :lang,
30
30
  banner: 'any of the gherkin supported languages',
31
- default: :en
31
+ default: :pt
32
32
  def step(name)
33
33
  I18n.config.default_locale = options[:lang]
34
34
  in_root_project_folder?
@@ -38,7 +38,7 @@ module GeneCapybara
38
38
  desc 'page [RESOURCE_NAME]', 'Generates pages'
39
39
  option :lang,
40
40
  banner: 'any of the gherkin supported languages',
41
- default: :en
41
+ default: :pt
42
42
  def page(name)
43
43
  I18n.config.default_locale = options[:lang]
44
44
  in_root_project_folder?
@@ -48,7 +48,7 @@ module GeneCapybara
48
48
  desc 'services [RESOURCE_NAME]', 'Generates services'
49
49
  option :lang,
50
50
  banner: 'any of the gherkin supported languages',
51
- default: :en
51
+ default: :pt
52
52
  def service(name)
53
53
  I18n.config.default_locale = options[:lang]
54
54
  in_root_project_folder?
@@ -58,7 +58,7 @@ module GeneCapybara
58
58
  desc 'all_web [RESOURCE_NAME]', 'Generates features, steps and pages'
59
59
  option :lang,
60
60
  banner: 'any of the gherkin supported languages',
61
- default: :en
61
+ default: :pt
62
62
  def all_web(name)
63
63
  I18n.config.default_locale = options[:lang]
64
64
  in_root_project_folder?
@@ -70,7 +70,7 @@ module GeneCapybara
70
70
  desc 'all_api [RESOURCE_NAME]', 'Generates feature and steps'
71
71
  option :lang,
72
72
  banner: 'any of the gherkin supported languages',
73
- default: :en
73
+ default: :pt
74
74
  def all_api(name)
75
75
  I18n.config.default_locale = options[:lang]
76
76
  in_root_project_folder?
@@ -105,7 +105,7 @@ module GeneCapybara
105
105
  'Capybara, Selenium and Cucumber'
106
106
  option :lang,
107
107
  banner: 'any of the gherkin supported languages',
108
- default: :en
108
+ default: :pt
109
109
  def new_web(name)
110
110
  I18n.config.default_locale = options[:lang]
111
111
  directory File.join(File.dirname(__FILE__),
@@ -116,7 +116,7 @@ module GeneCapybara
116
116
  'Generates the structure of api'
117
117
  option :lang,
118
118
  banner: 'any of the gherkin supported languages',
119
- default: :en
119
+ default: :pt
120
120
  def new_api(name)
121
121
  I18n.config.default_locale = options[:lang]
122
122
  directory File.join(File.dirname(__FILE__),
data/bin/genesaudeid CHANGED
@@ -18,7 +18,7 @@ module GeneCapybara
18
18
  desc 'feature [RESOURCE_NAME]', 'Generates a feature'
19
19
  option :lang,
20
20
  banner: 'any of the gherkin support languages',
21
- default: :en
21
+ default: :pt
22
22
  def feature(name)
23
23
  I18n.config.default_locale = options[:lang]
24
24
  in_root_project_folder?
@@ -28,7 +28,7 @@ module GeneCapybara
28
28
  desc 'step [RESOURCE_NAME]', 'Generates a step'
29
29
  option :lang,
30
30
  banner: 'any of the gherkin supported languages',
31
- default: :en
31
+ default: :pt
32
32
  def step(name)
33
33
  I18n.config.default_locale = options[:lang]
34
34
  in_root_project_folder?
@@ -38,7 +38,7 @@ module GeneCapybara
38
38
  desc 'page [RESOURCE_NAME]', 'Generates pages'
39
39
  option :lang,
40
40
  banner: 'any of the gherkin supported languages',
41
- default: :en
41
+ default: :pt
42
42
  def page(name)
43
43
  I18n.config.default_locale = options[:lang]
44
44
  in_root_project_folder?
@@ -48,7 +48,7 @@ module GeneCapybara
48
48
  desc 'services [RESOURCE_NAME]', 'Generates services'
49
49
  option :lang,
50
50
  banner: 'any of the gherkin supported languages',
51
- default: :en
51
+ default: :pt
52
52
  def service(name)
53
53
  I18n.config.default_locale = options[:lang]
54
54
  in_root_project_folder?
@@ -58,7 +58,7 @@ module GeneCapybara
58
58
  desc 'all_web [RESOURCE_NAME]', 'Generates features, steps and pages'
59
59
  option :lang,
60
60
  banner: 'any of the gherkin supported languages',
61
- default: :en
61
+ default: :pt
62
62
  def all_web(name)
63
63
  I18n.config.default_locale = options[:lang]
64
64
  in_root_project_folder?
@@ -70,7 +70,7 @@ module GeneCapybara
70
70
  desc 'all_api [RESOURCE_NAME]', 'Generates feature and steps'
71
71
  option :lang,
72
72
  banner: 'any of the gherkin supported languages',
73
- default: :en
73
+ default: :pt
74
74
  def all_api(name)
75
75
  I18n.config.default_locale = options[:lang]
76
76
  in_root_project_folder?
@@ -105,7 +105,7 @@ module GeneCapybara
105
105
  'Capybara, Selenium and Cucumber'
106
106
  option :lang,
107
107
  banner: 'any of the gherkin supported languages',
108
- default: :en
108
+ default: :pt
109
109
  def new_web(name)
110
110
  I18n.config.default_locale = options[:lang]
111
111
  directory File.join(File.dirname(__FILE__),
@@ -116,7 +116,7 @@ module GeneCapybara
116
116
  'Generates the structure of api'
117
117
  option :lang,
118
118
  banner: 'any of the gherkin supported languages',
119
- default: :en
119
+ default: :pt
120
120
  def new_api(name)
121
121
  I18n.config.default_locale = options[:lang]
122
122
  directory File.join(File.dirname(__FILE__),
@@ -14,7 +14,6 @@ end
14
14
 
15
15
  def create_page_file(name)
16
16
  opts = { name: camelize(name) }
17
- binding.pry
18
17
  template('page', File.join(FileUtils.pwd, 'features/support', 'pages',
19
18
  "#{name.downcase}_page.rb"), opts)
20
19
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GeneSaudeId
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.4"
5
5
  end
@@ -22,9 +22,7 @@ World(FactoryBot::Syntax::Methods)
22
22
 
23
23
  Dotenv.load('../.env')
24
24
 
25
- ENV['GOOGLE_APPLICATION_CREDENTIALS'] = File.join(Dir.pwd, '../path_file.json')
26
-
27
25
  CONFIG = YAML.load_file(File.join(Dir.pwd, "features/support/config/environments/#{ENV['ENV_TYPE']}.yml"))
28
- QUERIES_POSTEGRESS = YAML.load_file('features/support/libs/queries_postgress.yml')
26
+ ENV['GOOGLE_APPLICATION_CREDENTIALS'] = File.join(Dir.pwd, '../path_file.json')
29
27
 
30
28
  JsonMatchers.schema_root = File.join(Dir.pwd, 'features/support/data/schemas')
@@ -15,6 +15,9 @@ require_relative 'helper'
15
15
 
16
16
  include Helper
17
17
 
18
+ CONFIG = YAML.load_file(File.join(Dir.pwd, "features/support/config/environments/#{ENV['ENV_TYPE']}.yml"))
19
+ EL = YAML.load_file('features/support/config/elements.yml')
20
+
18
21
  @browser = ENV['BROWSER']
19
22
 
20
23
  case @browser
@@ -0,0 +1,3 @@
1
+ class BasePage
2
+ include Capybara::DSL
3
+ end
@@ -1,4 +1,8 @@
1
1
  class <%= config[:name] %>Page < BasePage
2
+ # attr_reader :element
2
3
 
4
+ def initialize
5
+ # @element = EL['element']
6
+ end
3
7
 
4
8
  end
@@ -1,8 +1,11 @@
1
- module <%= config[:name] %>Service
1
+ class <%= config[:name] %>Service
2
2
  include HTTParty
3
3
 
4
4
  # <%= I18n.translate 'comments.services' %>
5
- base_uri CONFIG['url_default'].to_s
6
- headers 'Content-Type' => 'application/json'
7
- format :json
5
+ base_uri CONFIG['BASE_URI'].to_s
6
+ headers CONFIG['API_HEADERS']
7
+ default_timeout 120
8
+
9
+ def initialize() end
10
+
8
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: GeneSaudeId
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raphael Castro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-13 00:00:00.000000000 Z
11
+ date: 2022-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -152,7 +152,7 @@ files:
152
152
  - lib/SkeletonWeb/features/support/env.rb
153
153
  - lib/SkeletonWeb/features/support/helper.rb
154
154
  - lib/SkeletonWeb/features/support/hooks.rb
155
- - lib/SkeletonWeb/features/support/pages/.gitkeep
155
+ - lib/SkeletonWeb/features/support/pages/base_page.rb
156
156
  - lib/SkeletonWeb/report/.gitkeep
157
157
  - lib/SkeletonWeb/report/junit/.gitkeep
158
158
  - lib/SkeletonWeb/report/screenshots/test_failed/.gitkeep
@@ -186,6 +186,6 @@ requirements: []
186
186
  rubygems_version: 3.1.6
187
187
  signing_key:
188
188
  specification_version: 4
189
- summary: Generates an Web, Api and Mobile Test Automation project with Cucumber, Rspec,
190
- Capybara, Selenium, Httparty and JsonSchema.
189
+ summary: Generates an Web, Api Test Automation project with Cucumber, Rspec, Capybara,
190
+ Selenium, Httparty and JsonSchema.
191
191
  test_files: []
File without changes