Unit tests for ArcMap based SOEs can be done by initializing the Unit Test Framework with AOInitialize(). How can I perform Unit Tests for Pro based SOEs?
Solved! Go to Solution.
For functions that are internal to the SOE and not exposed as operations, you would write a new operation in your SOE REST API called "test". This test operation would go through and test all the internal functions that you want to ensure are working and then return a JSON object that indicates whether the implementation tests passed or not. If there are configurable parameters (database or file server names for instance), you would pass those as inputs into the test operation. If you have a server that stores test results, you could directly write to that as well from within the SOE. If you have an enormous number of functions, then you might create an operation for each test suite.
For functions that are internal to the SOE and not exposed as operations, you would write a new operation in your SOE REST API called "test". This test operation would go through and test all the internal functions that you want to ensure are working and then return a JSON object that indicates whether the implementation tests passed or not. If there are configurable parameters (database or file server names for instance), you would pass those as inputs into the test operation. If you have a server that stores test results, you could directly write to that as well from within the SOE. If you have an enormous number of functions, then you might create an operation for each test suite.