From 67ef1dc1867e73b9ab62ebfe793db16228abf4ae Mon Sep 17 00:00:00 2001 From: cesar991 Date: Mon, 11 Jul 2016 13:06:23 +0200 Subject: [PATCH] Add PAN7.py --- tests/console/PAN7.py | 44 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 tests/console/PAN7.py diff --git a/tests/console/PAN7.py b/tests/console/PAN7.py new file mode 100644 index 0000000000..be2f9ef1f7 --- /dev/null +++ b/tests/console/PAN7.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +from include.common_classes_60 import PandoraWebDriverTestCase +from include.common_functions_60 import login, logout, click_menu_element, detect_and_pass_all_wizards, activate_home_screen +from selenium import webdriver +from selenium.webdriver.common.by import By +from selenium.webdriver.common.keys import Keys +from selenium.webdriver.support.ui import Select +from selenium.common.exceptions import NoSuchElementException +from selenium.common.exceptions import NoAlertPresentException +import unittest, time, re + +class PAN7(PandoraWebDriverTestCase): + + test_name = u'PAN_7' + test_description = u'Modify home screen, and check that change is correct. Return this change' + tickets_associated = [] + + def test_pan7(self): + + driver = self.driver + login(driver) + detect_and_pass_all_wizards(driver) + + activate_home_screen(driver,"Event list") + + logout(driver,self.base_url) + login(driver) + + try: + + self.assertEqual("Event control filter" in driver.page_source,True) + + except AssertionError as e: + + self.verificationErrors.append(str(e)) + + #Return this change + + activate_home_screen(driver,"Default") + + +if __name__ == "__main__": + unittest.main() +