ruby-mobile-appium-template 1.0.6 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby_appium.rb +25 -24
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4d297ea3fc2cade59d85c8ea2ceb6c4ca8f005b9fb17fe01d18b96e0beb912d
|
4
|
+
data.tar.gz: be6a6d19b77bb6234ab72d9f2c41848bf62286523aced8d1d0bf26926dee4799
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edf609b6010c3c6d189462690951f0be42e6383e22c557bbaeff2fc5c8bff0cca3ee261bae12a8a9fffbf6137a915a75589bbf5508cbefe2d99ba381b7f569b4
|
7
|
+
data.tar.gz: 301a7c5e9ea32f83c5045db7f5a773d11cb97a04376c03a773c63974668629f85a7fed6c15f27ab98bef35cbb33333a497abf7cfbd272733c7c1e708ef0820c9
|
data/lib/ruby_appium.rb
CHANGED
@@ -5,16 +5,18 @@ require 'fileutils'
|
|
5
5
|
class RubyAppium < Thor::Group
|
6
6
|
include Thor::Actions
|
7
7
|
|
8
|
-
VERSION = "1.0.
|
8
|
+
VERSION = "1.0.9"
|
9
9
|
|
10
10
|
argument :dir_name
|
11
11
|
|
12
12
|
def self.source_root
|
13
|
-
File.join(File.dirname(__FILE__), '..', '
|
13
|
+
File.join(File.dirname(__FILE__), '..', 'templates')
|
14
|
+
|
14
15
|
end
|
15
16
|
|
16
17
|
def create_new_cucumber_directory
|
17
18
|
self.destination_root = File.expand_path(dir_name, destination_root)
|
19
|
+
puts destination_root
|
18
20
|
make_empty_directory
|
19
21
|
FileUtils.cd(destination_root)
|
20
22
|
gemfile_rakefile_cukeyml
|
@@ -57,53 +59,52 @@ class RubyAppium < Thor::Group
|
|
57
59
|
end
|
58
60
|
end
|
59
61
|
|
60
|
-
|
62
|
+
def create_files
|
61
63
|
inside 'config/ios' do
|
62
|
-
template 'appium.txt'
|
63
|
-
template 'appium_farm.txt'
|
64
|
+
template 'config/ios/appium.txt', 'appium.txt'
|
65
|
+
template 'config/ios/appium_farm.txt', 'appium_farm.txt'
|
64
66
|
end
|
65
67
|
|
66
68
|
inside 'config/android' do
|
67
|
-
template 'appium.txt'
|
68
|
-
template 'appium_farm.txt'
|
69
|
+
template 'config/android/appium.txt', 'appium.txt'
|
70
|
+
template 'config/android/appium_farm.txt', 'appium_farm.txt'
|
69
71
|
end
|
70
72
|
|
71
73
|
inside 'features/support' do
|
72
|
-
template 'env.rb'
|
73
|
-
template 'hooks.rb'
|
74
|
-
template 'utils.rb'
|
75
|
-
template 'appium_custom.rb'
|
74
|
+
template 'features/support/env.rb', 'env.rb'
|
75
|
+
template 'features/support/hooks.rb', 'hooks.rb'
|
76
|
+
template 'features/support/utils.rb', 'utils.rb'
|
77
|
+
template 'features/support/appium_custom.rb', 'appium_custom.rb'
|
76
78
|
end
|
77
79
|
|
78
80
|
inside 'features/login/features' do
|
79
|
-
template 'login.feature'
|
81
|
+
template 'features/login/features/login.feature', 'login.feature'
|
80
82
|
end
|
81
83
|
|
82
84
|
inside 'features/login/data' do
|
83
|
-
template 'data/login.yaml'
|
85
|
+
template 'features/login/data/login.yaml','data/login.yaml'
|
84
86
|
end
|
85
87
|
|
86
88
|
inside 'features/login/elements' do
|
87
|
-
template 'screen_mappings_home.yaml'
|
88
|
-
template 'screen_mappings_login.yaml'
|
89
|
-
template 'screen_mappings_organizadorhome.yaml'
|
90
|
-
template 'screen_mappings_token.yaml'
|
89
|
+
template 'features/login/elements/screen_mappings_home.yaml','screen_mappings_home.yaml'
|
90
|
+
template 'features/login/elements/screen_mappings_login.yaml','screen_mappings_login.yaml'
|
91
|
+
template 'features/login/elements/screen_mappings_organizadorhome.yaml','screen_mappings_organizadorhome.yaml'
|
92
|
+
template 'features/login/elements/screen_mappings_token.yaml','screen_mappings_token.yaml'
|
91
93
|
end
|
92
94
|
|
93
95
|
inside 'features/login/pageobjects' do
|
94
|
-
template 'home.rb'
|
95
|
-
template 'login.rb'
|
96
|
-
template 'loginPages.rb'
|
97
|
-
template 'organizadorHome.rb'
|
98
|
-
template 'token.rb'
|
96
|
+
template 'features/login/pageobjects/home.rb','home.rb'
|
97
|
+
template 'features/login/pageobjects/login.rb','login.rb'
|
98
|
+
template 'features/login/pageobjects/loginPages.rb','loginPages.rb'
|
99
|
+
template 'features/login/pageobjects/organizadorHome.rb','organizadorHome.rb'
|
100
|
+
template 'features/login/pageobjects/token.rb','token.rb'
|
99
101
|
end
|
100
102
|
|
101
103
|
inside 'features/login/steps' do
|
102
|
-
template 'login_steps.rb'
|
104
|
+
template 'features/login/steps/login_steps.rb','login_steps.rb'
|
103
105
|
end
|
104
106
|
end
|
105
107
|
|
106
|
-
|
107
108
|
def gemfile_rakefile_cukeyml
|
108
109
|
inside destination_root do
|
109
110
|
template 'Gemfile'
|