ruby_raider 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/generators/automation/templates/abstract_page.tt +4 -0
- data/lib/generators/automation/templates/partials/android_caps.tt +6 -4
- data/lib/generators/automation/templates/partials/cross_platform_caps.tt +11 -10
- data/lib/generators/automation/templates/partials/ios_caps.tt +7 -5
- data/lib/generators/common_generator.rb +1 -1
- data/lib/generators/generator.rb +4 -0
- data/lib/generators/rspec/templates/spec.tt +1 -1
- data/lib/generators/templates/common/read_me.tt +1 -0
- data/ruby_raider.gemspec +1 -1
- data/spec/common_generator_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6187527f5296b729b6b97dfc897beb9d60809db17ab34fece7673c53a247be0f
|
4
|
+
data.tar.gz: 2ac25c14abdc3c038390cf6ca0b1b1a36cab72366adef86c7cdf6d32984aadec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,5 +1,7 @@
|
|
1
|
-
automationName: UiAutomator2
|
2
1
|
platformName: Android
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
-
|
5
|
-
|
6
|
-
|
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
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
data/lib/generators/generator.rb
CHANGED
@@ -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
|
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.
|
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
|
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
|
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
|
+
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-
|
11
|
+
date: 2023-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|