feat(接口测试): 响应内容详情扩展

This commit is contained in:
fit2-zhao 2023-12-18 15:52:13 +08:00 committed by 刘瑞斌
parent a6e1d692a2
commit 6fff1c5f20
2 changed files with 28 additions and 0 deletions

View File

@ -39,6 +39,7 @@ public class RequestResult {
private String body; private String body;
private String status; private String status;
private String method; private String method;
private int totalAssertionCount = 0; private int totalAssertionCount = 0;
@ -56,4 +57,5 @@ public class RequestResult {
private String fakeErrorMessage; private String fakeErrorMessage;
// 误报编码名称 // 误报编码名称
private String fakeErrorCode; private String fakeErrorCode;
} }

View File

@ -15,10 +15,12 @@ public class ResponseResult {
private String responseMessage; private String responseMessage;
// 总响应时间
private long responseTime; private long responseTime;
private long latency; private long latency;
// 总响应内容大小
private long responseSize; private long responseSize;
private String headers; private String headers;
@ -33,6 +35,30 @@ public class ResponseResult {
private byte[] imageUrl; private byte[] imageUrl;
// Socket InitializationSocket 初始化时间
private long socketInitTime = 0;
// DNS LookupDNS 查询时间
private long dnsLookupTime = 0;
// TCP HandshakeTCP 握手时间
private long tcpHandshakeTime = 0;
//SSL HandshakeSSL 握手时间
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<>(); private final List<ResponseAssertionResult> assertions = new ArrayList<>();
} }