上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 30 下一页
摘要: import pymysqlimport redisimport requestsimport hashlibimport osfrom lib.core.path import REPORT_PATHclass MyMysql(object): def __init__(self, host, p 阅读全文
posted @ 2018-07-05 17:34 laosun0204 阅读(135) 评论(0) 推荐(0) 编辑
摘要: import unittestfrom lib.page.web.page import Pageclass WebCase(unittest.TestCase): @classmethod def setUpClass(cls): cls.page = Page() cls.page.get() 阅读全文
posted @ 2018-07-05 14:39 laosun0204 阅读(140) 评论(0) 推荐(0) 编辑
摘要: from lib.core.pyse import Pyseclass BasePage(object): # page object思想,每个功能封装成一个类 def __init__(self): """初始化时实例化Pyse,生成driver""" self.driver = Pyse() d 阅读全文
posted @ 2018-07-05 14:37 laosun0204 阅读(195) 评论(0) 推荐(0) 编辑
摘要: from lib.core.path import PICTURE_PATHimport osclass Tool(object): def __init__(self): self.lis = [] # 返回一个list,包着N多个元组 def error_picture(self): error 阅读全文
posted @ 2018-07-05 14:36 laosun0204 阅读(157) 评论(0) 推荐(0) 编辑
摘要: from selenium import webdriverfrom selenium.webdriver.common.action_chains import ActionChainsfrom selenium.webdriver.support import expected_conditio 阅读全文
posted @ 2018-07-05 14:18 laosun0204 阅读(530) 评论(0) 推荐(0) 编辑
摘要: import os,sysBASE_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))sys.path.insert(0, BASE_PATH)# 配置文件CONF_PATH = BA 阅读全文
posted @ 2018-07-05 14:09 laosun0204 阅读(152) 评论(0) 推荐(0) 编辑
摘要: import redisfrom lib.core.config import ConfigType,Configclass MyRedis(object): def __init__(self): self.config = Config() self.data = self.config.rea 阅读全文
posted @ 2018-07-05 14:08 laosun0204 阅读(114) 评论(0) 推荐(0) 编辑
摘要: import pymysqlfrom lib.core.config import Config,ConfigTypeclass MyMysql(object): def __init__(self): self.config = Config() self.data = self.config.r 阅读全文
posted @ 2018-07-05 14:06 laosun0204 阅读(155) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-"""A TestRunner for use with the Python unit testing framework. Itgenerates a HTML report to show the result at a glance.The si 阅读全文
posted @ 2018-07-05 14:03 laosun0204 阅读(210) 评论(0) 推荐(0) 编辑
摘要: import jsonfrom lib.core.path import CONF_PATHclass ConfigType(object): MYSQL = 'mysql' REDIS = 'redis' LOG = 'log'class Config(object): def __init__( 阅读全文
posted @ 2018-07-05 14:01 laosun0204 阅读(161) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 30 下一页