qa.rb 2.9 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 14
  end

15 16 17 18 19
  ##
  # GitLab QA fabrication mechanisms
  #
  module Factory
    autoload :Base, 'qa/factory/base'
20 21
    autoload :Dependency, 'qa/factory/dependency'
    autoload :Product, 'qa/factory/product'
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37

    module Resource
      autoload :Sandbox, 'qa/factory/resource/sandbox'
      autoload :Group, 'qa/factory/resource/group'
      autoload :Project, 'qa/factory/resource/project'
    end

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

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

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

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

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

      module Sanity
        autoload :Selectors, 'qa/scenario/test/sanity/selectors'
      end
63 64 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'

    module Main
75
      autoload :Login, 'qa/page/main/login'
76
      autoload :Menu, 'qa/page/main/menu'
77
      autoload :OAuth, 'qa/page/main/oauth'
78 79 80
    end

    module Dashboard
81
      autoload :Projects, 'qa/page/dashboard/projects'
82 83 84 85
      autoload :Groups, 'qa/page/dashboard/groups'
    end

    module Group
86
      autoload :New, 'qa/page/group/new'
87
      autoload :Show, 'qa/page/group/show'
88 89 90 91 92 93 94 95 96
    end

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

    module Admin
      autoload :Menu, 'qa/page/admin/menu'
97
      autoload :Settings, 'qa/page/admin/settings'
98
    end
99 100 101 102 103

    module Mattermost
      autoload :Main, 'qa/page/mattermost/main'
      autoload :Login, 'qa/page/mattermost/login'
    end
104 105 106 107 108 109 110 111 112
  end

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

113 114 115 116 117 118 119
  ##
  # Classes describing shell interaction with GitLab
  #
  module Shell
    autoload :Omnibus, 'qa/shell/omnibus'
  end

120 121 122 123 124 125 126 127
  ##
  # Classes that make it possible to execute features tests.
  #
  module Specs
    autoload :Config, 'qa/specs/config'
    autoload :Runner, 'qa/specs/runner'
  end
end
128

129
QA::Runtime::Release.extend_autoloads!