本文整理汇总了Python中tests.base.BaseTestCase.clear_nailgun_database方法的典型用法代码示例。如果您正苦于以下问题:Python BaseTestCase.clear_nailgun_database方法的具体用法?Python BaseTestCase.clear_nailgun_database怎么用?Python BaseTestCase.clear_nailgun_database使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tests.base.BaseTestCase
的用法示例。
在下文中一共展示了BaseTestCase.clear_nailgun_database方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setUp
# 需要导入模块: from tests.base import BaseTestCase [as 别名]
# 或者: from tests.base.BaseTestCase import clear_nailgun_database [as 别名]
def setUp(self):
"""Each test precondition
Steps:
1. Click on create environment
"""
BaseTestCase.clear_nailgun_database()
BaseTestCase.setUp(self)
Environments().create_cluster_box.click()
示例2: setUp
# 需要导入模块: from tests.base import BaseTestCase [as 别名]
# 或者: from tests.base.BaseTestCase import clear_nailgun_database [as 别名]
def setUp(self):
"""Each test precondition
Steps:
1. Create environment with default values
2. Open created environment
3. Open actions tab
"""
BaseTestCase.clear_nailgun_database()
preconditions.Environment.simple_flat()
Tabs().actions.click()
示例3: setUp
# 需要导入模块: from tests.base import BaseTestCase [as 别名]
# 或者: from tests.base.BaseTestCase import clear_nailgun_database [as 别名]
def setUp(self):
"""Each test precondition
Steps:
1. Open Support page
"""
BaseTestCase.clear_nailgun_database()
BaseTestCase.setUp(self)
time.sleep(1)
Header().support.click()
time.sleep(1)
示例4: setUp
# 需要导入模块: from tests.base import BaseTestCase [as 别名]
# 或者: from tests.base.BaseTestCase import clear_nailgun_database [as 别名]
def setUp(self):
"""Each test precondition
Steps:
1. Create simple environment with default values
2. Click on created environment
"""
BaseTestCase.clear_nailgun_database()
BaseTestCase.setUp(self)
preconditions.Environment.simple_flat()
time.sleep(1)
示例5: setUp
# 需要导入模块: from tests.base import BaseTestCase [as 别名]
# 或者: from tests.base.BaseTestCase import clear_nailgun_database [as 别名]
def setUp(self):
"""Each test precondition
Steps:
1. Create simple environment with default values
2. Click on created environment
3. Deploy environment with 1 controller and 2 compute nodes
"""
BaseTestCase.clear_nailgun_database()
BaseTestCase.setUp(self)
preconditions.Environment.simple_flat()
time.sleep(1)
preconditions.Environment().deploy_nodes(1, 2)
示例6: setUp
# 需要导入模块: from tests.base import BaseTestCase [as 别名]
# 或者: from tests.base.BaseTestCase import clear_nailgun_database [as 别名]
def setUp(self):
BaseTestCase.clear_nailgun_database()
BaseTestCase.setUp(self)
preconditions.Environment.simple_flat()
Environments().create_cluster_boxes[0].click()
Nodes().add_nodes.click()
Nodes().nodes_discovered[0].checkbox.click()
RolesPanel().controller.click()
Nodes().apply_changes.click()
time.sleep(1)
Nodes().nodes[0].details.click()
NodeInfo().edit_networks.click()
示例7: setUp
# 需要导入模块: from tests.base import BaseTestCase [as 别名]
# 或者: from tests.base.BaseTestCase import clear_nailgun_database [as 别名]
def setUp(self):
"""Each test precondition
Steps:
1. Create simple environment with default values
2. Click on created environment and open Networks tab
"""
BaseTestCase.clear_nailgun_database()
BaseTestCase.setUp(self)
preconditions.Environment.simple_flat()
Environments().create_cluster_boxes[0].click()
Tabs().networks.click()
time.sleep(1)
示例8: setUp
# 需要导入模块: from tests.base import BaseTestCase [as 别名]
# 或者: from tests.base.BaseTestCase import clear_nailgun_database [as 别名]
def setUp(self):
"""Each test precondition
Steps:
1. Create simple environment with default values
2. Click on created simple environment
2. Click 'Add nodes'
"""
BaseTestCase.clear_nailgun_database()
preconditions.Environment.simple_flat()
BaseTestCase.setUp(self)
Environments().create_cluster_boxes[0].click()
time.sleep(1)
Nodes().add_nodes.click()
time.sleep(1)
示例9: setUp
# 需要导入模块: from tests.base import BaseTestCase [as 别名]
# 或者: from tests.base.BaseTestCase import clear_nailgun_database [as 别名]
def setUp(self):
"""Each test precondition
Steps:
1. Create environment with Neutron gre
2. Open created environment
3. Add controller node
4. Open interface configuration of the node
"""
BaseTestCase.clear_nailgun_database()
BaseTestCase.setUp(self)
preconditions.Environment.simple_neutron_gre()
PageObject.click_element(Nodes(), 'add_nodes')
PageObject.click_element(Nodes(), 'nodes_discovered', 'checkbox', 0)
RolesPanel().controller.click()
Nodes().apply_changes.click()
PageObject.wait_until_exists(Nodes().apply_changes)
Nodes().nodes[0].details.click()
NodeInfo().edit_networks.click()
示例10: setUp
# 需要导入模块: from tests.base import BaseTestCase [as 别名]
# 或者: from tests.base.BaseTestCase import clear_nailgun_database [as 别名]
def setUp(self):
BaseTestCase.clear_nailgun_database()
BaseTestCase.setUp(self)
Header().releases.click()