From d0b32d8eb052c02626914755633a4083bbd389e9 Mon Sep 17 00:00:00 2001 From: cesar991 Date: Tue, 16 Aug 2016 17:04:12 +0200 Subject: [PATCH] Moving forward to 2.0 Framework --- tests/console/{PAN5.py => Misk.py} | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) rename tests/console/{PAN5.py => Misk.py} (84%) diff --git a/tests/console/PAN5.py b/tests/console/Misk.py similarity index 84% rename from tests/console/PAN5.py rename to tests/console/Misk.py index 72aef2918d..9109d91f27 100644 --- a/tests/console/PAN5.py +++ b/tests/console/Misk.py @@ -15,13 +15,17 @@ from selenium.common.exceptions import NoAlertPresentException from selenium.webdriver.remote.webelement import WebElement import unittest, time, re -class PAN5(PandoraWebDriverTestCase): +class Miscellaneous (PandoraWebDriverTestCase): - test_name = u'PAN_5' - test_description = u'Creates an agent and a module with japanese characters and test if the event list show the characters properly' + test_name = u'Miscellaneous' tickets_associated = [] - def test_pan5(self): + def test_japanese_characters(self): + + u""" + Creates an agent and a module with japanese characters and test if the event list show the characters properly + """ + driver = self.driver self.login() detect_and_pass_all_wizards(driver) @@ -59,16 +63,8 @@ class PAN5(PandoraWebDriverTestCase): driver.find_element_by_id("submit-update").click() #Check that there are japanese characters present on the event - - try: - element = driver.find_element_by_xpath(u'//a[contains(.,"Alert fired (Critical condition) assigned to (管理者ガイド)")]') - self.assertIsInstance(element,WebElement) - - except AssertionError as e: - self.verificationErrors.append(str(e)) - - except NoSuchElementException as e: - self.verificationErrors.append(str(e)) + element = driver.find_element_by_xpath(u'//a[contains(.,"Alert fired (Critical condition) assigned to (管理者ガイド)")]') + self.assertIsInstance(element,WebElement) if __name__ == "__main__": unittest.main()