File Name: c:\AutomaticFlows\tests\demo\customerPurchaseProducts_failure_example.xml
Global Params: {iPhoneXId=990876561234, customerId=123456789}
Type: GET
URL: http://localhost:8090/products/v1/availableProducts/iPhone
Response Status: 200
Headers: {content-type=application/json}
Params: null
Request: null
Response Header: [Content-Type:"text/plain;charset=UTF-8", Content-Length:"127", Date:"Sat, 05 Dec 2020 20:55:56 GMT"]
Response: [{"name":"iPhone8","Id":"887766252345"},{"name":"iPhone9","Id":"445433345789"},{"name":"iPhoneX","Id":"990876561234"}]
String for Postman: curl 'http://localhost:8090/products/v1/availableProducts/iPhone' -H 'content-type: application/json'
Step definition from XML:
Error: {"timestamp":"2020-12-05T20:55:57.188+0000","status":404,"error":"Not Found","message":"No message available","path":"/products/v1/prodctDetailssss/990876561234"}
Type: GET
URL: http://localhost:8090//products/v1/prodctDetailssss/990876561234
Response Status: 404
Headers: {content-type=application/json}
Params: null
Request: null
Response Header: [Content-Type:"application/json;charset=UTF-8", Transfer-Encoding:"chunked", Date:"Sat, 05 Dec 2020 20:55:56 GMT"]
Response: {"path":"\/products\/v1\/prodctDetailssss\/990876561234","error":"Not Found","message":"No message available","timestamp":"2020-12-05T20:55:57.188+0000","status":404}
String for Postman: curl 'http://localhost:8090//products/v1/prodctDetailssss/990876561234' -H 'content-type: application/json'
Step definition from XML:
Type: POST
URL: http://localhost:8090//order/v1/products
Response Status: null
Headers: {content-type=application/json}
Params: null
Request: {"customerId" : "%customerId%", "productId":"%iPhoneXId%"}
Response Header: null
Response:
String for Postman: curl 'http://localhost:8090//order/v1/products' -H 'content-type: application/json' --data-binary $'{"customerId" : "%customerId%", "productId":"%iPhoneXId%"}'
Step definition from XML: