ruby-mobile-appium-template 1.0.8 → 1.1.1
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 +57 -56
- 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: 8d94362babb8b06c6fbc979a2214bf8ff299531b6f9720ce7bf1f1c192db7d87
|
4
|
+
data.tar.gz: c6b84ede61361825ab61e9e3810f3e465f601b0ad5e3e7be839b46110c6ca94c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c2df95310169ee95b40479c3f9acc829f7126ec207eb3792416393c4e3ed3cdd1e8e4d150bf5d3c58783a3603068a4250ad2ab7468f04322b789fe3f3101eaf
|
7
|
+
data.tar.gz: 235e3de849709d0d752f3b73fba66308202eaaaf113ceedd7b6b2d98beeb5a1890ea8646bc611facd41c655dd52a2bf681f703abbc4029ffea053754acfd4890
|
data/lib/ruby_appium.rb
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
1
|
+
require "thor"
|
2
|
+
require "thor/group"
|
3
|
+
require "fileutils"
|
4
4
|
|
5
5
|
class RubyAppium < Thor::Group
|
6
6
|
include Thor::Actions
|
7
7
|
|
8
|
-
VERSION = "1.
|
8
|
+
VERSION = "1.1.1"
|
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
15
|
end
|
16
16
|
|
17
17
|
def create_new_cucumber_directory
|
18
|
-
self.destination_root = File.expand_path(dir_name
|
18
|
+
self.destination_root = File.expand_path(dir_name)
|
19
19
|
make_empty_directory
|
20
20
|
FileUtils.cd(destination_root)
|
21
21
|
gemfile_rakefile_cukeyml
|
@@ -26,89 +26,90 @@ class RubyAppium < Thor::Group
|
|
26
26
|
protected
|
27
27
|
|
28
28
|
def make_empty_directory
|
29
|
-
empty_directory
|
29
|
+
empty_directory "."
|
30
30
|
end
|
31
31
|
|
32
32
|
def create_folders
|
33
|
-
empty_directory
|
34
|
-
empty_directory
|
35
|
-
empty_directory
|
33
|
+
empty_directory "app"
|
34
|
+
empty_directory "config"
|
35
|
+
empty_directory "features"
|
36
36
|
|
37
|
-
inside
|
38
|
-
empty_directory
|
39
|
-
empty_directory
|
37
|
+
inside "app" do
|
38
|
+
empty_directory "ios"
|
39
|
+
empty_directory "android"
|
40
40
|
end
|
41
41
|
|
42
|
-
inside
|
43
|
-
empty_directory
|
44
|
-
empty_directory
|
42
|
+
inside "config" do
|
43
|
+
empty_directory "ios"
|
44
|
+
empty_directory "android"
|
45
45
|
end
|
46
46
|
|
47
|
-
inside
|
48
|
-
empty_directory
|
49
|
-
empty_directory
|
47
|
+
inside "features" do
|
48
|
+
empty_directory "login"
|
49
|
+
empty_directory "support"
|
50
50
|
end
|
51
51
|
|
52
|
-
inside
|
53
|
-
empty_directory
|
54
|
-
empty_directory
|
55
|
-
empty_directory
|
56
|
-
empty_directory
|
57
|
-
empty_directory
|
52
|
+
inside "features/login" do
|
53
|
+
empty_directory "features"
|
54
|
+
empty_directory "data"
|
55
|
+
empty_directory "elements"
|
56
|
+
empty_directory "pageobjects"
|
57
|
+
empty_directory "steps"
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
61
|
def create_files
|
62
|
-
inside
|
63
|
-
template
|
64
|
-
template
|
62
|
+
inside "config/ios" do
|
63
|
+
template "config/ios/appium.txt", "appium.txt"
|
64
|
+
template "config/ios/appium_farm.txt", "appium_farm.txt"
|
65
65
|
end
|
66
66
|
|
67
|
-
inside
|
68
|
-
template
|
69
|
-
template
|
67
|
+
inside "config/android" do
|
68
|
+
template "config/android/appium.txt", "appium.txt"
|
69
|
+
template "config/android/appium_farm.txt", "appium_farm.txt"
|
70
70
|
end
|
71
71
|
|
72
|
-
inside
|
73
|
-
template
|
74
|
-
template
|
75
|
-
template
|
76
|
-
template
|
72
|
+
inside "features/support" do
|
73
|
+
template "features/support/env.rb", "env.rb"
|
74
|
+
template "features/support/hooks.rb", "hooks.rb"
|
75
|
+
template "eatures/support/utils.rb", "utils.rb"
|
76
|
+
template "features/support/appium_custom.rb", "appium_custom.rb"
|
77
77
|
end
|
78
78
|
|
79
|
-
inside
|
80
|
-
template
|
79
|
+
inside "features/login/features" do
|
80
|
+
template "eatures/login/features/login.feature", "login.feature"
|
81
81
|
end
|
82
82
|
|
83
|
-
inside
|
84
|
-
template
|
83
|
+
inside "features/login/data" do
|
84
|
+
template "features/login/data/login.yaml","data/login.yaml"
|
85
85
|
end
|
86
86
|
|
87
|
-
inside
|
88
|
-
template
|
89
|
-
template
|
90
|
-
template
|
91
|
-
template
|
87
|
+
inside "features/login/elements" do
|
88
|
+
template "features/login/elements/screen_mappings_home.yaml","screen_mappings_home.yaml"
|
89
|
+
template "features/login/elements/screen_mappings_login.yaml","screen_mappings_login.yaml"
|
90
|
+
template "features/login/elements/screen_mappings_organizadorhome.yaml","screen_mappings_organizadorhome.yaml"
|
91
|
+
template "features/login/elements/screen_mappings_token.yaml","screen_mappings_token.yaml"
|
92
92
|
end
|
93
93
|
|
94
|
-
inside
|
95
|
-
template
|
96
|
-
template
|
97
|
-
template
|
98
|
-
template
|
99
|
-
template
|
94
|
+
inside "features/login/pageobjects" do
|
95
|
+
template "features/login/pageobjects/home.rb","home.rb"
|
96
|
+
template "features/login/pageobjects/login.rb","login.rb"
|
97
|
+
template "features/login/pageobjects/loginPages.rb","loginPages.rb"
|
98
|
+
template "features/login/pageobjects/organizadorHome.rb","organizadorHome.rb"
|
99
|
+
template "features/login/pageobjects/token.rb","token.rb"
|
100
100
|
end
|
101
101
|
|
102
|
-
inside
|
103
|
-
template
|
102
|
+
inside "features/login/steps" do
|
103
|
+
template "features/login/steps/login_steps.rb","login_steps.rb"
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
107
107
|
def gemfile_rakefile_cukeyml
|
108
108
|
inside destination_root do
|
109
|
-
template
|
110
|
-
template
|
111
|
-
template
|
109
|
+
template "Gemfile"
|
110
|
+
template "Rakefile"
|
111
|
+
template "cucumber.yml"
|
112
|
+
template "appium.txt", "config/ios/appium.txt"
|
112
113
|
end
|
113
114
|
end
|
114
115
|
|