AutomaticFlows   Execution Test Report  2021-05-01 22:55:59

   Environment Name:local
   Server:localhost:8090


   Number of Test XMLs: 3 
   Fail to Parse: 0 
      
   Total Success Test XMLs:
   Total Failure Test XMLs:
   Show All Tests:
      
   Total Success Steps: 5 
   Total Failure Steps: 1 
   Total Not Run Steps: 1 






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:



File Name: c:\AutomaticFlows\tests\demo\customerPurchaseProducts.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:

Type: GET

URL: http://localhost:8090//products/v1/prodctDetails/990876561234

Response Status: 200

Headers: {content-type=application/json}

Params: null

Request: null

Response Header: [Content-Type:"text/plain;charset=UTF-8", Content-Length:"101", Date:"Sat, 05 Dec 2020 20:55:56 GMT"]

Response: {"screenSize":"6.1","color":"Black","year":"2019","price":"999","name":"iPhoneX","id":"990876561234"}

String for Postman: curl 'http://localhost:8090//products/v1/prodctDetails/990876561234' -H 'content-type: application/json'

Step definition from XML:

Type: POST

URL: http://localhost:8090//order/v1/products

Response Status: 200

Headers: {content-type=application/json}

Params: null

Request: {"customerId" : "123456789", "productId":"990876561234"}

Response Header: [Content-Type:"text/plain;charset=UTF-8", Content-Length:"20", Date:"Sat, 05 Dec 2020 20:55:56 GMT"]

Response: {"status":"success"}

String for Postman: curl 'http://localhost:8090//order/v1/products' -H 'content-type: application/json' --data-binary $'{"customerId" : "123456789", "productId":"990876561234"}'

Step definition from XML:



File Name: c:\AutomaticFlows\tests\demo\getSecurityToken.xml

Global Params: {securityToken=dfsdfsdfdsfdsfsdfdsffffsddfsfsdkljfidsjfiodsjfiojiejkldkljcvcixvjcoixjcixojviocxjviocxjviocxjviocxjviocjxivojcxiovjcxiojvicxojviocxjviojcxjvijioewrewiruweijsfiodjfoijdsiofjdsiojfweurioewjriewojfiojfiojsdiofjsiourewiourweioruweiojfiojfiojewiojfiojfiojiojsfdoisdjfiosdjfiosdjfiojsdiofjisdojfiosdjfiosjdiofjsiodjf}

Type: POST

URL: http://localhost:8090/secid-connect/token

Response Status: 200

Headers: {Accept-Language=en-US, Content-Type=application/x-www-form-urlencoded}

Params: null

Request: grant_type=password;client_id=secid;username=testuser;password=Aziyyu7834

Response Header: [Content-Type:"text/plain;charset=UTF-8", Content-Length:"346", Date:"Sat, 05 Dec 2020 20:55:56 GMT"]

Response: {"sec_token":"dfsdfsdfdsfdsfsdfdsffffsddfsfsdkljfidsjfiodsjfiojiejkldkljcvcixvjcoixjcixojviocxjviocxjviocxjviocxjviocjxivojcxiovjcxiojvicxojviocxjviojcxjvijioewrewiruweijsfiodjfoijdsiofjdsiojfweurioewjriewojfiojfiojsdiofjsiourewiourweioruweiojfiojfiojewiojfiojfiojiojsfdoisdjfiosdjfiosdjfiojsdiofjisdojfiosdjfiosjdiofjsiodjf","expires_in":"2021"}

String for Postman: curl 'http://localhost:8090/secid-connect/token' -H 'Accept-Language: en-US' -H 'Content-Type: application/x-www-form-urlencoded' --data 'grant_type=password&client_id=secid&username=testuser&password=Aziyyu7834'

Step definition from XML: