2021年7月27日

摘要: import logging import logging.handlers import os import time def getLogger(): logger = logging.getLogger("") # 设置输出的等级 LEVELS = {'NOSET': logging.NOTS 阅读全文
posted @ 2021-07-27 23:05 lbxx 阅读(49) 评论(0) 推荐(0) 编辑

2021年6月8日

摘要: 下载zoopkeeper工具,依赖java ,并且java的目录不能包含空格。所以把C:\Program Files (x86)\Java\jre1.8.0_291复制到了D:\app\jre执行以下命令,连接其中一个zookeeper的地址D:\cd D:\app\zk\binset JAVA_H 阅读全文
posted @ 2021-06-08 17:06 lbxx 阅读(895) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python import json from kafka import KafkaProducer import random import time topic='topic' #生产者写入数据格式为json格式,需要加value_serializer参数 producer 阅读全文
posted @ 2021-06-08 16:45 lbxx 阅读(106) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python import pymysql import time import random host = "host" user = "user" password = "password" db = "dbname" transit_depot_no = "xxx" # 阅读全文
posted @ 2021-06-08 16:38 lbxx 阅读(319) 评论(0) 推荐(0) 编辑

2020年1月20日

摘要: class apitestcase(unittest.TestCase): def setup(self): pass def tearDown(self): pass def my_doc_func(func, num, param): return param[0][0] @parameteri 阅读全文
posted @ 2020-01-20 18:53 lbxx 阅读(1011) 评论(0) 推荐(1) 编辑

2019年11月6日

摘要: lib目录下面: lib/GetDriver.py (启动APP) # -*- coding: utf-8 -*- ''' Created on 2019/11/6 @author: 01372445 ''' from appium import webdriver from time import 阅读全文
posted @ 2019-11-06 19:15 lbxx 阅读(428) 评论(0) 推荐(0) 编辑

2019年8月8日

摘要: # -*- 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 = ... 阅读全文
posted @ 2019-08-08 16:36 lbxx 阅读(188) 评论(0) 推荐(0) 编辑

2019年7月24日

摘要: 另附参考的 阅读全文
posted @ 2019-07-24 14:48 lbxx 阅读(406) 评论(0) 推荐(0) 编辑

2019年7月22日

摘要: 目录 lib.config.ini: lib.getfile.py lib.HTMLTestRunner lib.opexcel.py lib.readConfig.py lib.sendemail.py api_autotest.py excel内容 阅读全文
posted @ 2019-07-22 19:21 lbxx 阅读(258) 评论(0) 推荐(0) 编辑

2019年6月26日

摘要: 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... 阅读全文
posted @ 2019-06-26 17:11 lbxx 阅读(25951) 评论(0) 推荐(1) 编辑

导航