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
|
<?php
/*
** Zabbix
** Copyright (C) 2001-2014 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program 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 General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
require_once dirname(__FILE__).'/../include/class.cwebtest.php';
class testGeneric extends CWebTest {
public static function provider() {
return array(
// monitoring
array('dashboard.php', 'Dashboard'),
array('dashconf.php', 'Dashboard configuration'),
array('overview.php', 'Overview \[refreshed every 30 sec.\]'),
array('overview.php?form_refresh=1&groupid=0&type=0&view_style=0', 'Overview \[refreshed every 30 sec.\]'),
array('overview.php?form_refresh=1&groupid=0&type=0&view_style=1', 'Overview \[refreshed every 30 sec.\]'),
array('overview.php?form_refresh=1&groupid=0&type=1&view_style=0', 'Overview \[refreshed every 30 sec.\]'),
array('overview.php?form_refresh=1&groupid=0&type=1&view_style=1', 'Overview \[refreshed every 30 sec.\]'),
array('httpmon.php', 'Status of Web monitoring \[refreshed every 30 sec.\]'),
array('latest.php', 'Latest data \[refreshed every 30 sec.\]'),
array('tr_status.php', 'Status of triggers \[refreshed every 30 sec.\]'),
array('events.php', 'Latest events \[refreshed every 30 sec.\]'),
array('events.php?source=0', 'Latest events \[refreshed every 30 sec.\]'),
array('events.php?source=1', 'Latest events \[refreshed every 30 sec.\]'),
array('charts.php', 'Custom graphs \[refreshed every 30 sec.\]'),
array('screens.php', 'Custom screens \[refreshed every 30 sec.\]'),
array('slides.php', 'Custom slides \[refreshed every 30 sec.\]'),
array('maps.php', 'Network maps \[refreshed every 30 sec.\]'),
array('discovery.php', 'Status of discovery'),
array('srv_status.php', 'IT services \[refreshed every 30 sec.\]'),
// inventory
array('hostinventoriesoverview.php', 'Host inventory overview'),
array('hostinventories.php', 'Host inventory'),
// reports
array('report1.php', 'Status of Zabbix'),
array('report2.php', 'Availability report'),
array('report5.php', 'Most busy triggers top 100'),
array('report5.php?period=day', 'Most busy triggers top 100'),
array('report5.php?period=week', 'Most busy triggers top 100'),
array('report5.php?period=month', 'Most busy triggers top 100'),
array('report5.php?period=year', 'Most busy triggers top 100'),
array('report6.php', 'Bar reports'),
// configuration
array('hostgroups.php', 'Configuration of host groups'),
array('templates.php', 'Configuration of templates'),
array('hosts.php', 'Configuration of hosts'),
array('maintenance.php', 'Configuration of maintenance'),
array('httpconf.php', 'Configuration of web monitoring'),
array('actionconf.php', 'Configuration of actions'),
array('actionconf.php?eventsource=0', 'Configuration of actions'),
array('actionconf.php?eventsource=1', 'Configuration of actions'),
array('actionconf.php?eventsource=2', 'Configuration of actions'),
array('actionconf.php?eventsource=3', 'Configuration of actions'),
array('screenconf.php', 'Configuration of screens'),
array('slideconf.php', 'Configuration of slide shows'),
array('sysmaps.php', 'Configuration of network maps'),
array('discoveryconf.php', 'Configuration of discovery'),
array('services.php', 'Configuration of IT services'),
// Administration
array('adm.gui.php', 'Configuration of GUI'),
array('adm.housekeeper.php', 'Configuration of housekeeping'),
array('adm.images.php', 'Configuration of images'),
array('adm.iconmapping.php', 'Configuration of icon mapping'),
array('adm.regexps.php', 'Configuration of regular expressions'),
array('adm.macros.php', 'Configuration of macros'),
array('adm.valuemapping.php', 'Configuration of value mapping'),
array('adm.workingtime.php', 'Configuration of working time'),
array('adm.triggerseverities.php', 'Configuration of trigger severities'),
array('adm.triggerdisplayoptions.php', 'Configuration of trigger displaying options'),
array('adm.other.php', 'Other configuration parameters'),
array('proxies.php', 'Configuration of proxies'),
array('authentication.php', 'Configuration of authentication'),
array('usergrps.php', 'Configuration of user groups'),
array('users.php', 'Configuration of users'),
array('media_types.php', 'Configuration of media types'),
array('scripts.php', 'Configuration of scripts'),
array('auditlogs.php', 'Audit logs'),
array('auditacts.php', 'Audit actions'),
array('queue.php', 'Queue \[refreshed every 30 sec.\]'),
array('queue.php?config=0', 'Queue \[refreshed every 30 sec.\]'),
array('queue.php?config=1', 'Queue \[refreshed every 30 sec.\]'),
array('queue.php?config=2', 'Queue \[refreshed every 30 sec.\]'),
array('report4.php', 'Notification report'),
array('report4.php?period=daily', 'Notification report'),
array('report4.php?period=weekly', 'Notification report'),
array('report4.php?period=monthly', 'Notification report'),
array('report4.php?period=yearly', 'Notification report'),
// Misc
array('search.php?search=server', 'Search'),
array('profile.php', 'User profile')
);
}
/**
* @dataProvider provider
*/
public function testGeneric_Pages($a, $b) {
$this->zbxTestLogin($a);
$this->zbxTestCheckTitle($b);
$this->zbxTestCheckFatalErrors();
$this->zbxTestCheckMandatoryStrings();
}
}
|