ruby-mobile-appium-template 1.0.1 → 1.0.4
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 +51 -23
- 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: 7306af33c9399352699761a7fe9acefbb2d57e6ef045955f22f56438b605a469
|
4
|
+
data.tar.gz: 4e3281e94bd14df7a598115e50cc5e289852084cf1281fa37dee38a90e9f9333
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 594b2faa3a1890f706e07ff82578074918276b0b1ef74867550e14abbd20ef220dcd9e8edcda47d8a50f693179f121ee979706510d268ec73c5b16b403581a4c
|
7
|
+
data.tar.gz: 1f0191f88790e3ec40cdac5c8fd1152ae084afcd7c796d2fc514895d319fe96b7969ad85e79424d7dd5985422b6866299f3bf5bdbde4823b1b9a2571cdfecc29
|
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.4"
|
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,7 +28,7 @@ class RubyAppium < Thor::Group
|
|
27
28
|
empty_directory '.'
|
28
29
|
end
|
29
30
|
|
30
|
-
def
|
31
|
+
def create_folders
|
31
32
|
empty_directory 'app'
|
32
33
|
empty_directory 'config'
|
33
34
|
empty_directory 'features'
|
@@ -40,42 +41,69 @@ class RubyAppium < Thor::Group
|
|
40
41
|
inside 'config' do
|
41
42
|
empty_directory 'ios'
|
42
43
|
empty_directory 'android'
|
43
|
-
template 'ios/appium.txt', 'ios/appium.txt'
|
44
|
-
template 'ios/appium_farm.txt', 'ios/appium_farm.txt'
|
45
|
-
template 'android/appium.txt', 'android/appium.txt'
|
46
|
-
template 'android/appium_farm.txt', 'android/appium_farm.txt'
|
47
44
|
end
|
48
45
|
|
49
46
|
inside 'features' do
|
50
47
|
empty_directory 'login'
|
51
48
|
empty_directory 'support'
|
52
|
-
template 'support/env.rb', 'support/env.rb'
|
53
|
-
template 'support/hooks.rb', 'support/hooks.rb'
|
54
|
-
template 'support/utils.rb', 'support/utils.rb'
|
55
|
-
template 'support/appium_custom.rb', 'support/appium_custom.rb'
|
56
49
|
end
|
57
50
|
|
58
51
|
inside 'features/login' do
|
59
52
|
empty_directory 'features'
|
60
|
-
template 'features/login.feature', 'features/login.feature'
|
61
53
|
empty_directory 'data'
|
62
|
-
template 'data/login.yaml','data/login.yaml'
|
63
54
|
empty_directory 'elements'
|
64
|
-
template 'elements/screen_mappings_home.yaml','elements/screen_mappings_home.yaml'
|
65
|
-
template 'elements/screen_mappings_login.yaml','elements/screen_mappings_login.yaml'
|
66
|
-
template 'elements/screen_mappings_organizadorhome.yaml','elements/screen_mappings_organizadorhome.yaml'
|
67
|
-
template 'elements/screen_mappings_token.yaml','elements/screen_mappings_token.yaml'
|
68
55
|
empty_directory 'pageobjects'
|
69
|
-
template 'pageobjects/home.rb','pageobjects/home.rb'
|
70
|
-
template 'pageobjects/login.rb','pageobjects/login.rb'
|
71
|
-
template 'pageobjects/loginPages.rb','pageobjects/loginPages.rb'
|
72
|
-
template 'pageobjects/organizadorHome.rb','pageobjects/organizadorHome.rb'
|
73
|
-
template 'pageobjects/token.rb','pageobjects/token.rb'
|
74
56
|
empty_directory 'steps'
|
75
|
-
template 'steps/login_steps.rb','steps/login_steps.rb'
|
76
57
|
end
|
77
58
|
end
|
78
59
|
|
60
|
+
def create_files
|
61
|
+
inside 'config/ios' do
|
62
|
+
template 'appium.txt'
|
63
|
+
template 'appium_farm.txt'
|
64
|
+
end
|
65
|
+
|
66
|
+
inside 'config/android' do
|
67
|
+
template 'appium.txt'
|
68
|
+
template 'appium_farm.txt'
|
69
|
+
end
|
70
|
+
|
71
|
+
inside 'features/support' do
|
72
|
+
template 'env.rb'
|
73
|
+
template 'hooks.rb'
|
74
|
+
template 'utils.rb'
|
75
|
+
template 'appium_custom.rb'
|
76
|
+
end
|
77
|
+
|
78
|
+
inside 'features/login/features' do
|
79
|
+
template 'login.feature'
|
80
|
+
end
|
81
|
+
|
82
|
+
inside 'features/login/data' do
|
83
|
+
template 'data/login.yaml'
|
84
|
+
end
|
85
|
+
|
86
|
+
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'
|
91
|
+
end
|
92
|
+
|
93
|
+
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'
|
99
|
+
end
|
100
|
+
|
101
|
+
inside 'features/login/steps' do
|
102
|
+
template 'login_steps.rb'
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
|
79
107
|
def gemfile_rakefile_cukeyml
|
80
108
|
inside destination_root do
|
81
109
|
template 'Gemfile'
|