qa.rb 3.4 KB
Newer Older
1
$: << File.expand_path(File.dirname(__FILE__))
2 3 4 5 6 7

module QA
  ##
  # GitLab QA runtime classes, mostly singletons.
  #
  module Runtime
8
    autoload :Release, 'qa/runtime/release'
9 10
    autoload :User, 'qa/runtime/user'
    autoload :Namespace, 'qa/runtime/namespace'
11
    autoload :Scenario, 'qa/runtime/scenario'
12
    autoload :Browser, 'qa/runtime/browser'
13
    autoload :Env, 'qa/runtime/env'
14 15
  end

16 17 18 19 20
  ##
  # GitLab QA fabrication mechanisms
  #
  module Factory
    autoload :Base, 'qa/factory/base'
21 22
    autoload :Dependency, 'qa/factory/dependency'
    autoload :Product, 'qa/factory/product'
23 24 25 26 27

    module Resource
      autoload :Sandbox, 'qa/factory/resource/sandbox'
      autoload :Group, 'qa/factory/resource/group'
      autoload :Project, 'qa/factory/resource/project'
28
      autoload :DeployKey, 'qa/factory/resource/deploy_key'
29 30 31 32 33 34 35 36 37 38 39
    end

    module Repository
      autoload :Push, 'qa/factory/repository/push'
    end

    module Settings
      autoload :HashedStorage, 'qa/factory/settings/hashed_storage'
    end
  end

40 41 42 43 44 45 46
  ##
  # GitLab QA Scenarios
  #
  module Scenario
    ##
    # Support files
    #
47
    autoload :Bootable, 'qa/scenario/bootable'
48
    autoload :Actable, 'qa/scenario/actable'
R
Richard Clamp 已提交
49
    autoload :Entrypoint, 'qa/scenario/entrypoint'
50 51 52 53 54 55 56
    autoload :Template, 'qa/scenario/template'

    ##
    # Test scenario entrypoints.
    #
    module Test
      autoload :Instance, 'qa/scenario/test/instance'
R
Richard Clamp 已提交
57 58 59 60

      module Integration
        autoload :Mattermost, 'qa/scenario/test/integration/mattermost'
      end
61 62 63 64

      module Sanity
        autoload :Selectors, 'qa/scenario/test/sanity/selectors'
      end
65 66 67 68 69 70 71 72 73 74
    end
  end

  ##
  # Classes describing structure of GitLab, pages, menus etc.
  #
  # Needed to execute click-driven-only black-box tests.
  #
  module Page
    autoload :Base, 'qa/page/base'
75 76
    autoload :View, 'qa/page/view'
    autoload :Element, 'qa/page/element'
77
    autoload :Validator, 'qa/page/validator'
78 79

    module Main
80
      autoload :Login, 'qa/page/main/login'
81
      autoload :OAuth, 'qa/page/main/oauth'
82 83
    end

L
Lin Jen-Shin 已提交
84
    module Menu
L
Lin Jen-Shin 已提交
85
      autoload :Main, 'qa/page/menu/main'
L
Lin Jen-Shin 已提交
86
      autoload :Side, 'qa/page/menu/side'
L
Lin Jen-Shin 已提交
87
      autoload :Admin, 'qa/page/menu/admin'
L
Lin Jen-Shin 已提交
88 89
    end

90
    module Dashboard
91
      autoload :Projects, 'qa/page/dashboard/projects'
92 93 94 95
      autoload :Groups, 'qa/page/dashboard/groups'
    end

    module Group
96
      autoload :New, 'qa/page/group/new'
97
      autoload :Show, 'qa/page/group/show'
98 99 100 101 102
    end

    module Project
      autoload :New, 'qa/page/project/new'
      autoload :Show, 'qa/page/project/show'
103 104

      module Settings
105
        autoload :Common, 'qa/page/project/settings/common'
106
        autoload :Repository, 'qa/page/project/settings/repository'
L
Lin Jen-Shin 已提交
107
        autoload :DeployKeys, 'qa/page/project/settings/deploy_keys'
108
      end
109 110 111
    end

    module Admin
112
      autoload :Settings, 'qa/page/admin/settings'
113
    end
114 115 116 117 118

    module Mattermost
      autoload :Main, 'qa/page/mattermost/main'
      autoload :Login, 'qa/page/mattermost/login'
    end
119 120 121 122 123 124 125 126 127
  end

  ##
  # Classes describing operations on Git repositories.
  #
  module Git
    autoload :Repository, 'qa/git/repository'
  end

128 129 130 131 132 133 134
  ##
  # Classes describing shell interaction with GitLab
  #
  module Shell
    autoload :Omnibus, 'qa/shell/omnibus'
  end

135 136 137 138 139 140 141 142
  ##
  # Classes that make it possible to execute features tests.
  #
  module Specs
    autoload :Config, 'qa/specs/config'
    autoload :Runner, 'qa/specs/runner'
  end
end
143

144
QA::Runtime::Release.extend_autoloads!