This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
/
TestPlan.java
212 lines (191 loc) · 6.68 KB
/
TestPlan.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
/*
* Copyright 2013, Red Hat, Inc. and individual contributors as indicated by the
* @author tags. See the copyright.txt file in the distribution for a full
* listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This software is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this software; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF
* site: http://www.fsf.org.
*/
package org.zanata.feature.testharness;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.zanata.feature.account.*;
import org.zanata.feature.administration.*;
import org.zanata.feature.clientserver.*;
import org.zanata.feature.concurrentedit.*;
import org.zanata.feature.dashboard.DashboardTest;
import org.zanata.feature.document.HTMLDocumentTypeTest;
import org.zanata.feature.document.UploadTest;
import org.zanata.feature.editor.*;
import org.zanata.feature.infrastructure.RetryRuleTest;
import org.zanata.feature.language.AddLanguageTest;
import org.zanata.feature.language.JoinLanguageTeamTest;
import org.zanata.feature.misc.*;
import org.zanata.feature.project.*;
import org.zanata.feature.projectversion.*;
import org.zanata.feature.search.ProjectSearchTest;
import org.zanata.feature.security.SecurityFullTest;
import org.zanata.feature.versionGroup.*;
/**
* The Zanata feature test list and suite interface.<br/>
*
* Lists the available test cases and can be extended for the purpose of
* running categorised test collections.
* @author Damian Jansen
* <a href="mailto:djansen@redhat.com">djansen@redhat.com</a>
* @see "http://junit.org/javadoc/4.9/org/junit/experimental/categories/Categories.html"
* @see "https://github.com/zanata/zanata-server/wiki/WebDriver-Automated-Tests"
* @see "https://github.com/zanata/zanata-server/wiki/Writing-WebDriver-Tests"
*/
@RunWith(Suite.class)
@Suite.SuiteClasses({
/*
* Account
* The user account and management of, such as registration and
* password changing
*/
ChangePasswordTest.class,
InactiveUserLoginTest.class,
InvalidEmailAddressTest.class,
ProfileTest.class,
RegisterTest.class,
UsernameValidationTest.class,
ValidEmailAddressTest.class,
/*
* Administration
* The actions of an administrator, such as editing users and
* translation memory sets
*/
EditHomePageTest.class,
EditTranslationMemoryTest.class,
EditTranslationMemoryTest.class,
ManageSearchTest.class,
ManageUsersTest.class,
/* Client-Server
* Usage of the mvn client
*/
GettextPluralSupportTest.class,
ProjectMaintainerTest.class,
PropertiesRoundTripTest.class,
/*
* Concurrent Edit
* Multiple user access to an editor instance
*/
ConcurrentAccessTest.class,
ConcurrentEditTest.class,
/*
* Dashboard
* User dashboard testing
*/
DashboardTest.class,
/*
* Document
* Source document upload and management
*/
HTMLDocumentTypeTest.class,
UploadTest.class,
/*
* Editor
* Translation editor general features
*/
TranslateHTMLTest.class,
TranslateIdmlTest.class,
TranslateOdsTest.class,
TranslateOpenOfficeTest.class,
TranslateTextTest.class,
/*
* Infrastructure
* Test infrastructure validation
*/
RetryRuleTest.class,
/*
* Language
* Participation in an management of language teams
*/
AddLanguageTest.class,
JoinLanguageTeamTest.class,
/*
* Miscellaneous
* Tests that don't fit into the other packages
*/
ContactAdminTest.class,
ObsoleteTextTest.class,
RateLimitRestAndUITest.class,
/*
* Project
* Creation and management of Projects
*/
CreateProjectTest.class,
EditPermissionsTest.class,
EditProjectAboutTest.class,
EditProjectGeneralTest.class,
EditProjectLanguagesTest.class,
EditProjectValidationsTest.class,
/*
* Project Version
* Creation and management of Project Versions
*/
CreateProjectVersionTest.class,
EditVersionLanguagesTest.class,
EditVersionValidationsTest.class,
VersionFilteringTest.class,
/*
* Search
* Search bar functionality
*/
ProjectSearchTest.class,
/*
* Security
* Login/logout and access rights
*/
SecurityFullTest.class,
/*
* Version Groups
* Creation and management of Version Groups
*/
VersionGroupTest.class,
VersionGroupIDValidationTest.class,
VersionGroupUrlTest.class
})
public class TestPlan {
/**
* Interface for the execution of the Basic Acceptance Tests (BAT) category.
*
* Tests in this category exercise features only so far as to demonstrate
* that the feature works, and perhaps have a single handled negative case.
* BAT suites should not exceed an agreed interval, e.g. approximately
* 10 minutes, in order to maintain a positive GitHub workflow.
* Tests in this category provide a "review readiness" status for Github
* Pull Requests, and must pass for said request to be accepted and merged.
*/
public interface BasicAcceptanceTest {}
/**
* Interface for the execution of the Detailed Tests category.
*
* Tests that fall under this category exercise features more so than the
* Basic Acceptance Tests (BAT), and form part of the Release Candidate
* acceptance criteria.
*/
public interface DetailedTest {}
/**
* Interface for the execution of the Unstable Test category.
*
* Tests in this category may encounter execution problems, for various
* reasons such as:<br/>
* - Relying on external interfaces (e.g. Google, Fedora, OpenShift)
* - Timeout/performance problems
*/
public interface UnstableTest {}
}