Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

F4 popup while running ABAP unit test for a class

former_member873583
Discoverer
0 Kudos
406

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.

5 REPLIES 5

matt
Active Contributor
340

I think we need rather more detail than you've provided.

former_member873583
Discoverer
0 Kudos
340

I have updated question with details

Sandra_Rossi
Active Contributor
0 Kudos
340

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.

former_member873583
Discoverer
0 Kudos
340

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.

Sandra_Rossi
Active Contributor
0 Kudos
340

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?