上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 30 下一页
摘要: 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 阅读(219) 评论(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 阅读(166) 评论(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 阅读(553) 评论(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 阅读(164) 评论(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 阅读(121) 评论(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 阅读(158) 评论(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 阅读(220) 评论(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 阅读(185) 评论(0) 推荐(0)
摘要: {"redis": {"host": "116.196.122.78", "passwd": "Houyafan123", "port": 6379}, "mysql": {"host": "116.196.122.78", "passwd": "Houyafan123", "port": 3306 阅读全文
posted @ 2018-07-05 11:38 laosun0204 阅读(179) 评论(0) 推荐(0)
摘要: import unittestimport timefrom lib.core.tools import get_new_report, remove_reportfrom lib.core.path import CASE_PATH, REPORT_PATH, EMAIL_INFOfrom lib 阅读全文
posted @ 2018-07-05 11:33 laosun0204 阅读(202) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 30 下一页