AL icon indicating copy to clipboard operation
AL copied to clipboard

Unhandled UI: ReportData

Open chiecnhanco opened this issue 8 years ago • 3 comments

My Codeunit use test report [Test] [HandlerFunctions('RHGeneralLedgerReport')] procedure GeneralLedgerReport() begin Report.Run(Report::"DIC General Ledger", true, false); end;

[RequestPageHandler]
procedure RHGeneralLedgerReport(var GeneralLedgerPage: TestRequestPage "DIC General Ledger")
begin
    GeneralLedgerPage."From Date".SetValue(WorkDate());
    GeneralLedgerPage."To Date".SetValue(WorkDate());
    GeneralLedgerPage."Document No.".SetValue('OTH-1712-00001');
    GeneralLedgerPage.Preview().Invoke();
    //GeneralLedgerPage.SaveAsXml();
end;

image

When run CAL Test tool return result Fail image

Help me with this proplem Thanks

chiecnhanco avatar Jun 28 '18 03:06 chiecnhanco

Hi @chiecnhanco, I just tried something similar on another report and could not reproduce the error you had. Can you send us a repro also including the report object that you are using?

qutreson avatar Jun 29 '18 13:06 qutreson

You can use a "ReportHandler" additionally because you are previewing the report and Test Automation does not allow you to check the UI.

ashik-ivor avatar Jul 03 '18 07:07 ashik-ivor

Thanks for support.

chiecnhanco avatar Jul 11 '18 20:07 chiecnhanco