Class: AutomationGenerator

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

Instance Method Summary collapse

Methods inherited from Generator

source_root

Instance Method Details

#generate_abstract_componentObject



26
27
28
29
30
# File 'lib/generators/automation_generator.rb', line 26

def generate_abstract_component
  unless @_initializer.first.include?('appium_ios')
    template('automation/abstract_component.tt', "#{name}/page_objects/abstract/abstract_component.rb")
  end
end

#generate_abstract_pageObject



10
11
12
# File 'lib/generators/automation_generator.rb', line 10

def generate_abstract_page
  template('automation/abstract_page.tt', "#{name}/page_objects/abstract/abstract_page.rb")
end

#generate_appium_settingsObject



38
39
40
41
42
# File 'lib/generators/automation_generator.rb', line 38

def generate_appium_settings
  if @_initializer.first.include?('appium_ios')
    template('automation/appium_settings.tt', "#{name}/appium.txt")
  end
end

#generate_confirmation_pageObject



32
33
34
35
36
# File 'lib/generators/automation_generator.rb', line 32

def generate_confirmation_page
  if @_initializer.first.include?('appium_ios')
    template('automation/confirmation_page.tt', "#{name}/page_objects/pages/confirmation_page.rb")
  end
end

#generate_header_componentObject



20
21
22
23
24
# File 'lib/generators/automation_generator.rb', line 20

def generate_header_component
  unless @_initializer.first.include?('appium_ios')
    template('automation/component.tt', "#{name}/page_objects/components/header_component.rb")
  end
end

#generate_home_pageObject



14
15
16
17
18
# File 'lib/generators/automation_generator.rb', line 14

def generate_home_page
  if @_initializer.first.include?('appium_ios')
    template('automation/home_page.tt', "#{name}/page_objects/pages/home_page.rb")
  end
end

#generate_login_pageObject



6
7
8
# File 'lib/generators/automation_generator.rb', line 6

def 
  template('automation/login_page.tt', "#{name}/page_objects/pages/login_page.rb")
end