2026年5月22日
摘要:
项目测试: 新建项目,在项目下创建6个软件包: api(接口包) api包中组建并发送接口请求:responces dx=responces.post(url1, data=data1, headers=headers1) conf(数据包) 存放所有数据:接口地址、headers、上传数据data
阅读全文
posted @ 2026-05-22 16:10
一般路过uuz
阅读(4)
推荐(0)
2026年5月21日
摘要:
python+requests接口测试 dos下载:pip install requests pycharm下载:解释器里下载 cms项目 import requests class cms(object): def init(self): pass 占位# def login(self): #登录
阅读全文
posted @ 2026-05-21 18:01
一般路过uuz
阅读(4)
推荐(0)
摘要:
接口测试思路: 一、业务功能测试 1)全部必填参数 2)全部参数(必填+非必填) 3)参数组合(必填+部分非必填) 4)传参参数测试(x-www-urlcode)json格式测试(json串)非json格式 5)默认值测试 6)非空测试(value=null) 二、业务功能异常测试 1)数据异常(长
阅读全文
posted @ 2026-05-21 18:00
一般路过uuz
阅读(6)
推荐(0)
2026年5月20日
摘要:
unittest框架 import unittest class test(unittest.TestCase): 创建一个类继承unittest import unittest import time from selenium import webdriver class cms(unittes
阅读全文
posted @ 2026-05-20 17:54
一般路过uuz
阅读(3)
推荐(0)
摘要:
接口 抓取接口:f12 .do requestURL 请求链接 request method 接受方式(POST发送,GET接收) remote address 服务器地址 responce headers 响应头 request headers 请求头 content-tyoe 请求类型 cook
阅读全文
posted @ 2026-05-20 17:54
一般路过uuz
阅读(7)
推荐(0)
摘要:
dx.find_element_by_xpath('//*[@class="search-suggest-combobox-imageSearch-input"]').send_keys xpath定位css dx.find_element_by_css_selector('#J_TSearchFo
阅读全文
posted @ 2026-05-20 17:53
一般路过uuz
阅读(4)
推荐(0)
2026年5月14日
摘要:
selenium selenium是一个python的第三方库 pip install selenium3.141.0 pip install urllib31.26.10 selenium测试直接运行在浏览器中,模拟人工操作 UI自动化优点: 1.解决重复性功能测试和验证 2.减少测试人员在回归测
阅读全文
posted @ 2026-05-14 18:02
一般路过uuz
阅读(5)
推荐(0)
2026年5月13日
摘要:
自定义函数 def hs(): for i in range(10) print(i) 导入函数 from hs.文件名 import * 局部变量 在函数中进行引用 局部变量优先级高于全局变量 全局变量 在函数内外都可以引用 global a 将局部变量设为全局变量,优先级高于原有的全局变量 re
阅读全文
posted @ 2026-05-13 16:01
一般路过uuz
阅读(3)
推荐(0)