Hot fix for WebUI tests.

This commit is contained in:
Timur Nurlygayanov 2013-03-26 13:29:50 +04:00
parent e4abc9b157
commit ccd0a3c904

View File

@ -5,7 +5,21 @@ from login_page import LoginPage
from datacenters_page import DataCentersPage
from selenium import webdriver
"""
class SanityTests(unittest2.TestCase):
@classmethod
def setUpClass(self):
driver = webdriver.Firefox()
self.page = LoginPage(driver)
self.page.login()
self.page.Navigate('Project:Windows Data Centers')
self.page = DataCentersPage(driver)
@classmethod
def tearDownClass(self):
self.page.driver.close()
def test_01_create_data_center(self):
self.page.create_data_center('dc1')
assert self.page.Link('dc1').isPresented()
@ -29,22 +43,6 @@ from selenium import webdriver
for i in range(2, 9):
name = 'datacenter' + str(i)
assert self.page.Link(name).isPresented()
"""
class SanityTests(unittest2.TestCase):
@classmethod
def setUpClass(self):
driver = webdriver.Firefox()
self.page = LoginPage(driver)
self.page.login()
self.page.Navigate('Project:Windows Data Centers')
self.page = DataCentersPage(driver)
@classmethod
def tearDownClass(self):
self.page.driver.close()
def test_05_create_service_ad(self):
name = 'dc001.local'
@ -59,7 +57,7 @@ class SanityTests(unittest2.TestCase):
self.page.create_service('Active Directory', ad_parameters)
assert self.page.Link(name).isPresented()
"""
def test_06_create_service_ad_two_instances(self):
name = 'dc002.local'
self.page.Navigate('Windows Data Centers')
@ -151,7 +149,7 @@ class SanityTests(unittest2.TestCase):
status = self.page.get_datacenter_status('test08')
assert 'Deploy in progress' in status
"""
if __name__ == '__main__':
unittest2.main()