Dhruvraj Mishra
10/30/2024, 11:07 AMRafe Arnold
10/30/2024, 11:46 AMDhruvraj Mishra
10/30/2024, 12:51 PMDhruvraj Mishra
11/01/2024, 9:33 AM{
"mappings": [
{
"scenarioName": "To do list",
"requiredScenarioState": "Started",
"request": {
"method": "POST",
"urlPathPattern": "/wiremock/any/resource",
"bodyPatterns": [
{
"matchesXPath": "//resource/Id/1[contains(text(),'12341234')]"
}
]
},
"response": {
"status": 202
},
"serveEventListeners": [
{
"name": "recordState",
"parameters": {
"context": "co",
"state": {
"resourceId": "{{xPath request.body '//resource/text()'}}"
}
}
}
]
},
{
"scenarioName": "To do list",
"requiredScenarioState": "Cancel newspaper item added",
"request": {
"method": "GET",
"urlPathPattern": "/wiremock/resource/add"
},
"response": {
"status": 200,
"bodyFileName": "resourceSumResponse.xml"
}
}
]
}
Dhruvraj Mishra
11/01/2024, 9:34 AMthe endpoint - "/wiremock/resource/add"
checking thru postman, gives- Request was not matchedDhruvraj Mishra
11/01/2024, 9:35 AMLee Turner
11/01/2024, 9:46 AMDhruvraj Mishra
11/01/2024, 11:17 AMLee Turner
11/01/2024, 11:18 AM