ruby-mobile-appium-template 1.0.2 → 1.0.3
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/lib/ruby_appium.rb +72 -8
- 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: 7a5c863455692c6be100534688875f13598a62d2237cf12aa8d13fc402916a81
|
4
|
+
data.tar.gz: 5862a9c51727709b14afd783aad0e63edfdf6c20a4f723da1a760527336167fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5742360669342e4088de15cee853357f4d87cdeef827003b07b11ebdd444d1d288f0e8fc3970b879be163a6e727165b3d6b708e9043c9e11a1fb5cbdf8286fea
|
7
|
+
data.tar.gz: e203294c286dfd96fc58dc66add448cc64b24a7c3044a1daf78823bd8e6baa516e388c845f4ee83a7aa5e8a51316b9e6a3394491080f66962a72923087b7c045
|
data/lib/ruby_appium.rb
CHANGED
@@ -5,7 +5,7 @@ require 'fileutils'
|
|
5
5
|
class RubyAppium < Thor::Group
|
6
6
|
include Thor::Actions
|
7
7
|
|
8
|
-
VERSION = "1.0.
|
8
|
+
VERSION = "1.0.3"
|
9
9
|
|
10
10
|
argument :dir_name
|
11
11
|
|
@@ -18,7 +18,8 @@ class RubyAppium < Thor::Group
|
|
18
18
|
make_empty_directory
|
19
19
|
FileUtils.cd(destination_root)
|
20
20
|
gemfile_rakefile_cukeyml
|
21
|
-
|
21
|
+
create_folders
|
22
|
+
create_files
|
22
23
|
end
|
23
24
|
|
24
25
|
protected
|
@@ -27,19 +28,82 @@ class RubyAppium < Thor::Group
|
|
27
28
|
empty_directory '.'
|
28
29
|
end
|
29
30
|
|
30
|
-
def
|
31
|
+
def create_folders
|
32
|
+
empty_directory 'app'
|
33
|
+
empty_directory 'config'
|
31
34
|
empty_directory 'features'
|
32
35
|
|
36
|
+
inside 'app' do
|
37
|
+
empty_directory 'ios'
|
38
|
+
empty_directory 'android'
|
39
|
+
end
|
40
|
+
|
41
|
+
inside 'config' do
|
42
|
+
empty_directory 'ios'
|
43
|
+
empty_directory 'android'
|
44
|
+
end
|
45
|
+
|
33
46
|
inside 'features' do
|
34
|
-
|
47
|
+
empty_directory 'login'
|
35
48
|
empty_directory 'support'
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
49
|
+
end
|
50
|
+
|
51
|
+
inside 'features/login' do
|
52
|
+
empty_directory 'features'
|
53
|
+
empty_directory 'data'
|
54
|
+
empty_directory 'elements'
|
55
|
+
empty_directory 'pageobjects'
|
56
|
+
empty_directory 'steps'
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
def create_files
|
61
|
+
inside 'config/ios' do
|
62
|
+
template 'templates/config/ios/appium.txt', 'appium.txt'
|
63
|
+
template 'templates/config/ios/appium_farm.txt', 'appium_farm.txt'
|
64
|
+
end
|
65
|
+
|
66
|
+
inside 'config/android' do
|
67
|
+
template 'templates/config/android/appium.txt', 'appium.txt'
|
68
|
+
template 'templates/config/android/appium_farm.txt', 'appium_farm.txt'
|
69
|
+
end
|
70
|
+
|
71
|
+
inside 'features/support' do
|
72
|
+
template 'templates/features/support/env.rb', 'env.rb'
|
73
|
+
template 'templates/features/support/hooks.rb', 'hooks.rb'
|
74
|
+
template 'templates/features/support/utils.rb', 'utils.rb'
|
75
|
+
template 'templates/features/support/appium_custom.rb', 'appium_custom.rb'
|
76
|
+
end
|
77
|
+
|
78
|
+
inside 'features/login/features' do
|
79
|
+
template 'templates/features/login/features/login.feature', 'login.feature'
|
80
|
+
end
|
81
|
+
|
82
|
+
inside 'features/login/data' do
|
83
|
+
template 'templates/features/login/data/login.yaml','data/login.yaml'
|
84
|
+
end
|
85
|
+
|
86
|
+
inside 'features/login/elements' do
|
87
|
+
template 'templates/features/login/elements/screen_mappings_home.yaml','screen_mappings_home.yaml'
|
88
|
+
template 'templates/features/login/elements/screen_mappings_login.yaml','screen_mappings_login.yaml'
|
89
|
+
template 'templates/features/login/elements/screen_mappings_organizadorhome.yaml','screen_mappings_organizadorhome.yaml'
|
90
|
+
template 'templates/features/login/elements/screen_mappings_token.yaml','screen_mappings_token.yaml'
|
91
|
+
end
|
92
|
+
|
93
|
+
inside 'features/login/pageobjects' do
|
94
|
+
template 'templates/features/login/pageobjects/home.rb','home.rb'
|
95
|
+
template 'templates/features/login/pageobjects/login.rb','login.rb'
|
96
|
+
template 'templates/features/login/pageobjects/loginPages.rb','loginPages.rb'
|
97
|
+
template 'templates/features/login/pageobjects/organizadorHome.rb','organizadorHome.rb'
|
98
|
+
template 'templates/features/login/pageobjects/token.rb','token.rb'
|
99
|
+
end
|
100
|
+
|
101
|
+
inside 'features/login/steps' do
|
102
|
+
template 'templates/features/login/steps/login_steps.rb','login_steps.rb'
|
40
103
|
end
|
41
104
|
end
|
42
105
|
|
106
|
+
|
43
107
|
def gemfile_rakefile_cukeyml
|
44
108
|
inside destination_root do
|
45
109
|
template 'Gemfile'
|