Package io.keploy.service
Class GrpcService
java.lang.Object
io.keploy.service.GrpcService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic io.grpc.ManagedChannel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCapture(Service.TestCaseReq.Builder testCaseReqBuilder, Map<String, List<MultipartContent>> formData, Service.HttpReq.Builder httpReqBuilder) static voidCaptureTestCases(String reqBody, Map<String, String> params, Service.HttpResp httpResp, String protocolType, Map<String, List<MultipartContent>> formData) static booleancheck(String testrunId, Service.TestCase tc) static voiddenoise(String id, Service.TestCaseReq testCaseReq) static StringdetermineFilePath(String fileName) static voidstatic List<Service.TestCase>fetch()static Service.HttpResp.Builderstatic StringgetSimulateResponseBody(HttpURLConnection httpConn) static booleanisSuccessfulResponse(HttpURLConnection connection) static voidput(Service.TestCaseReq testCaseReq) static Stringstatic Service.HttpRespsimulate(Service.TestCase testCase) static Stringstatic voidTest()
-
Field Details
-
blockingStub
-
channel
public static io.grpc.ManagedChannel channel
-
-
Constructor Details
-
GrpcService
public GrpcService()
-
-
Method Details
-
CaptureTestCases
public static void CaptureTestCases(String reqBody, Map<String, String> params, Service.HttpResp httpResp, String protocolType, Map<String, List<MultipartContent>> formData) -
Capture
public static void Capture(Service.TestCaseReq.Builder testCaseReqBuilder, Map<String, List<MultipartContent>> formData, Service.HttpReq.Builder httpReqBuilder) -
put
-
denoise
-
simulate
-
isSuccessfulResponse
-
getSimulateResponseBody
- Throws:
IOException
-
GetResp
-
Test
public static void Test() -
start
-
end
-
fetch
-
check
-
saveFile
-
determineFilePath
-