Skip to Content
Mar 02, 2017 at 04:55 PM

Unit test floorplan manager

76 Views Last edit Mar 02, 2017 at 04:57 PM 2 rev

Hi, I am looking for information regarding unit tests for fpm applications. I try it by using CL_WD_WEB_DYNPRO_TESTER. It is working for FPM_LIST_UIBB but not for FPM_FORM_UIBB. My Coding is basically like this. For some reason this is not working as expected. Do you have an idea, why? Or do you have an example for an fpm form unit test?

lo_input ?= lo_tester->get_view_element_tester(
                     view_id                 = 'V_FORM'
                     uielement_id            = lv_ui_id
    component_path          = 'FPM_FORM_UIBB_ZMIM_LO_OIF_FORM_HEAD_EHP5_00_'

*                   CATCH cx_wd_web_dynpro_tester.  "

lv_value = '0003029013'.

lo_input->raise_change( value = lv_value ).

lo_input->raise_enter( ).