[extensibility-bug] Test procedure can fail if HandlerFunctions have similar names
Hello colleagues,
We have encountered a wierd behaviour with Test Procedures.
If Test procedure contains multiple Handlers (e.g. PageHandlers) and their names are similar (e.g. "DimensionsHandler" and "ChangeDimensionsHandler").
Test procedure will execute both handlers but will fail with the following error message: Error Message: The following UI handlers were not executed: ChangeGlobal - Error Call Stack:
[Test]
[HandlerFunctions('DimensionsHandler,ChangeGlobalDimensionsHandler')] //does not work
// [HandlerFunctions('DimensionsHandler,ChangeGlobalDimHandler')] //works
procedure "AssistedSetup-TestDimensionWizard"()
begin
Page.Run(Page::Dimensions);
Page.Run(Page::"Change Global Dimensions");
end;
Please find attached a small extension to reproduce the problem. HandlerBug.zip
P.S. Changing the handler name ChangeDimensionsHandler=>ChangeDimHandler solves the problem.
@Mike-1984 this looks more like a Plattform Bug. Therefore you should better create a support request via the correct channel to get this fixed. See: https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/technical-support#summary-of-where-to-file-bugs-and-issues