2017-02-20 07:59:11 -05:00
|
|
|
$: << File.expand_path(File.dirname(__FILE__))
|
2017-02-20 06:45:04 -05:00
|
|
|
|
|
|
|
module QA
|
|
|
|
##
|
|
|
|
# GitLab QA runtime classes, mostly singletons.
|
|
|
|
#
|
|
|
|
module Runtime
|
2017-03-09 06:18:55 -05:00
|
|
|
autoload :Release, 'qa/runtime/release'
|
2017-02-20 06:45:04 -05:00
|
|
|
autoload :User, 'qa/runtime/user'
|
|
|
|
autoload :Namespace, 'qa/runtime/namespace'
|
2017-10-25 00:55:42 -04:00
|
|
|
autoload :Scenario, 'qa/runtime/scenario'
|
2017-11-17 08:48:52 -05:00
|
|
|
autoload :Browser, 'qa/runtime/browser'
|
2018-01-08 07:44:32 -05:00
|
|
|
autoload :Env, 'qa/runtime/env'
|
2018-01-23 05:23:23 -05:00
|
|
|
autoload :Address, 'qa/runtime/address'
|
|
|
|
autoload :API, 'qa/runtime/api'
|
2017-02-20 06:45:04 -05:00
|
|
|
end
|
|
|
|
|
2017-12-13 09:21:28 -05:00
|
|
|
##
|
|
|
|
# GitLab QA fabrication mechanisms
|
|
|
|
#
|
|
|
|
module Factory
|
|
|
|
autoload :Base, 'qa/factory/base'
|
2017-12-21 04:38:06 -05:00
|
|
|
autoload :Dependency, 'qa/factory/dependency'
|
|
|
|
autoload :Product, 'qa/factory/product'
|
2017-12-13 09:21:28 -05:00
|
|
|
|
|
|
|
module Resource
|
|
|
|
autoload :Sandbox, 'qa/factory/resource/sandbox'
|
|
|
|
autoload :Group, 'qa/factory/resource/group'
|
|
|
|
autoload :Project, 'qa/factory/resource/project'
|
2017-12-29 03:35:54 -05:00
|
|
|
autoload :DeployKey, 'qa/factory/resource/deploy_key'
|
2018-01-23 05:23:23 -05:00
|
|
|
autoload :PersonalAccessToken, 'qa/factory/resource/personal_access_token'
|
2017-12-13 09:21:28 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
module Repository
|
|
|
|
autoload :Push, 'qa/factory/repository/push'
|
|
|
|
end
|
|
|
|
|
|
|
|
module Settings
|
|
|
|
autoload :HashedStorage, 'qa/factory/settings/hashed_storage'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-02-20 06:45:04 -05:00
|
|
|
##
|
|
|
|
# GitLab QA Scenarios
|
|
|
|
#
|
|
|
|
module Scenario
|
|
|
|
##
|
|
|
|
# Support files
|
|
|
|
#
|
2017-11-09 06:53:57 -05:00
|
|
|
autoload :Bootable, 'qa/scenario/bootable'
|
2017-02-20 06:45:04 -05:00
|
|
|
autoload :Actable, 'qa/scenario/actable'
|
2017-10-11 10:19:24 -04:00
|
|
|
autoload :Entrypoint, 'qa/scenario/entrypoint'
|
2017-02-20 06:45:04 -05:00
|
|
|
autoload :Template, 'qa/scenario/template'
|
|
|
|
|
|
|
|
##
|
|
|
|
# Test scenario entrypoints.
|
|
|
|
#
|
|
|
|
module Test
|
|
|
|
autoload :Instance, 'qa/scenario/test/instance'
|
2017-10-11 10:19:24 -04:00
|
|
|
|
|
|
|
module Integration
|
|
|
|
autoload :Mattermost, 'qa/scenario/test/integration/mattermost'
|
|
|
|
end
|
2017-12-22 05:51:25 -05:00
|
|
|
|
|
|
|
module Sanity
|
|
|
|
autoload :Selectors, 'qa/scenario/test/sanity/selectors'
|
|
|
|
end
|
2017-02-20 06:45:04 -05:00
|
|
|
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'
|
2017-12-22 05:54:08 -05:00
|
|
|
autoload :View, 'qa/page/view'
|
|
|
|
autoload :Element, 'qa/page/element'
|
2018-01-09 05:28:14 -05:00
|
|
|
autoload :Validator, 'qa/page/validator'
|
2017-02-20 06:45:04 -05:00
|
|
|
|
|
|
|
module Main
|
2017-11-08 13:10:47 -05:00
|
|
|
autoload :Login, 'qa/page/main/login'
|
2017-11-20 07:21:56 -05:00
|
|
|
autoload :OAuth, 'qa/page/main/oauth'
|
2017-07-21 06:10:54 -04:00
|
|
|
end
|
|
|
|
|
2017-12-29 02:19:58 -05:00
|
|
|
module Menu
|
2018-01-02 09:09:43 -05:00
|
|
|
autoload :Main, 'qa/page/menu/main'
|
2017-12-29 02:19:58 -05:00
|
|
|
autoload :Side, 'qa/page/menu/side'
|
2018-01-02 09:09:43 -05:00
|
|
|
autoload :Admin, 'qa/page/menu/admin'
|
2018-01-23 05:23:23 -05:00
|
|
|
autoload :Profile, 'qa/page/menu/profile'
|
2017-12-29 02:19:58 -05:00
|
|
|
end
|
|
|
|
|
2017-07-21 06:10:54 -04:00
|
|
|
module Dashboard
|
2017-11-20 07:21:56 -05:00
|
|
|
autoload :Projects, 'qa/page/dashboard/projects'
|
2017-07-21 06:10:54 -04:00
|
|
|
autoload :Groups, 'qa/page/dashboard/groups'
|
|
|
|
end
|
|
|
|
|
|
|
|
module Group
|
2017-10-06 09:17:25 -04:00
|
|
|
autoload :New, 'qa/page/group/new'
|
2017-07-21 06:10:54 -04:00
|
|
|
autoload :Show, 'qa/page/group/show'
|
2017-02-20 06:45:04 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
module Project
|
|
|
|
autoload :New, 'qa/page/project/new'
|
|
|
|
autoload :Show, 'qa/page/project/show'
|
2017-12-21 14:04:25 -05:00
|
|
|
|
|
|
|
module Settings
|
2017-12-29 09:40:47 -05:00
|
|
|
autoload :Common, 'qa/page/project/settings/common'
|
2017-12-21 14:04:25 -05:00
|
|
|
autoload :Repository, 'qa/page/project/settings/repository'
|
2017-12-28 07:50:22 -05:00
|
|
|
autoload :DeployKeys, 'qa/page/project/settings/deploy_keys'
|
2017-12-21 14:04:25 -05:00
|
|
|
end
|
2017-02-20 06:45:04 -05:00
|
|
|
end
|
|
|
|
|
2018-01-23 05:23:23 -05:00
|
|
|
module Profile
|
|
|
|
autoload :PersonalAccessTokens, 'qa/page/profile/personal_access_tokens'
|
|
|
|
end
|
|
|
|
|
2017-02-20 06:45:04 -05:00
|
|
|
module Admin
|
2017-11-20 07:21:56 -05:00
|
|
|
autoload :Settings, 'qa/page/admin/settings'
|
2017-02-20 06:45:04 -05:00
|
|
|
end
|
2017-10-25 00:55:42 -04:00
|
|
|
|
|
|
|
module Mattermost
|
|
|
|
autoload :Main, 'qa/page/mattermost/main'
|
|
|
|
autoload :Login, 'qa/page/mattermost/login'
|
|
|
|
end
|
2017-02-20 06:45:04 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
##
|
|
|
|
# Classes describing operations on Git repositories.
|
|
|
|
#
|
|
|
|
module Git
|
|
|
|
autoload :Repository, 'qa/git/repository'
|
|
|
|
end
|
|
|
|
|
2017-11-20 07:21:56 -05:00
|
|
|
##
|
|
|
|
# Classes describing shell interaction with GitLab
|
|
|
|
#
|
|
|
|
module Shell
|
|
|
|
autoload :Omnibus, 'qa/shell/omnibus'
|
|
|
|
end
|
|
|
|
|
2017-02-20 06:45:04 -05:00
|
|
|
##
|
|
|
|
# Classes that make it possible to execute features tests.
|
|
|
|
#
|
|
|
|
module Specs
|
|
|
|
autoload :Config, 'qa/specs/config'
|
|
|
|
autoload :Runner, 'qa/specs/runner'
|
|
|
|
end
|
|
|
|
end
|
2017-03-09 06:18:55 -05:00
|
|
|
|
2017-03-13 08:54:33 -04:00
|
|
|
QA::Runtime::Release.extend_autoloads!
|