2023 Aug 08 10:10 AM
On running the ABAP Unit test, there is popup coming up for f4 help. This is happening only in one ABAP system and same unit test is running without popup in other ABAP system. Is there something that is missing or any idea why there is difference in the unit test behavior in different systems?
I have created a class A, and a method M1. M1 method has FM ' F4IF_INT_TABLE_VALUE_REQUEST'. This FM is used for help value (F4 pop up).
I have written unit test for method M1. In development system, when I run unit test, there is no pop up. In quality/test system on running same unit test, there is F4 pop up for the mentioned FM.
2023 Aug 08 10:21 AM
2023 Aug 18 11:03 AM
2023 Aug 18 11:53 AM
I think you miss knowledge of what Unit Tests are.
Of course unit tests don't display dialogs.
It's what test doubles are for.
2023 Aug 18 11:58 AM
sandra.rossi why is the behavior different in different system ? If I had got pop up in development system, I would have put the FM in test double.
2023 Aug 18 6:20 PM
I don't know, but why would you display a popup in unit tests?
If your question is just to know why the dialog is shown, it's worth the question, but you should propose a minimal reproducible example, and indicate your ABAP release/SP level.
As you are an SAP employee, why not checking/asking SAP support or SAP gurus directly?