⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pystafmon.py

📁 Software Testing Automation Framework (STAF)的开发代码
💻 PY
字号:
############################################################################## Software Testing Automation Framework (STAF)                              ## (C) Copyright IBM Corp. 2001                                              ##                                                                           ## This software is licensed under the Common Public License (CPL) V1.0.     ############################################################################### STAFMonitorDoLog - This function simply provides a function wrapper around#                    the LOG request of the Monitor servicedef STAFMonitorDoLog(stafHandle, message, system = "local", service = "Monitor"):    return stafHandle.submit(system, service, "LOG MESSAGE :%d:%s" % \                             (len(message), message))# STAFMonitor - This class is a wrapper around the STAF monitor service.#               It currently only provides a means to monitor locally.class STAFMonitor:    def __init__(self, stafHandle, system = "local", service = "Monitor"):        self.handle  = stafHandle        self.system  = system        self.service = service    def log(self, message):        return STAFMonitorDoLog(self.handle, message, self.system, self.service)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -