Hello,
We have a custom protocol xml file that contains some C# logic in QActions. All of this is within the actual xml file.
Is it possible to write unit tests for these?
I know about the Convert to Solution DIS feature, which I can see could be used to achieve this, but if I were to use this to help the development process, how would I convert the generated solution back into the original XML-only format?
Thankyou
Hi David,
I am not aware of a way of unit testing a protocol just with the XML.
To write unit tests it is preferable to convert the XML to a Visual Studio solution and use something like MSTest or NUnit or XUnit.
With just the XML the only way of doing tests is if you upload it to a DataMiner system and use a dummy element to do some automated testing via DataMiner's Automation module. But in this case, it would be more of an integration or regression test rather than a unit test.

It should still be possible to export the connector to an XML or a dmprotocol file as shown in this Docs page https://docs.dataminer.services/develop/TOOLS/DIS/Developing/Developing_connectors_as_Visual_Studio_solutions.html#saving-an-assembled-connector-to-a-file
Thanks João, yeah that works
Thanks João, makes sense.
I think you are also implying that if I use the DIS Convert to Solution feature to create a solution, it is not possible to convert it back into the original XML format?