摘要:
import logging import logging.handlers import os import time def getLogger(): logger = logging.getLogger("") # 设置输出的等级 LEVELS = {'NOSET': logging.NOTS 阅读全文
摘要:
下载zoopkeeper工具,依赖java ,并且java的目录不能包含空格。所以把C:\Program Files (x86)\Java\jre1.8.0_291复制到了D:\app\jre执行以下命令,连接其中一个zookeeper的地址D:\cd D:\app\zk\binset JAVA_H 阅读全文
摘要:
#!/usr/bin/python import json from kafka import KafkaProducer import random import time topic='topic' #生产者写入数据格式为json格式,需要加value_serializer参数 producer 阅读全文
摘要:
#!/usr/bin/python import pymysql import time import random host = "host" user = "user" password = "password" db = "dbname" transit_depot_no = "xxx" # 阅读全文
摘要:
class apitestcase(unittest.TestCase): def setup(self): pass def tearDown(self): pass def my_doc_func(func, num, param): return param[0][0] @parameteri 阅读全文
摘要:
lib目录下面: lib/GetDriver.py (启动APP) # -*- coding: utf-8 -*- ''' Created on 2019/11/6 @author: 01372445 ''' from appium import webdriver from time import 阅读全文
摘要:
# -*- coding: utf-8 -*- ''' Created on 2019年8月8日 ''' from datetime import datetime import datetime from time import strftime import time def toUnix(): tm=strftime("%Y-%m-%d %H:%M:%S") s = ... 阅读全文
摘要:
目录 lib.config.ini: lib.getfile.py lib.HTMLTestRunner lib.opexcel.py lib.readConfig.py lib.sendemail.py api_autotest.py excel内容 阅读全文
摘要:
from openpyxl import * class excel(): def __init__(self,file): self.file = file self.wb = load_workbook(self.file) sheets = self.wb.get_sheet_names() self.sheet... 阅读全文