07 2018 档案

摘要:pip install Appium-Python-Client(客户端安装命令,就是在pycharm里的Terminal里通过命令安装)python -m pip install --upgrade pip(升级pip的命令,就是在pycharm里的Terminal里通过命令安装) windows 阅读全文
posted @ 2018-07-22 18:14 laosun0204 阅读(439) 评论(0) 推荐(0) 编辑
摘要:首先打开火狐浏览器,输入要测试的url,右键选择Launch Selenium Builder,弹出如下页面,如果没有找到Launch Selenium Builder,就要在火狐附加组件里找到Selenium Builder,安装完重启浏览器即可看到 点击上图中的Record按钮,哪里不会定位了就 阅读全文
posted @ 2018-07-22 16:38 laosun0204 阅读(247) 评论(0) 推荐(0) 编辑
摘要:Fiddler测试环境修改CGI 一、软件简介 Fiddler是一款免费且功能强大的数据包抓取软件,它通过代理的方式获取http/https通讯的数据,用其可检测网页和服务器的交互情况,能够记录所有客户端和服务器间的请求,支持监视、设置断点、甚至修改输入输出数据等功能,Fiddler包含了一个强大的 阅读全文
posted @ 2018-07-21 10:01 laosun0204 阅读(170) 评论(0) 推荐(0) 编辑
摘要:问题: win7 64位系统使用adb命令连接模拟器,在5037端口未被占用情况下,报以下错误: * daemon not running. starting it now on port 5037 * CreateProcess failure, error 2 * failed to start 阅读全文
posted @ 2018-07-16 15:17 laosun0204 阅读(3823) 评论(0) 推荐(0) 编辑
摘要: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 阅读(153) 评论(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) 编辑
摘要:{"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 阅读(165) 评论(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 阅读(172) 评论(0) 推荐(0) 编辑
摘要:python+selenium封装+unittest+PageObject思想+case和page分离+html报告+发送邮件,框架名称是ui_auto_web,有bin、conf、lib、log、reports和webCase六个目录,lib目录下有core和page目录,page目录下又包含we 阅读全文
posted @ 2018-07-05 11:18 laosun0204 阅读(411) 评论(0) 推荐(0) 编辑
摘要:第一步:安装jdk 安装jdk(1.7版本以上) 安装完成设置jdk环境变量(百度查询) cmd命令下键入 java -version命令检查jdk是否安装成功且设置环境变量成功,如下图所示: 第二步:安装Android SDK(安卓软件开发包) 下载地址:http://tools.android- 阅读全文
posted @ 2018-07-01 16:14 laosun0204 阅读(300) 评论(0) 推荐(0) 编辑