Options

Automated Testing of XML Ports

robbonickrobbonick Member Posts: 40
edited 2019-03-01 in NAV Three Tier
Hi,

I want to write some tests to cover an XML Port I am creating which will be exposed via a Codeunit as a Web Service.
I am just wondering if anyone has seen any patterns for doing this?

I have looked in the standard test suite, but can't seem to find any which test XML Ports.
I might be overlooking some, so please feel free to point me to them if anyone knows of any examples.

My current guess is that I should create a temporary XML file and store it somewhere, then just call IMPORT with the XML Port?
I just want to be sure I am doing this in the recommended way.
Sign In or Register to comment.