require_once dirname(__FILE__).'/../include/CWebTest.php';
require_once dirname(__FILE__).'/behaviors/CMessageBehavior.php';
require_once dirname(__FILE__).'/behaviors/CTableBehavior.php';
class testPageAdministrationGeneralModules extends CWebTest {
public function getBehaviors() {
private static $dashboardid;
private static $template_dashboardid;
const TEMPLATEID = 50000;
const INACCESSIBLE_TEXT = 'No permissions to referred object or it does not exist!';
const INACCESSIBLE_XPATH = 'xpath:.//div[contains(@class, "dashboard-widget-inaccessible")]';
const HOSTNAME = 'Host for widget module test';
private static $widget_descriptions = [
'Action log' => 'Displays records about executed action operations (notifications, remote commands).',
'Clock' => 'Displays local, server, or specified host time.',
'Data overview' => 'Displays the latest item data and current status of each item for selected hosts.',
'Discovery status' => 'Displays the status summary of the active network discovery rules.',
'Favorite graphs' => 'Displays shortcuts to the most needed graphs (marked as favorite).',
'Favorite maps' => 'Displays shortcuts to the most needed network maps (marked as favorite).',
'Gauge' => 'Displays the value of a single item as gauge.',
'Geomap' => 'Displays hosts as markers on a geographical map.',
'Graph' => 'Displays data of up to 50 items as line, points, staircase, or bar charts.',