本文整理匯總了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()