zbxTestLogin('history.php?action=showvalues&itemids[]='.$item['itemid']); $this->zbxTestCheckTitle('History [refreshed every 30 sec.]'); $this->zbxTestCheckHeader('testPageHistory_CheckLayout: '.$item['name']); switch ($item['value_type']) { case ITEM_VALUE_TYPE_LOG: if (substr($item['key_'], 0, 9) === 'eventlog[') { $table_titles = ['Timestamp', 'Local time', 'Source', 'Severity', 'Event ID', 'Value']; } else { $table_titles = ['Timestamp', 'Local time', 'Value']; } break; default: $table_titles = ['Timestamp', 'Value']; } $this->zbxTestTextPresent($table_titles); $view_as = $this->query('id:filter-view-as')->asDropdown()->one(); $view_as->select('500 latest values'); $this->zbxTestCheckTitle('History [refreshed every 30 sec.]'); $this->zbxTestCheckHeader('testPageHistory_CheckLayout: '.$item['name']); $this->zbxTestClickWait('plaintext'); $this->zbxTestTextPresent('testPageHistory_CheckLayout: '.$item['name']); $this->zbxTestOpen('history.php?action=showvalues&itemids[]='.$item['itemid']); $this->zbxTestCheckTitle('History [refreshed every 30 sec.]'); $view_as->select('Values'); $this->zbxTestCheckHeader('testPageHistory_CheckLayout: '.$item['name']); $this->zbxTestClickWait('plaintext'); $this->zbxTestTextPresent('testPageHistory_CheckLayout: '.$item['name']); } }