AL icon indicating copy to clipboard operation
AL copied to clipboard

Handling XmlPorts similar to pages and reports in Test codeunits

Open bachii1010 opened this issue 8 years ago • 7 comments

Hi,

When we are trying to create handlers for xmlports similar to page we cannot find the xmlporthandler attribute and testxmlport datatype.

Can you please suggest how can we handle this?

Thanks & regards Varun Reddy

bachii1010 avatar Jun 06 '18 09:06 bachii1010

Hi @bachii1010 ! At the moment, there are no such datatypes. Could you please describe your scenario a bit more? Maybe some of the community members can offer suggestions on how to solve it.

atoader avatar Jun 06 '18 09:06 atoader

@atoader we have a xmlport and we are using that to import data so we are writing an automate test codeunit for this process and here we have to invoke the xmlport to test it automatically which is not possible now due to the above missing datatypes and attributes.

Can you please suggest how to accomplish this?

bachii1010 avatar Jun 06 '18 09:06 bachii1010

I don't think that's currently possible apart from running with RequestWindow = false. We will need to add support for TestXmlPort and a handler for the XmlPort Request Page.

StanislawStempin avatar Aug 03 '18 14:08 StanislawStempin

Any progress on this? Still can't handle the XmlPort RequestPage, the requestpagehandler still only supports a requestpage for a report.

Joerio avatar Mar 05 '21 11:03 Joerio

Hi! We are working on focusing the activity in this repository on addressing issues related to the AL development tools. As this issue appears to require changes across multiple areas of our product, I recommend that you post this on our Ideas forum at https://aka.ms/BusinessCentralideas, or vote up the idea if its already there. We are constantly monitoring top ideas and will consider them for a future release.

atoader avatar Mar 07 '21 13:03 atoader

Why is this closed? This is related to the AL development tools. It's missing any helper functions to actually test a XmlPort. You immediately get an exception that you don't handle the UI Requestpage, but you don't have any actual tools to handle this. Or is testing xmlports just not supported in the AL test tools?

Joerio avatar Mar 08 '21 08:03 Joerio

Issues related to AL development tools includes:

  • Bugs in the AL compiler
  • Bugs in the AL language extension

Any requests for new features/extensions should go to BC Ideas.

atoader avatar Mar 09 '21 15:03 atoader