本文整理汇总了Python中common_suite_file.CommonSuiteData.alarm_strategy_module_prefix_condition方法的典型用法代码示例。如果您正苦于以下问题:Python CommonSuiteData.alarm_strategy_module_prefix_condition方法的具体用法?Python CommonSuiteData.alarm_strategy_module_prefix_condition怎么用?Python CommonSuiteData.alarm_strategy_module_prefix_condition使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类common_suite_file.CommonSuiteData
的用法示例。
在下文中一共展示了CommonSuiteData.alarm_strategy_module_prefix_condition方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: TestAlarmSuite
# 需要导入模块: from common_suite_file import CommonSuiteData [as 别名]
# 或者: from common_suite_file.CommonSuiteData import alarm_strategy_module_prefix_condition [as 别名]
class TestAlarmSuite(unittest.TestCase):
def setUp(self):
#定义驱动
self.browser = setDriver().set_driver()
self.commonSuite = CommonSuiteData(self.browser)
self.alarmCase = AlarmConfig(self.browser)
self.initDriver = initDriver()
#前置条件
self.commonSuite.alarm_strategy_module_prefix_condition()
def test_alarm(self):
#为用户添加邮箱
self.alarmCase.mod_user_mail_008()
#配置高危运维
self.alarmCase.command_alarm_level_config_001()
#运行状态告警校验
self.alarmCase.default_alarm_level_checkout_003()
#配置运行状态告警
self.alarmCase.default_alarm_level_config_002()
#配置认证失败告警
self.alarmCase.auth_alarm_level_config_004()
#告警归纳类型检索
self.alarmCase.search_by_type_005()
#告警归纳级别检索
self.alarmCase.search_by_level_006()
def tearDown(self):
#后置条件
self.commonSuite.alarm_strategy_module_post_condition()
#关闭浏览器
self.initDriver.close_driver(self.browser)
示例2: print
# 需要导入模块: from common_suite_file import CommonSuiteData [as 别名]
# 或者: from common_suite_file.CommonSuiteData import alarm_strategy_module_prefix_condition [as 别名]
self.frameElem.from_frame_to_otherFrame("rigthFrame")
self.alarm.search_level(data[2])
self.alarm.search_button()
self.alarm.rest_button()
#清空标识状态
flag = False
self.log.log_detail(data[0], True)
except Exception as e:
print ("Retrieval level error: ") + str(e)
self.log.log_end("searchByLevel")
def del_config(self):
#日志开始记录
self.log.log_start("delConfig")
flag = False
self.frameElem.from_frame_to_otherFrame("mainFrame")
if __name__ == "__main__":
browser = setDriver().set_local_driver()
commonSuite = CommonSuiteData(browser)
alarmCase = AlarmConfig(browser)
commonSuite.alarm_strategy_module_prefix_condition()
alarmCase.mod_user_mail_008()
alarmCase.command_alarm_level_config_001()
alarmCase.default_alarm_level_checkout_003()
alarmCase.default_alarm_level_config_002()
alarmCase.auth_alarm_level_config_004()
alarmCase.search_by_type_005()
alarmCase.search_by_level_006()
commonSuite.alarm_strategy_module_post_condition()