ruby_raider 0.7.4 → 0.7.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a03654b03c3ef053dc6816511268f25dbf4e9ce657b1753f724bb3c5143ad1fa
4
- data.tar.gz: cd0225ec4cd76957d01f144965471e1a8bf9173ca231bd8cbdad36b37ba9c5bf
3
+ metadata.gz: 6187527f5296b729b6b97dfc897beb9d60809db17ab34fece7673c53a247be0f
4
+ data.tar.gz: 2ac25c14abdc3c038390cf6ca0b1b1a36cab72366adef86c7cdf6d32984aadec
5
5
  SHA512:
6
- metadata.gz: 4aff557676479e52920b19bce5d9e7bd5b5dfe70b6ba44cfe1a433c3367bb60f399abd3f1f7800dae85c51e1223f26866aa9ee7025ecda23e19ba93b6a42ffd2
7
- data.tar.gz: 0f4e485e1d0b8270ef9e5a250abf0e3afcc2af50d7526387c89fc32b863ff6f6671dbd4bcc505faf659a9329eb4d2da88d86761236e693b5bc8041c2d079b904
6
+ metadata.gz: d999412e75b3f5b595d3615bc4664c0bc2c059385d8d397e970cce48565caa11712223654b6c28ae2892ba1ce03c3e72ddb305f272d9c61228053d93a7b92e8e
7
+ data.tar.gz: 33f26594ee731b2dfce01861e13ee8423acca5411c583fe4d77784d54edea05f840cf95cdc85b70dcc15407ce041e8e3062dd46d35b9617a42c18e803dc5f276
data/README.md CHANGED
@@ -57,6 +57,7 @@ Ruby Raider is a generator and scaffolding gem to make UI test automation easier
57
57
  * Generating a visual testing framework with Cucumber, Applitools and Selenium
58
58
 
