Closed Aravinthan-R closed 2 years ago
Tried with function -> MockServerClient clear(RequestDefinition requestDefinition, ClearType type) But log messages are not cleared.
Please find the code below -
Initialize Expectation by path :
Expectation.when(request().withPath("/mockserver/qwe/msg.ashx"))
I'm tried with the following line to clear logs:
mockServer.clear(HttpRequest.request().withPath("/mockserver/qwe/msg.ashx"), ClearType.LOG);
Following message is getting in Dashboard - cleared logs that match:
{
"path": "/mockserver/qeu/msg.ashx"
}
Note: No logs are cleared
Please suggest to me if any wrong with my code
Also tried the following code to clear all logs, but not cleared any log messages -
RequestDefinition NULL = null;
mockServer.clear(NULL, ClearType.LOG);
I'm trying to clear logs using requestDefinition , unfortunately, logs are not cleared.
Code:
The above line clears the expectation but does not logs.
Log Details: CLEARED
cleared expectations that match:
removed expectation:
cleared logs that match:
MockServer version version . 5.13.2