feat(接口测试): 响应内容详情扩展
This commit is contained in:
parent
a6e1d692a2
commit
6fff1c5f20
|
@ -39,6 +39,7 @@ public class RequestResult {
|
|||
private String body;
|
||||
|
||||
private String status;
|
||||
|
||||
private String method;
|
||||
|
||||
private int totalAssertionCount = 0;
|
||||
|
@ -56,4 +57,5 @@ public class RequestResult {
|
|||
private String fakeErrorMessage;
|
||||
// 误报编码名称
|
||||
private String fakeErrorCode;
|
||||
|
||||
}
|
||||
|
|
|
@ -15,10 +15,12 @@ public class ResponseResult {
|
|||
|
||||
private String responseMessage;
|
||||
|
||||
// 总响应时间
|
||||
private long responseTime;
|
||||
|
||||
private long latency;
|
||||
|
||||
// 总响应内容大小
|
||||
private long responseSize;
|
||||
|
||||
private String headers;
|
||||
|
@ -33,6 +35,30 @@ public class ResponseResult {
|
|||
|
||||
private byte[] imageUrl;
|
||||
|
||||
// Socket Initialization(Socket 初始化时间)
|
||||
private long socketInitTime = 0;
|
||||
|
||||
// DNS Lookup(DNS 查询时间)
|
||||
private long dnsLookupTime = 0;
|
||||
|
||||
// TCP Handshake(TCP 握手时间)
|
||||
private long tcpHandshakeTime = 0;
|
||||
|
||||
//SSL Handshake(SSL 握手时间)
|
||||
private long sslHandshakeTime = 0;
|
||||
|
||||
//Transfer Start(传输开始时间)
|
||||
private long transferStartTime = 0;
|
||||
|
||||
//Download(下载时间)
|
||||
private long downloadTime = 0;
|
||||
|
||||
// Body size
|
||||
private long bodySize = 0;
|
||||
|
||||
// header size
|
||||
private long headerSize = 0;
|
||||
|
||||
private final List<ResponseAssertionResult> assertions = new ArrayList<>();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue