Class: AutomationGenerator
- Inherits:
-
Generator
- Object
- Thor::Group
- Generator
- AutomationGenerator
show all
- Defined in:
- lib/generators/automation/automation_generator.rb
Instance Method Summary
collapse
Methods inherited from Generator
#args, #mobile_platform?, source_paths, #visual_selected?
Instance Method Details
#generate_abstract_component ⇒ Object
10
11
12
13
14
15
|
# File 'lib/generators/automation/automation_generator.rb', line 10
def generate_abstract_component
return if mobile_platform?
return if visual_selected?
template('abstract_component.tt', "#{name}/page_objects/abstract/abstract_component.rb")
end
|
#generate_abstract_page ⇒ Object
6
7
8
|
# File 'lib/generators/automation/automation_generator.rb', line 6
def generate_abstract_page
template('abstract_page.tt', "#{name}/page_objects/abstract/abstract_page.rb")
end
|
#generate_appium_settings ⇒ Object
17
18
19
20
21
|
# File 'lib/generators/automation/automation_generator.rb', line 17
def generate_appium_settings
return unless mobile_platform?
template('appium_caps.tt', "#{name}/config/capabilities.yml")
end
|
#generate_visual_options ⇒ Object
23
24
25
26
27
|
# File 'lib/generators/automation/automation_generator.rb', line 23
def generate_visual_options
return unless visual_selected?
template('visual_options.tt', "#{name}/config/options.yml")
end
|