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