Skip to Content
0
Dec 01, 2022 at 05:58 AM

Unit Testing Class: How to capture CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD and UPLOAD_XLS_FILE_2_ITAB

186 Views

Hi Gurus,

I am doing the unit testing classes for the first time. I had covered all other codes, but struck at methods where we are reading file (Text or Excel ) from application server using CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD and UPLOAD_XLS_FILE_2_ITAB function module / method. I cannot use static address from my system Or desktop to read test files as it will not work someone else system.

Can someone provide some insights who to cover these methods during unit testing ?