- 博客(16)
- 资源 (12)
- 收藏
- 关注
原创 google chrome webdrive 列表
http://chromedriver.storage.googleapis.com/index.html
2016-05-03 15:00:47
2021
原创 loadrunner 学习
一、性能测试基本流程 1、性能测试需求分析 2、性能测试计划(用户多少、时间测试多久) 3、性能测试准备开发脚步/执行测试-> 测试结果分析->系统调优->编写测试报告二、web性能测试常用指标 1、响应时间(Response time) 用户感受软件系统为其服务所耗费的时间 相应时间:2-5-8原则 2-5s:可以 5-8s:可以接受 8s+:不行了2、吞吐量(Throughpu
2016-05-03 14:59:13
405
原创 selenium 获取值的方法
新建实例driver = webdriver.Chrome() 1.获取当前页面的Url函数 方法:current_url 实例: driver.current_url 2.获取元素坐标 方法:location 解释:首先查找到你要获取元素的,然后调用location方法 实例: driver.find_element_by_xpath(“//*[@id=’tablechart’]
2016-05-03 14:57:57
4480
原创 webdriver 执行js
send_start_day = self.driver.find_element(*AutoorderLocators.Send_Start_Day_Input) self.driver.execute_script(“$(arguments[0]).removeAttr(arguments[1])”, send_start_day, “readonly”)
2016-05-03 09:49:12
372
原创 厕所
coding=utf-8import unittest import sys sys.path.append(r’./ars’) from common import HTMLTestRunner import os,timefrom apscheduler.scheduler import Schedulerfrom common import mailutilfrom conf impo
2016-04-26 14:58:15
550
原创 oracle
import cx_Oracle as orcl from conf import configdef query(sql, username, passwd, host, port, sid): ”’ :param username: 用户名 :param passwd: 密码 :param host: 地址 :param port: 端口
2016-04-26 14:51:52
378
原创 mail
!/bin/env pythoncoding=utf-8import email import mimetypes from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText from email.MIMEImage import MIMEImage from email.MIMEAud
2016-04-26 14:49:46
1361
原创 logunit
-- coding: utf-8 --import logging from conf import config import time import osdef initLog(logfile):if os.path.exists(config.logpath) != True: os.makedirs(config.logpath)logfile = config.logpat
2016-04-26 14:49:07
400
原创 excellibrary
!/usr/bin/env pythonCopyright 2013-2014 NaviNet Inc.#Licensed under the Apache License, Version 2.0 (the “License”);you may not use this file except in compliance with the License.You may obtain a copy
2016-04-26 14:48:11
1935
原创 上传文件
upload_button = self.driver.find_element(*ImportLocators.Import_Order_Button) upload_button.click() upload_window = win32gui.GetForegroundWindow() win32gui.SetForegroundWindo
2016-04-26 14:44:32
272
原创 unittest参数化
# -*- coding: utf-8 -*-import unittestclass ParametrizedTestCase(unittest.TestCase): """ TestCase classes that want to be parametrized should inherit from this class. """ def __ini
2016-03-31 17:00:39
1323
1
原创 Python excel转xml
#! encoding=utf-8import xlrdimport xml.dom.minidomimport osdef open_excel(file): try: data = xlrd.open_workbook(file) return data except Exception, e: print str(e)de
2016-03-31 16:48:37
3419
原创 Python 测试webservice
#! encoding=utf-8# auth : leikai# 2016-03-30 v1.0from suds.client import Clientfrom ParametrizedTestCase import ParametrizedTestCaseimport HTMLTestRunnerimport unittestimport sysreload(sys)sys
2016-03-31 16:41:08
1580
原创 Python 操作MySQL数据库
#encoding=utf-8import os, sys, string, randomimport MySQLdbreload(sys)sys.setdefaultencoding('utf-8')# 连接数据库 class Mysql: conn = '' cursor = '' def __init__(self, host='127.0.0.1', usr
2016-03-31 16:33:47
342
原创 Python 读取excel
#! encoding=utf-8import xlrd,xlwtimport xml.dom.minidomimport os,sysclass OpExcel(): table = '' tabledata = [] def __init__(self,path,sheet): try: data = xlrd.open_wo
2016-03-31 16:32:34
499
原创 python webdriver 简单框架
以百度搜索为例 一、首先写百度的元素定位类,后期可以用excel表代替,命名为locators.py# -*- coding: utf-8 -*-from selenium.webdriver.common.by import Byclass BaiduLocator(object): Search_Input = (By.ID,"kw") Search_Submit_Butt
2016-03-31 15:36:15
2163
HuaweiUpdateExtractor
2014-09-24
liyan365)com-PowerShot ELPH 330 HS 相机使用者指南
2013-06-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人