Class: AutomationGenerator

Inherits:
Generator
  • Object
show all
Defined in:
lib/generators/automation/automation_generator.rb

Instance Method Summary collapse

Methods inherited from Generator

source_paths

Instance Method Details

#generate_abstract_componentObject



10
11
12
13
14
15
# File 'lib/generators/automation/automation_generator.rb', line 10

def generate_abstract_component
  return unless (@_initializer.first & %w[android ios cross_platform]).empty?
  return if @_initializer.first.last

  template('abstract_component.tt', "#{name}/page_objects/abstract/abstract_component.rb")
end

#generate_abstract_pageObject



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_settingsObject



17
18
19
20
21
# File 'lib/generators/automation/automation_generator.rb', line 17

def generate_appium_settings
  return if (@_initializer.first & %w[android ios cross_platform]).empty?

  template('appium_caps.tt', "#{name}/config/capabilities.yml")
end

#generate_visual_optionsObject



23
24
25
26
27
# File 'lib/generators/automation/automation_generator.rb', line 23

def generate_visual_options
  return unless @_initializer.first.last

  template('visual_options.tt', "#{name}/config/options.yml")
end