How to test an action in a test codeunit ?

Hey guys,

I have created an action in a page extensions and now I want to test its functionality.

trigger OnAction()
                var
                    Resource: Record Resource;
                    Handled: Boolean;
                begin
                    OnBeforePrint(Handled);
                    if not handled then begin
                        Resource.SetRange("No.", "No.");
                        ResourceLabel.SetTableView(Item);
                        ResourceLabel.RunModal();
                    end;
                end;

Do you have an idea?

Do I have to test all actions, which I have created for my extension?

Parents Reply Children
Related
Recommended