Welcome to mirror list, hosted at ThFree Co, Russian Federation.

testGeneric.php « selenium « tests « php « frontends - github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 314f487291fde1c1bc8c11beec29b875848928e3 (plain)
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
<?php
/*
** Zabbix
** Copyright (C) 2001-2019 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/CLegacyWebTest.php';

class testGeneric extends CLegacyWebTest {

	public static function provider() {
		return [
			// monitoring
			['zabbix.php?action=dashboard.view',					'Dashboard'],

			['overview.php',												'Overview [refreshed every 30 sec.]'],
			['overview.php?form_refresh=1&groupid=0&type=0&view_style=0',	'Overview [refreshed every 30 sec.]'],

			['overview.php?form_refresh=1&groupid=0&type=0&view_style=1',	'Overview [refreshed every 30 sec.]'],
			['overview.php?form_refresh=1&groupid=0&type=1&view_style=0',	'Overview [refreshed every 30 sec.]'],
			['overview.php?form_refresh=1&groupid=0&type=1&view_style=1',	'Overview [refreshed every 30 sec.]'],

			['zabbix.php?action=web.view',					'Web monitoring'],
			['latest.php',						'Latest data [refreshed every 30 sec.]'],

			['zabbix.php?action=problem.view',	'Problems'],

			['charts.php',						'Custom graphs [refreshed every 30 sec.]'],
			['screens.php',					'Configuration of screens'],
			['slides.php',						'Configuration of slide shows'],
			['zabbix.php?action=map.view',							'Configuration of network maps'],
			['zabbix.php?action=discovery.view',					'Status of discovery'],
			['srv_status.php',					'Services [refreshed every 30 sec.]'],

			// inventory
			['hostinventoriesoverview.php',	'Host inventory overview'],
			['hostinventories.php',			'Host inventory'],

			// reports
			['zabbix.php?action=report.status',					'System information'],
			['report2.php',										'Availability report'],
			['toptriggers.php',									'100 busiest triggers'],
			['toptriggers.php?severities[0]=0&filter_set=Filter',	'100 busiest triggers'],
			['toptriggers.php?severities[1]=1&filter_set=Filter',	'100 busiest triggers'],
			['toptriggers.php?severities[2]=2&filter_set=Filter',	'100 busiest triggers'],
			['toptriggers.php?severities[3]=3&filter_set=Filter',	'100 busiest triggers'],
			['toptriggers.php?severities[4]=4&filter_set=Filter',	'100 busiest triggers'],
			['toptriggers.php?severities[5]=5&filter_set=Filter',	'100 busiest triggers'],

			// configuration
			['hostgroups.php',					'Configuration of host groups'],
			['templates.php',					'Configuration of templates'],
			['hosts.php',						'Configuration of hosts'],
			['maintenance.php',				'Configuration of maintenance periods'],
			['httpconf.php',					'Configuration of web monitoring'],

			['actionconf.php',					'Configuration of actions'],
			['actionconf.php?eventsource=0',	'Configuration of actions'],
			['actionconf.php?eventsource=1',	'Configuration of actions'],
			['actionconf.php?eventsource=2',	'Configuration of actions'],
			['actionconf.php?eventsource=3',	'Configuration of actions'],

			['screenconf.php',					'Configuration of screens'],
			['slideconf.php',					'Configuration of slide shows'],
			['sysmaps.php',					'Configuration of network maps'],
			['discoveryconf.php',				'Configuration of discovery rules'],
			['services.php',					'Configuration of services'],

			// Administration
			['adm.gui.php',					'Configuration of GUI'],
			['adm.housekeeper.php',			'Configuration of housekeeping'],
			['adm.images.php',					'Configuration of images'],
			['adm.iconmapping.php',			'Configuration of icon mapping'],
			['adm.regexps.php',				'Configuration of regular expressions'],
			['adm.macros.php',					'Configuration of macros'],
			['adm.valuemapping.php',			'Configuration of value mapping'],
			['adm.workingtime.php',			'Configuration of working time'],
			['adm.triggerseverities.php',		'Configuration of trigger severities'],
			['adm.triggerdisplayoptions.php',	'Configuration of trigger displaying options'],
			['adm.other.php',					'Other configuration parameters'],

			['zabbix.php?action=proxy.list',						'Configuration of proxies'],
			['zabbix.php?action=authentication.edit',				'Configuration of authentication'],
			['usergrps.php',					'Configuration of user groups'],
			['users.php',						'Configuration of users'],
			['zabbix.php?action=mediatype.list',					'Configuration of media types'],
			['zabbix.php?action=script.list',						'Configuration of scripts'],
			['auditlogs.php',					'Audit log'],
			['auditacts.php',					'Action log'],

			['queue.php',						'Queue [refreshed every 30 sec.]'],
			['queue.php?config=0',				'Queue [refreshed every 30 sec.]'],
			['queue.php?config=1',				'Queue [refreshed every 30 sec.]'],
			['queue.php?config=2',				'Queue [refreshed every 30 sec.]'],

			['report4.php',					'Notification report'],
			['report4.php?period=daily',		'Notification report'],
			['report4.php?period=weekly',		'Notification report'],
			['report4.php?period=monthly',		'Notification report'],
			['report4.php?period=yearly',		'Notification report'],

			// Misc
			['zabbix.php?action=search&search=server',		'Search'],
			['profile.php',					'User profile']
		];
	}

	/**
	* @dataProvider provider
	*/
	public function testGeneric_Pages($url, $title) {
		$this->zbxTestLogin($url);
		$this->zbxTestCheckTitle($title);
		$this->zbxTestCheckFatalErrors();
		$this->zbxTestCheckMandatoryStrings();
	}
}