会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小天可以
博客园
首页
新随笔
联系
订阅
管理
2021年1月31日
Postman获取html页面中的val值
摘要: const $ = cheerio.load(responseBody); // console.log($.html()); //$.html() 整个网页 console.log($('title').text()); // <title>标签里的文字 console.log($("*[name
阅读全文
posted @ 2021-01-31 22:56 小天可以
阅读(550)
评论(0)
推荐(0)
2019年11月11日
appium(api操作)
摘要: 1 driver.current_activity #获取当前activity 2 3 driver.current_package #获取包名 4 5 driver.lock(seconds=2) #息屏 6 7 #收起虚拟键盘 8 driver.hide_keyboard() 9 10 #获取屏
阅读全文
posted @ 2019-11-11 11:19 小天可以
阅读(152)
评论(0)
推荐(0)
appium(toast处理)
摘要: 1 from selenium.webdriver.support.ui import WebDriverWait 2 from selenium.webdriver.support import expected_conditions as ES 3 4 def is_toast_exist(dr
阅读全文
posted @ 2019-11-11 11:11 小天可以
阅读(319)
评论(0)
推荐(0)
appium(屏幕滑动)
摘要: 1 class handleswipe(): 2 """ 3 屏幕滑动操作 4 """ 5 6 def __init__(self, driver, function, num=None): 7 self.driver = driver 8 self.function = function 9 se
阅读全文
posted @ 2019-11-11 11:09 小天可以
阅读(316)
评论(0)
推荐(0)
2019年11月7日
logging配置
摘要: 1 import logging 2 3 4 def handle(): 5 # 1、定义logger对象:负责产生日志,然后交给Filter过滤,然后交给不同的Handler输出 6 logger = logging.getLogger() 7 8 # logger.setLevel("DEBUG
阅读全文
posted @ 2019-11-07 15:31 小天可以
阅读(539)
评论(0)
推荐(0)
python读取xlsx文件
摘要: 1 def xlrdWay(): 2 3 file_dir = r"C:\Users\admin\Desktop\showdata.xlsx" 4 data = xlrd.open_workbook(file_dir) 5 6 table = data.sheet_by_name('APIcase'
阅读全文
posted @ 2019-11-07 15:02 小天可以
阅读(748)
评论(0)
推荐(0)
selenium3关于ddt驱动之读取json文件。。。
摘要: 1 from selenium import webdriver 2 import ddt 3 import time 4 import unittest 5 6 """ 7 DDT(驱动.json文件) 8 """ 9 10 11 @ddt.ddt 12 class TestLogin(unitt
阅读全文
posted @ 2019-11-07 14:53 小天可以
阅读(595)
评论(0)
推荐(0)
selenium3关于ddt数据驱动。。
摘要: 1 from selenium import webdriver 2 import ddt 3 import time 4 import unittest 5 6 @ddt.ddt 7 class TestLogin(unittest.TestCase): 8 9 @classmethod 10 d
阅读全文
posted @ 2019-11-07 14:49 小天可以
阅读(224)
评论(0)
推荐(0)
pytest.mark.parametrize()参数化应用二,读取json文件
摘要: 1 class TestEnorll(): 2 3 def get_data(self): 4 """ 5 读取json文件 6 :return: 7 """ 8 data = [] 9 with open(self, 'r') as f: 10 dict_data = json.loads(f.r
阅读全文
posted @ 2019-11-07 14:46 小天可以
阅读(1442)
评论(0)
推荐(0)
pytest.mark.parametrize()参数化的应用一
摘要: 1 from page.LoginPage import Loginpage 2 import os, sys, pytest 3 4 base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 5 sys.path.
阅读全文
posted @ 2019-11-07 14:42 小天可以
阅读(784)
评论(0)
推荐(0)
下一页
公告