Slackbot
05/24/2023, 8:01 AMKapish Malik
05/24/2023, 9:01 AMmahbaleshwar hegde
05/24/2023, 9:04 AMKapish Malik
05/24/2023, 9:20 AMKapish Malik
05/24/2023, 9:23 AM"headers": {
"response-type": {
"equalTo": "error"
}
}
Kapish Malik
05/24/2023, 9:25 AMmahbaleshwar hegde
05/24/2023, 10:15 AMresponse-type
header.
I am using https://github.com/mobileforming/WiremockClient.git.
My Stubbing goes like this:
let stub = StubMapping.stubFor(requestMethod: .GET,
urlMatchCondition: .urlPathEqualTo,
url: endPoint)
.withHeader("response-type", matchCondition: .equalTo, value: "success")
.willReturn(ResponseDefinition())
I have tried to serve response from local file aprt from this approach. It doesn't work. Can you throw some insights how wiremock pick the response apart from most recent stub?Kapish Malik
05/24/2023, 10:25 AMKapish Malik
05/24/2023, 10:50 AMKapish Malik
05/24/2023, 10:50 AMKapish Malik
05/24/2023, 10:50 AMKapish Malik
05/24/2023, 10:51 AMmahbaleshwar hegde
05/24/2023, 12:54 PMapiClient.register {
RESTAPIClient(url: URL(string: "<http://localhost:8080/>")!)
}
func test_02ShouldDisplayBlogList() throws {
app.launch()
blogPostListStub.successResponse()
let cell = app.tables["blogPostTableView"].cells.firstMatch
XCTAssertTrue(cell.waitForExistence(timeout: 10.0))
}
Kapish Malik
05/24/2023, 1:22 PMKapish Malik
05/24/2023, 1:22 PMKapish Malik
05/24/2023, 1:33 PMmahbaleshwar hegde
05/29/2023, 2:39 PMmahbaleshwar hegde
05/31/2023, 5:16 AMOleg Nenashev
05/31/2023, 6:50 AM