59
59
  ***In order to run the Appium tests, download the example [app](https://github.com/saucelabs/my-demo-app-rn).***
60
+ ***Remember to use the full path of the app that you download in the capabilities file***
60
61
 
61
62
  ***In order to run the visual tests with applitools, you need to create an account and get your api key, you can read
62
63
  more [here](https://applitools.com/docs/topics/overview/obtain-api-key.html#:~:text=If%20you%20already%20have%20an,Your%20key%20will%20be%20displayed.)
@@ -1,3 +1,7 @@
1
+ <%- if automation == 'cross_platform' -%>
2
+ require_relative '../../helpers/appium_helper'
3
+ <% end -%>
4
+
1
5
  class AbstractPage
2
6
  <% if automation == 'cross_platform' -%>
3
7
  include AppiumHelper
@@ -1,5 +1,7 @@
1
- automationName: UiAutomator2
2
1
  platformName: Android
3
- deviceName: Nexus_7_API_33
4
- app: "Android-MyDemoAppRN.1.3.0.build-244.apk"
5
- autoGrantPermissions: true
2
+ appium:options:
3
+ url: http://localhost:4723/wd/hub
4
+ platformVersion: '12'
5
+ automationName: UiAutomator2
6
+ deviceName: Pixel 3 API 32
7
+ app: "Android-MyDemoAppRN.1.3.0.build-244.apk"
@@ -1,14 +1,15 @@
1
1
  android:
2
- automationName: UiAutomator2
3
2
  platformName: Android
4
- deviceName: Nexus_7_API_33
5
- app: "Android-MyDemoAppRN.1.3.0.build-244.apk"
6
- autoGrantPermissions: true
7
-
3
+ appium:options:
4
+ platformVersion: '12'
5
+ automationName: UiAutomator2
6
+ deviceName: Pixel 3 API 32
7
+ app: "Android-MyDemoAppRN.1.3.0.build-244.apk"
8
8
  ios:
9
- automationName: XCUITest
10
9
  platformName: iOS
11
- platformVersion: "15.5"
12
- deviceName: iPhone 11
13
- app: "MyRNDemoApp.app"
14
- autoDismissAlerts: true
10
+ appium:options:
11
+ platformVersion: "14.0"
12
+ deviceName: iPhone 11
13
+ automationName: XCUITest
14
+ app: "MyRNDemoApp.app"
15
+ autoDismissAlerts: true
@@ -1,6 +1,8 @@
1
- automationName: XCUITest
2
1
  platformName: iOS
3
- platformVersion: "15.5"
4
- deviceName: iPhone 11
5
- app: "MyRNDemoApp.app"
6
- autoDismissAlerts: true
2
+ appium:options:
3
+ url: http://localhost:4723/wd/hub
4
+ platformVersion: "14.0"
5
+ deviceName: iPhone 11
6
+ automationName: XCUITest
7
+ app: "MyRNDemoApp.app"
8
+ autoDismissAlerts: true
@@ -8,7 +8,7 @@ class CommonGenerator < Generator
8
8
  end
9
9
 
10
10
  def generate_config_file
11
- return if mobile?
11
+ return if single_platform?
12
12
 
13
13
  template('common/config.tt', "#{name}/config/config.yml")
14
14
  end
@@ -32,6 +32,10 @@ class Generator < Thor::Group
32
32
  (args & %w[android ios cross_platform]).count.positive?
33
33
  end
34
34
 
35
+ def single_platform?
36
+ (args & %w[android ios]).count.positive?
37
+ end
38
+
35
39
  def rspec?
36
40
  args.include?('rspec')
37
41
  end
@@ -47,7 +47,7 @@ require_relative '../helpers/spec_helper'
47
47
  require_relative '../page_objects/pages/home_page'
48
48
  require_relative '../page_objects/pages/pdp_page'
49
49
 
50
- class PdpSpec < BaseSpec
50
+ class PdpSpec
51
51
  describe 'PDP page' do
52
52
 
53
53
  let(:home_page) { HomePage.new(driver) }
@@ -53,6 +53,7 @@ Ruby Raider is a generator and scaffolding gem to make UI test automation easier
53
53
  * Generating a visual testing framework with Cucumber, Applitools and Selenium
54
54
 
55
55
  ***In order to run the Appium tests, download the example [app](https://github.com/saucelabs/my-demo-app-rn).***
56
+ ***Remember to use the full path of the app that you download in the capabilities file***
56
57
 
57
58
  ***In order to run the visual tests with applitools, you need to create an account and get your api key, you can read
58
59
  more [here](https://applitools.com/docs/topics/overview/obtain-api-key.html#:~:text=If%20you%20already%20have%20an,Your%20key%20will%20be%20displayed.)
data/ruby_raider.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'ruby_raider'
5
- s.version = '0.7.4'
5
+ s.version = '0.7.5'
6
6
  s.summary = 'A gem to make setup and start of UI automation projects easier'
7
7
  s.description = 'This gem has everything you need to start working with test automation'
8
8
  s.authors = ['Agustin Pequeno']
@@ -107,12 +107,12 @@ describe CommonGenerator do
107
107
  context 'with cucumber and appium cross platform' do
108
108
  include_examples 'creates common files', "#{FRAMEWORKS.first}_#{AUTOMATION_TYPES.last}"
109
109
  include_examples 'creates a capabilities file', "#{FRAMEWORKS.first}_#{AUTOMATION_TYPES.last}"
110
- include_examples "doesn't create a config file", "#{FRAMEWORKS.first}_#{AUTOMATION_TYPES.last}"
110
+ include_examples 'creates a config file', "#{FRAMEWORKS.first}_#{AUTOMATION_TYPES.last}"
111
111
  end
112
112
 
113
113
  context 'with rspec and appium cross platform' do
114
114
  include_examples 'creates common files', "#{FRAMEWORKS.last}_#{AUTOMATION_TYPES.last}"
115
115
  include_examples 'creates a capabilities file', "#{FRAMEWORKS.last}_#{AUTOMATION_TYPES.last}"
116
- include_examples "doesn't create a config file", "#{FRAMEWORKS.last}_#{AUTOMATION_TYPES.last}"
116
+ include_examples 'creates a config file', "#{FRAMEWORKS.last}_#{AUTOMATION_TYPES.last}"
117
117
  end
118
118
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_raider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agustin Pequeno
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-11 00:00:00.000000000 Z
11
+ date: 2023-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv