+1
Under review

Test harness for Adapter and Link PowerShell Transformations

Bob Bradley 4 years ago in UNIFYBroker/Plus updated by Matthew Davis (Technical Product Manager) 2 years ago 1

In order to support the unit testing requirements for transitioning PS solutions on Broker+ to the UNIFYConnect hosted platform, a test harness is required for all PowerShell transformations.

+1
Under review

Hi Bob,

Thanks for the suggestion. I'll investigate some ways that we can provide mocking capabilities for the powershell components of the adapter and the link.

A point of interest, there's currently an API endpoint ( /api/1.0/Entity/SimulateTransformations ) which allows you to provide an ConnectorEntityId, an AdapterId and a Simulation Time (in format such as 2020-09-07T01:13:44 ) and it will simulate the transformations for a particular upstream entity, and output what the data looks like after each transformation. While this doesn't help in terms of unit testability, it may help in transformation development as you can see what a transformation will do to a particular entity without needing to recalculate all adapter entities. It also works with the adapter disabled, which may assist in development cycles.