From 6fff1c5f2046200f65d7651f94c3e2128ec6929e Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Mon, 18 Dec 2023 15:52:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=93=8D=E5=BA=94=E5=86=85=E5=AE=B9=E8=AF=A6=E6=83=85=E6=89=A9?= =?UTF-8?q?=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sdk/dto/api/result/RequestResult.java | 2 ++ .../sdk/dto/api/result/ResponseResult.java | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/api/result/RequestResult.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/api/result/RequestResult.java index 6162af6f8f..0a56fee733 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/api/result/RequestResult.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/api/result/RequestResult.java @@ -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; + } diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/api/result/ResponseResult.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/api/result/ResponseResult.java index acbec837bf..b29add5d25 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/api/result/ResponseResult.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/dto/api/result/ResponseResult.java @@ -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 assertions = new ArrayList<>(); }