cancel
Showing results for 
Search instead for 
Did you mean: 

How to test a new configuration thru BSP_WD_CMPWB option?

Former Member
0 Kudos

Hi,

I created a new configuration to a view belonged to BP_HEAD_SEARCH. So, I put to display new fields and changed some properties. The new configuration is linked to the user role.

When I execute the application via browser, it's ok. The new configuration is showed with all modifications.

However, if I use the Test Application option or button in BSP Workbench, the browser shows me the standard configuration.

How can I put a definition, when the Test Application is launched, the system displays the new configuration? Is it in any option in the URL or repository.xml?

Best regards,

André

Accepted Solutions (1)

Accepted Solutions (1)

yevgen_trukhin
Advisor
Advisor
0 Kudos

Hello Andre,

You can hardcode which configuration you want to use by overwriting the method DO_CONFIG_DETERMINATION on the controller level.

The code which will set it is:

CALL METHOD me->set_config_keys
    EXPORTING
      iv_object_type          = 'YOURCONFIGNAME'
      iv_propagate_2_children = abap_true.

Best Regards,

Yevgen

Former Member
0 Kudos

Hello Yevgen!

This code worked when I run the whole application. It's a great tip!

However if I want to run just the component via test button with t-code BSP_WD_CMPWB, only the standard is executed. I realized that the Z controller isn't executed when the component is launched thru that test button.

The goal is to avoid to navigate the whole application until the component and to do the tests. The test button load directly the component in the browser.

Do you have any idea?

Thanks a lot.

André

yevgen_trukhin
Advisor
Advisor
0 Kudos

Hello Andre,

I know what you mean but i would do testing only by loading the whole application because when you test via test button, the business role, profile, navigation customizing won't be loaded. So if you want to be close to real life, the load of webclient is necessary.

Best Regards,

Yevgen

Former Member
0 Kudos

Hello Yevgen!

OK! I understand what you mean.

Thanks for your appreciate answer.

André

Answers (0)