Module: Tabby

Defined in:
lib/tabbyx/core/initialize.rb

Class Method Summary collapse

Class Method Details

.initialize_projectObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/tabbyx/core/initialize.rb', line 9

def self.initialize_project
  Base.create_directory("apps",ROOT_PATH)
  Base.create_directory("screenshots",ROOT_PATH)
  # Base.create_directory("reports",ROOT_PATH)
  # Base.create_directory("inputs",ROOT_PATH)
  # Base.create_directory("outputs",ROOT_PATH)
  # Base.create_directory("testcases",ROOT_PATH)
  Base.create_directory("testsuites",ROOT_PATH+"features/")

  if ENV['PLATFORM'] == 'android'
    Base.create_directory("pages",ROOT_PATH+"features/android/")
    Base.create_file("pages.rb",ROOT_PATH+"features/android/support")
  end

  if ENV['PLATFORM'] == 'ios'
    Base.create_directory("pages",ROOT_PATH+"features/ios/")
    Base.create_file("pages.rb",ROOT_PATH+"features/ios/support")
  end

  if ENV['PLATFORM'] == 'web'
    Base.create_directory("pages",ROOT_PATH+"features/web/")
    Base.create_file("pages.rb",ROOT_PATH+"features/web/support")
  end
end

.page(class_name) ⇒ Object



5
6
7
# File 'lib/tabbyx/core/initialize.rb', line 5

def self.page(class_name)
  class_name.new()
end