|
32 | 32 | /** |
33 | 33 | * supported document formats (value = localization ID) |
34 | 34 | */ |
35 | | -$tlCfg->reports_formats = array( |
| 35 | +$tlCfg->reports_formats = [ |
36 | 36 | FORMAT_HTML => 'format_html', |
37 | 37 | FORMAT_MSWORD => 'format_pseudo_msword', |
38 | 38 | FORMAT_MAIL_HTML => 'format_mail_html' |
39 | | -); |
| 39 | +]; |
40 | 40 |
|
41 | 41 | /** |
42 | 42 | * Mime Content Type |
43 | 43 | */ |
44 | | -$tlCfg->reports_applications = array( |
| 44 | +$tlCfg->reports_applications = [ |
45 | 45 | FORMAT_HTML => 'text/html', |
46 | 46 | FORMAT_XLS => 'application/vnd.ms-excel', |
47 | 47 | FORMAT_MSWORD => 'application/vnd.ms-word' |
48 | | -); |
| 48 | +]; |
49 | 49 |
|
50 | 50 | /** |
51 | 51 | * Report file extenssion |
52 | 52 | */ |
53 | | -$tlCfg->reports_file_extension = array( |
| 53 | +$tlCfg->reports_file_extension = [ |
54 | 54 | FORMAT_HTML => 'html', |
55 | 55 | FORMAT_XLS => 'xls', |
56 | 56 | FORMAT_MSWORD => 'doc' |
57 | | -); |
| 57 | +]; |
58 | 58 |
|
59 | 59 | /** |
60 | 60 | * |
|
66 | 66 | * 2. bts (if bug tracker is connected only), |
67 | 67 | * 3. req (if project has available requirements only) |
68 | 68 | */ |
69 | | -$tlCfg->reports_list['test_plan'] = array( |
| 69 | +$tlCfg->reports_list['test_plan'] = [ |
70 | 70 | 'title' => 'link_report_test_plan', |
71 | 71 | 'url' => 'lib/results/printDocOptions.php?type=' . DOC_TEST_PLAN_DESIGN, |
72 | 72 | 'enabled' => 'all', |
73 | 73 | 'directLink' => '%slnl.php?apikey=%s&tproject_id=%s&tplan_id=%s&type=test_plan', |
74 | 74 | 'format' => 'format_html,format_pseudo_msword' |
75 | | -); |
76 | | -$tlCfg->reports_list['test_report'] = array( |
| 75 | +]; |
| 76 | +$tlCfg->reports_list['test_report'] = [ |
77 | 77 | 'title' => 'link_report_test_report', |
78 | 78 | 'url' => 'lib/results/printDocOptions.php?type=' . DOC_TEST_PLAN_EXECUTION, |
79 | 79 | 'enabled' => 'all', |
80 | 80 | 'directLink' => '%slnl.php?apikey=%s&tproject_id=%s&tplan_id=%s&type=test_report', |
81 | 81 | 'format' => 'format_html,format_pseudo_msword' |
82 | | -); |
| 82 | +]; |
83 | 83 |
|
84 | | -$tlCfg->reports_list['test_report_on_build'] = array( |
| 84 | +$tlCfg->reports_list['test_report_on_build'] = [ |
85 | 85 | 'title' => 'link_report_test_report_on_build', |
86 | 86 | 'url' => 'lib/results/printDocOptions.php?type=' . |
87 | 87 | DOC_TEST_PLAN_EXECUTION_ON_BUILD, |
88 | 88 | 'enabled' => 'all', |
89 | 89 | 'format' => 'format_html,format_pseudo_msword' |
90 | | -); |
| 90 | +]; |
91 | 91 |
|
92 | | -$tlCfg->reports_list['metrics_tp_general'] = array( |
| 92 | +$tlCfg->reports_list['metrics_tp_general'] = [ |
93 | 93 | 'title' => 'link_report_general_tp_metrics', |
94 | 94 | 'url' => 'lib/results/resultsGeneral.php', |
95 | 95 | 'enabled' => 'all', |
96 | 96 | 'directLink' => '%slnl.php?apikey=%s&tproject_id=%s&tplan_id=%s&format=0&type=metrics_tp_general', |
97 | 97 | 'format' => 'format_html,format_pseudo_ods' |
98 | | -); |
| 98 | +]; |
99 | 99 |
|
100 | | -$tlCfg->reports_list['report_by_tsuite'] = array( |
| 100 | +$tlCfg->reports_list['report_by_tsuite'] = [ |
101 | 101 | 'title' => 'link_report_by_tsuite', |
102 | 102 | 'url' => 'lib/results/resultsByTSuite.php', |
103 | 103 | 'enabled' => 'all', |
104 | 104 | 'directLink' => '%slnl.php?apikey=%s&tproject_id=%s&tplan_id=%s&format=0&type=report_by_tsuite', |
105 | 105 | 'format' => 'format_html' |
106 | | -); |
| 106 | +]; |
107 | 107 |
|
108 | | -$tlCfg->reports_list['baseline_l1l2'] = array( |
| 108 | +$tlCfg->reports_list['baseline_l1l2'] = [ |
109 | 109 | 'title' => 'baseline_l1l2', |
110 | 110 | 'url' => 'lib/results/baselinel1l2.php', |
111 | 111 | 'enabled' => 'all', |
112 | 112 | 'directLink' => '%slnl.php?apikey=%s&tproject_id=%s&tplan_id=%s&format=0' . |
113 | 113 | '&type=baseline_l1l2', |
114 | 114 | 'format' => 'format_html' |
115 | | -); |
| 115 | +]; |
116 | 116 |
|
117 | | -$tlCfg->reports_list['results_by_tester_per_build'] = array( |
| 117 | +$tlCfg->reports_list['results_by_tester_per_build'] = [ |
118 | 118 | 'title' => 'link_report_by_tester_per_build', |
119 | 119 | 'url' => 'lib/results/resultsByTesterPerBuild.php', |
120 | 120 | 'enabled' => 'all', |
121 | 121 | 'directLink' => '%slnl.php?apikey=%s&tproject_id=%s&tplan_id=%s&format=0&type=results_by_tester_per_build', |
122 | 122 | 'format' => 'format_html' |
123 | | -); |
| 123 | +]; |
124 | 124 |
|
125 | | -$tlCfg->reports_list['assigned_tc_overview'] = array( |
| 125 | +$tlCfg->reports_list['assigned_tc_overview'] = [ |
126 | 126 | 'title' => 'link_assigned_tc_overview', |
127 | 127 | 'url' => 'lib/testcases/tcAssignedToUser.php?show_all_users=1&show_inactive_and_closed=1', |
128 | 128 | 'enabled' => 'all', |
129 | 129 | 'directLink' => '', |
130 | 130 | 'format' => 'format_html' |
131 | | -); |
| 131 | +]; |
132 | 132 |
|
133 | 133 | // will be released in future because refactoring is not completed |
134 | 134 | // $tlCfg->reports_list['results_custom_query'] = array( |
|
137 | 137 | // 'enabled' => 'all', 'directLink' => '', |
138 | 138 | // 'format' => 'format_html,format_ods,format_xls,format_mail_html' |
139 | 139 | // ); |
140 | | -$tlCfg->reports_list['results_matrix'] = array( |
| 140 | +$tlCfg->reports_list['results_matrix'] = [ |
141 | 141 | 'title' => 'link_report_test', |
142 | 142 | 'url' => 'lib/results/resultsTC.php', |
143 | 143 | 'enabled' => 'all', |
144 | 144 | 'directLink' => '%slnl.php?apikey=%s&tproject_id=%s&tplan_id=%s&type=results_matrix', |
145 | 145 | 'format' => 'format_html,format_pseudo_ods' |
146 | | -); |
| 146 | +]; |
147 | 147 |
|
148 | | -$tlCfg->reports_list['results_flat'] = array( |
| 148 | +$tlCfg->reports_list['results_flat'] = [ |
149 | 149 | 'title' => 'link_report_test_flat', |
150 | 150 | 'url' => 'lib/results/resultsTCFlat.php', |
151 | 151 | 'enabled' => 'all', |
152 | 152 | 'directLink' => '%slnl.php?apikey=%s&tproject_id=%s&tplan_id=%s&type=results_flat', |
153 | 153 | 'format' => 'format_html,format_mail_html' |
154 | | -); |
| 154 | +]; |
155 | 155 |
|
156 | 156 | /* 20191210 */ |
157 | | -$tlCfg->reports_list['abslatest_results_matrix'] = array( |
| 157 | +$tlCfg->reports_list['abslatest_results_matrix'] = [ |
158 | 158 | 'title' => 'link_report_test_absolute_latest_exec', |
159 | 159 | 'url' => 'lib/results/resultsTCAbsoluteLatest.php', |
160 | 160 | 'enabled' => 'all', |
161 | 161 | 'directLink' => '%slnl.php?apikey=%s&tproject_id=%s&tplan_id=%s&type=results_matrix', |
162 | 162 | 'format' => 'format_html,format_pseudo_ods' |
163 | | -); |
| 163 | +]; |
164 | 164 |
|
165 | | -$tlCfg->reports_list['list_tc_failed'] = array( |
| 165 | +$tlCfg->reports_list['list_tc_failed'] = [ |
166 | 166 | 'title' => 'link_report_failed', |
167 | 167 | 'url' => 'lib/results/resultsByStatus.php?type=' . |
168 | 168 | $tlCfg->results['status_code']['failed'], |
169 | 169 | 'enabled' => 'all', |
170 | 170 | 'directLink' => '%slnl.php?apikey=%s&tproject_id=%s&tplan_id=%s&type=list_tc_failed', |
171 | 171 | 'format' => 'format_html,format_pseudo_ods' |
172 | | -); |
173 | | -$tlCfg->reports_list['list_tc_blocked'] = array( |
| 172 | +]; |
| 173 | +$tlCfg->reports_list['list_tc_blocked'] = [ |
174 | 174 | 'title' => 'link_report_blocked_tcs', |
175 | 175 | 'url' => 'lib/results/resultsByStatus.php?type=' . |
176 | 176 | $tlCfg->results['status_code']['blocked'], |
177 | 177 | 'enabled' => 'all', |
178 | 178 | 'directLink' => '%slnl.php?apikey=%s&tproject_id=%s&tplan_id=%s&type=list_tc_blocked', |
179 | 179 | 'format' => 'format_html,format_pseudo_ods' |
180 | | -); |
| 180 | +]; |
181 | 181 |
|
182 | | -$tlCfg->reports_list['list_tc_not_run'] = array( |
| 182 | +$tlCfg->reports_list['list_tc_not_run'] = [ |
183 | 183 | 'title' => 'link_report_not_run', |
184 | 184 | 'url' => 'lib/results/resultsByStatus.php?type=' . |
185 | 185 | $tlCfg->results['status_code']['not_run'], |
186 | 186 | 'enabled' => 'all', |
187 | 187 | 'directLink' => '%slnl.php?apikey=%s&tproject_id=%s&tplan_id=%s&type=list_tc_not_run', |
188 | 188 | 'format' => 'format_html,format_pseudo_ods', |
189 | | - 'misc' => array( |
| 189 | + 'misc' => [ |
190 | 190 | 'bugs_not_linked' => false |
191 | | - ) |
192 | | -); |
| 191 | + ] |
| 192 | +]; |
193 | 193 |
|
194 | | -$tlCfg->reports_list['never_run'] = array( |
| 194 | +$tlCfg->reports_list['never_run'] = [ |
195 | 195 | 'title' => 'link_report_never_run', |
196 | 196 | 'url' => 'lib/results/neverRunByPP.php', |
197 | 197 | 'enabled' => 'all', |
198 | 198 | 'directLink' => '%slnl.php?apikey=%s&tproject_id=%s&tplan_id=%s&type=never_run', |
199 | 199 | 'format' => 'format_html,format_pseudo_ods', |
200 | | - 'misc' => array( |
| 200 | + 'misc' => [ |
201 | 201 | 'bugs_not_linked' => false |
202 | | - ) |
203 | | -); |
| 202 | + ] |
| 203 | +]; |
204 | 204 |
|
205 | | -$tlCfg->reports_list['tcases_without_tester'] = array( |
| 205 | +$tlCfg->reports_list['tcases_without_tester'] = [ |
206 | 206 | 'title' => 'link_report_tcases_without_tester', |
207 | 207 | 'url' => 'lib/results/testCasesWithoutTester.php', |
208 | 208 | 'enabled' => 'all', |
209 | 209 | 'directLink' => '', |
210 | 210 | 'format' => 'format_html' |
211 | | -); |
212 | | -$tlCfg->reports_list['charts_basic'] = array( |
| 211 | +]; |
| 212 | +$tlCfg->reports_list['charts_basic'] = [ |
213 | 213 | 'title' => 'link_charts', |
214 | 214 | 'url' => 'lib/results/charts.php', |
215 | 215 | 'enabled' => 'all', |
216 | 216 | 'directLink' => '%slnl.php?apikey=%s&tproject_id=%s&tplan_id=%s&type=charts_basic', |
217 | 217 | 'format' => 'format_html' |
218 | | -); |
219 | | -$tlCfg->reports_list['results_requirements'] = array( |
| 218 | +]; |
| 219 | +$tlCfg->reports_list['results_requirements'] = [ |
220 | 220 | 'title' => 'link_report_reqs_coverage', |
221 | 221 | 'url' => 'lib/results/resultsReqs.php', |
222 | 222 | 'enabled' => 'req', |
223 | 223 | 'directLink' => '', |
224 | 224 | 'format' => 'format_html' |
225 | | -); |
| 225 | +]; |
226 | 226 |
|
227 | 227 | // disabled TICKET 37006 - disabled uncovered_testcases report |
228 | 228 | // $tlCfg->reports_list['uncovered_testcases'] = array( |
|
232 | 232 | // 'format' => 'format_html' |
233 | 233 | // ); |
234 | 234 |
|
235 | | -$tlCfg->reports_list['list_problems'] = array( |
| 235 | +$tlCfg->reports_list['list_problems'] = [ |
236 | 236 | 'title' => 'link_report_total_bugs', |
237 | 237 | 'url' => 'lib/results/resultsBugs.php?type=0', |
238 | 238 | 'enabled' => 'bts', |
239 | 239 | 'directLink' => '', |
240 | 240 | 'format' => 'format_html' |
241 | | -); |
| 241 | +]; |
242 | 242 |
|
243 | | -$tlCfg->reports_list['issues_all_exec'] = array( |
| 243 | +$tlCfg->reports_list['issues_all_exec'] = [ |
244 | 244 | 'title' => 'link_report_total_bugs_all_exec', |
245 | 245 | 'url' => 'lib/results/resultsBugs.php?type=1', |
246 | 246 | 'enabled' => 'bts', |
247 | 247 | 'directLink' => '', |
248 | 248 | 'format' => 'format_html' |
249 | | -); |
| 249 | +]; |
250 | 250 |
|
251 | | -$tlCfg->reports_list['tcases_with_cf'] = array( |
| 251 | +$tlCfg->reports_list['tcases_with_cf'] = [ |
252 | 252 | 'title' => 'link_report_tcases_with_cf', |
253 | 253 | 'url' => 'lib/results/testCasesWithCF.php', |
254 | 254 | 'enabled' => 'all', |
255 | 255 | 'directLink' => '', |
256 | 256 | 'format' => 'format_html' |
257 | | -); |
258 | | -$tlCfg->reports_list['tplan_with_cf'] = array( |
| 257 | +]; |
| 258 | +$tlCfg->reports_list['tplan_with_cf'] = [ |
259 | 259 | 'title' => 'link_report_tplans_with_cf', |
260 | 260 | 'url' => 'lib/results/testPlanWithCF.php', |
261 | 261 | 'enabled' => 'all', |
262 | 262 | 'directLink' => '', |
263 | 263 | 'format' => 'format_html' |
264 | | -); |
| 264 | +]; |
265 | 265 |
|
266 | | -$tlCfg->reports_list['free_tcases'] = array( |
| 266 | +$tlCfg->reports_list['free_tcases'] = [ |
267 | 267 | 'title' => 'link_report_free_testcases_on_testproject', |
268 | 268 | 'url' => 'lib/results/freeTestCases.php', |
269 | 269 | 'enabled' => 'all', |
270 | 270 | 'directLink' => '', |
271 | 271 | 'format' => 'format_html' |
272 | | -); |
| 272 | +]; |
273 | 273 |
|
274 | 274 | $report = 'report_exec_timeline'; |
275 | | -$tlCfg->reports_list[$report] = array( |
| 275 | +$tlCfg->reports_list[$report] = [ |
276 | 276 | 'title' => 'link_report_exec_timeline', |
277 | 277 | 'url' => 'lib/results/execTimelineStats.php', |
278 | 278 | 'enabled' => 'all', |
279 | 279 | 'directLink' => '%slnl.php?apikey=%s&tproject_id=%s&tplan_id=%s&format=0' . |
280 | 280 | '&type=' . $report, |
281 | 281 | 'format' => 'format_html' |
282 | | -); |
| 282 | +]; |
283 | 283 |
|
284 | 284 | // Add custom configuration |
285 | 285 | clearstatcache(); |
|
0 commit comments