
Hi
I have a test application and I need to implement a [Handlerfunctions for a method that has a dialog box.
here is my code:
[MessageHandler]
procedure MessageHandler1(MessageText: Text[1024])
begin
MessageText := 'This is a test';
end;
[Test]
[HandlerFunctions('MessageHandler1')]
procedure "Testing Dialog"()
Begin
//Runing the code...
End
Result: The operation failed because the dialog box is not open.
Anyone can tell me what I'm doing wrong?
Hello,
If you are testing Message Dialog then use the below code,
[MessageHandler]
procedure MessageHandler1(MessageText: Text[1024])
begin
end;
[Test]
[HandlerFunctions('MessageHandler1')]
procedure "Testing Dialog"()
Begin
Message('This is a test');
End