Closed rboulton-BH closed 2 years ago
Because we have tried to set up the adapter to suit the json output from the endpoint "https://ace.argylesoftware.co.uk/buroh/v2/sap-fullworksheet-lig-in-text-out-noformat" we are trying to deserialise the json output directly. This means the output from other endpoints e.g. XML returned by "https://ace.argylesoftware.co.uk/buroh/v2/sap-calculateratings" are null.
We need to change the post-processing of the object returned from the endpoint depending on what is returned. Alternatively the deserialisation needs to be done using a separate method after the object is returned from the execute.
Run this script with the same input test xml file through the different endpoints https://burohappold.sharepoint.com/:u:/r/sites/Direction/designtechnology/RandDWishlist/00205_Environments%20%26%20MEP/SAP%20workflow/220428%20PostToArgyleEngine.gh?csf=1&web=1&e=O8pivL
https://burohappold.sharepoint.com/:f:/r/sites/Direction/designtechnology/RandDWishlist/00205_Environments%20%26%20MEP/SAP%20workflow/BRE%20SAP%20software%20test%20cases?csf=1&web=1&e=eZEIZa
Description:
Because we have tried to set up the adapter to suit the json output from the endpoint "https://ace.argylesoftware.co.uk/buroh/v2/sap-fullworksheet-lig-in-text-out-noformat" we are trying to deserialise the json output directly. This means the output from other endpoints e.g. XML returned by "https://ace.argylesoftware.co.uk/buroh/v2/sap-calculateratings" are null.
We need to change the post-processing of the object returned from the endpoint depending on what is returned. Alternatively the deserialisation needs to be done using a separate method after the object is returned from the execute.
Steps to reproduce:
Run this script with the same input test xml file through the different endpoints https://burohappold.sharepoint.com/:u:/r/sites/Direction/designtechnology/RandDWishlist/00205_Environments%20%26%20MEP/SAP%20workflow/220428%20PostToArgyleEngine.gh?csf=1&web=1&e=O8pivL
Expected behaviour:
Test file(s):
https://burohappold.sharepoint.com/:f:/r/sites/Direction/designtechnology/RandDWishlist/00205_Environments%20%26%20MEP/SAP%20workflow/BRE%20SAP%20software%20test%20cases?csf=1&web=1&e=eZEIZa