摘要: from selenium import webdriver import time driver = webdriver.Firefox() driver.get("https://www.baidu.com") #1.浏览器最大化 driver.maximize_window() #2.获取当前 阅读全文
posted @ 2023-02-07 23:39 小瓶子喵 阅读(36) 评论(0) 推荐(0)
摘要: package com.les.java.day01; import org.apache.log4j.Logger; public class Tester01 { private static Logger logger = Logger.getLogger(Tester01.class); p 阅读全文
posted @ 2023-02-15 00:36 小瓶子喵 阅读(89) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-02-15 00:28 小瓶子喵 阅读(18) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-02-14 00:25 小瓶子喵 阅读(46) 评论(0) 推荐(0)
摘要: 接口文档: 1.接口测试离不开接口文档(API文档): https://www.juhe.cn/docs/api/id/63 同时给出Key:57d46b7258fc47e14290c33537f23d36 根据接口文档,可以看出,这个接口文档是发get请求的,返回json格式: Tips- Get 阅读全文
posted @ 2023-02-14 00:20 小瓶子喵 阅读(47) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-02-08 22:52 小瓶子喵 阅读(24) 评论(0) 推荐(0)
摘要: 一、HTTP介绍 http(超文本传输协议)是一个基于请求与响应模式的、无状态的、应用层的协议 例如,百度的一个url: https://www.baidu.com/s?wd=%E4%B8%8A%E6%B5%B7%E6%82%A0%E6%82%A0%E5%8D%9A%E5%AE%A2&rsv_spt 阅读全文
posted @ 2023-02-08 22:47 小瓶子喵 阅读(332) 评论(0) 推荐(0)
摘要: ac import pymysql db = pymysql.connect(host='127.0.0.1', user='root', password='SPqaz132457/', port=3306, database='sql_store', # 返回结果转化为字典键字对形式 curso 阅读全文
posted @ 2023-02-08 22:34 小瓶子喵 阅读(135) 评论(0) 推荐(0)
摘要: 日志模块详细介绍: https://www.jb51.net/article/214933.htm import logging import time import os from Base.basePath import BasePath as BP from Base.utils import 阅读全文
posted @ 2023-02-08 22:11 小瓶子喵 阅读(214) 评论(0) 推荐(0)
摘要: 一、read_excel.py import xlrd import xlwt class ExcelRead(): def __init__(self,excelPath,sheetName="Sheet1"): self.data = xlrd.open_workbook(excelPath) 阅读全文
posted @ 2023-02-08 22:08 小瓶子喵 阅读(107) 评论(0) 推荐(0)
摘要: 一、parametrize介绍 参数化的目的是为了使测试用例代码与测试数据进行分离,这样,测试人员只需要维护测试数据,而不用更改代码。pytest模块给我们提供了专门用来参数化的装饰器:@pytest.mark.parametrize() 。 使用规则: @pytest.mark.parametri 阅读全文
posted @ 2023-02-08 22:05 小瓶子喵 阅读(1685) 评论(0) 推荐(1)