mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Moving forward to 2.0 Framework
(cherry picked from commit d0b32d8eb052c02626914755633a4083bbd389e9)
This commit is contained in:
parent
c14618ac02
commit
a975cb06f7
@ -15,13 +15,17 @@ from selenium.common.exceptions import NoAlertPresentException
|
|||||||
from selenium.webdriver.remote.webelement import WebElement
|
from selenium.webdriver.remote.webelement import WebElement
|
||||||
import unittest, time, re
|
import unittest, time, re
|
||||||
|
|
||||||
class PAN5(PandoraWebDriverTestCase):
|
class Miscellaneous (PandoraWebDriverTestCase):
|
||||||
|
|
||||||
test_name = u'PAN_5'
|
test_name = u'Miscellaneous'
|
||||||
test_description = u'Creates an agent and a module with japanese characters and test if the event list show the characters properly'
|
|
||||||
tickets_associated = []
|
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
|
driver = self.driver
|
||||||
self.login()
|
self.login()
|
||||||
detect_and_pass_all_wizards(driver)
|
detect_and_pass_all_wizards(driver)
|
||||||
@ -59,16 +63,8 @@ class PAN5(PandoraWebDriverTestCase):
|
|||||||
driver.find_element_by_id("submit-update").click()
|
driver.find_element_by_id("submit-update").click()
|
||||||
|
|
||||||
#Check that there are japanese characters present on the event
|
#Check that there are japanese characters present on the event
|
||||||
|
element = driver.find_element_by_xpath(u'//a[contains(.,"Alert fired (Critical condition) assigned to (管理者ガイド)")]')
|
||||||
try:
|
self.assertIsInstance(element,WebElement)
|
||||||
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))
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
unittest.main()
|
Loading…
x
Reference in New Issue
Block a user