自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 执行入口

import os,importlibimport yaml#from conf import P1#from conf import allfrom conf import sitepush1017thfrom common import suiteimport sysfrom time import ctimefrom conf import configimport xlrdfrom threading import Threadimportlib.reload(confi...

2021-05-23 21:14:09 123

原创 测试数据

import impfrom conf import configimp.reload(config)if "thrive" in config.URL: data1 = lambda:( ("/care-near-georgia",), ) data2 = lambda:( ("","/care-near-georgia/our-doctors","https://healthy..

2021-05-23 21:13:10 167

原创 比较图片

from PIL import Imagefrom PIL import ImageChopsimport osclass CompareImages: def compare_images(self,actual_path,expect_path): actual = Image.open(actual_path,'r') expect = Image.open(expect_path,'r')...

2021-05-23 21:11:52 105

原创 测试套件

import unittest,importlibimport HTMLTestRunnerimport inspectfrom conf import configimportlib.reload(config)def create_workbook(data): keys = data.keys() keys.sort() for key in keys: try: mod = __import..

2021-05-23 21:10:43 89

原创 测试用例

import unittest,impfrom time import sleepfrom common import openBrowserimp.reload(openBrowser)from common.openBrowser import OpenBrowserfrom common.grabImage import GrabImagefrom pageObject.georgiaElements import Georgiafrom unittest_data_provi...

2021-05-23 21:09:39 57

原创 页面元素

from pageObject.baseClass import BasePagefrom selenium.webdriver.common.by import By#desktopwhole_page = (By.CSS_SELECTOR,"div.kaiser")bread_crumb_item1 = (By.CSS_SELECTOR,"div.gb-bread-crumbs > ol > li > a")region_button = (By.CSS_SELECT...

2021-05-23 21:07:36 108

原创 面向页面基类

from time import sleepfrom selenium.webdriver.common.action_chains import ActionChainsfrom selenium.common.exceptions import TimeoutExceptionfrom selenium.common.exceptions import NoSuchElementException#import exceptionsclass BasePage: def ...

2021-05-23 21:06:05 115

原创 屏幕截图

import time,impfrom PIL import ImageGrabfrom PIL import Imagefrom PIL import ImageChopsfrom conf import configimp.reload(config)class GrabImage: def __init__(self,driver,ele): self.driver = driver #initial element ...

2021-05-23 21:03:43 79

原创 测试用例

documents = """---https://thrive.kaiserpermanente.org: chrome: CNYMidAtalantic: [test_locate_facility_page,test_care_your_way_page] """''' CNYNothernCalifornia: [test_landing_page,test_shop_kp] CNYOregonWashington..

2021-05-23 21:00:07 68

原创 打开PC和手机浏览器

import unittest,impfrom selenium import webdriverfrom selenium.webdriver.firefox.firefox_binary import FirefoxBinaryfrom conf import config class OpenBrowser(unittest.TestCase): imp.reload(config) browser = config.BROWSER base..

2021-05-23 20:56:21 132

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除