Esempio n. 1
0
def send_DD_for_FXC(title, text):
    """
    发 送 钉 钉 to FXC
    :param title:
    :param text:
    :return:

    """
    send_DD(dd_group_id=cfg.DD_MONITOR_GROUP, title=title, text=text, at_phones=cfg.DD_AT_FXC, is_at_all=False)
Esempio n. 2
0
def mongo_exception_send_DD(e, msg):
    """
    发现异常时钉钉通知
    :param e:
    :param msg:
    :return:
    """
    title = "'mongo'操作通知"
    text = "#### Android自动化测试'mongo'操作错误\n\n****操作方式:" + msg + "****\n\n****错误原因:" + str(e) + "****"
    send_DD(dd_group_id=cfg.DD_MONITOR_GROUP, title=title, text=text, at_phones=cfg.DD_AT_FXC, is_at_all=False)
Esempio n. 3
0
def send_DD_after_test(error_type, report_name, is_at_all=False):
    """
    测 试 后 发 送 钉 钉
    :param error_type: "失败"、"错误"
    :param report_name:
    :param is_at_all:
    :return:

    """
    text = "#### 在'" + report_name + "'测试报告中 存在'" + error_type + "'的用例\n\n ***测试报告地址***\n" + cfg.CURRENT_REPORT_URL
    send_DD(dd_group_id=cfg.DD_MONITOR_GROUP, title=report_name, text=text, at_phones=cfg.DD_AT_PHONES, is_at_all=is_at_all)