#coding:utf-8 import os import xlrd from common.path import dataPath from common.setlog import log class ReadExcel(object): def __init__(self,fileName Read More
posted @ 2020-12-23 23:44
sriver_dl
Views(253)
Comments(0)
Diggs(0)
import unittest from ddt import ddt,data,unpack from src.utils.ReadExcel import ReadExcel @ddt class Testddt2(unittest.TestCase): def setUp(self): pas Read More
posted @ 2020-12-23 17:14
sriver_dl
Views(247)
Comments(0)
Diggs(0)
返回值的操作。 text:获取接口返回值的文本格式 json():获取接口返回值的json()格式 status_code:返回状态码(成功为:200) headers:返回完整的请求头信息(headers['name']:返回指定的headers内容) encoding:返回字符编码格式 url: Read More
posted @ 2020-12-23 14:26
sriver_dl
Views(748)
Comments(0)
Diggs(0)
requests提供的get方法,有几个常用的参数: url:显而易见,就是接口的地址url啦 headers:定制请求头(headers),例如:content-type = application/x-www-form-urlencoded params:用于传递测试接口所要用的参数,这里我们用 Read More
posted @ 2020-12-23 14:15
sriver_dl
Views(2482)
Comments(0)
Diggs(0)
常用组件简要介绍jp@gc - Bytes Throughput Over Time:不同时间吞吐量展示(图表)聚合报告里,Throughput是按请求个数来展示的,比如说1.9/sec,就是每s发送1.9个请求;而这里的展示是按字节Bytes来展示的图表jp@gc - Composite Grap Read More
posted @ 2020-12-23 10:01
sriver_dl
Views(226)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号