Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689984000/b093154c-0c5d-4dfd-ab63-cad96935d475.jpg?itok=ZD1yIntO)
Adqura
IN
Last activity: 30 Sep 2020 7:59 EDT
Unit Testing Multi Level Strategies
We are using Pega 8.4 version and exploring the capabilities with the NBAD approach as recommended. I can see the framework level strategies are generated for me with some extension points to cater to any specific requirements.
My question is how to unit test the extension strategy which is dependent on the result from its parent strategies.
For instance, if my Action is getting dropped at TreatmentsChannels strategy and need to investigate why so.
The top level strategy can be unit tested for each of the components.
How do we unit test the strategy which is next in the hierarchy?
One way I can do is by checking out this strategy and copying all the first 4 components from parent strategy and getting rid of external input. But this is not a good option at all, as we keep checking out the strategies that are generated by the system.
This is just a strategy at level 3, consider some of the strategies that are at much deeper in hierarchy for example:
We are using Pega 8.4 version and exploring the capabilities with the NBAD approach as recommended. I can see the framework level strategies are generated for me with some extension points to cater to any specific requirements.
My question is how to unit test the extension strategy which is dependent on the result from its parent strategies.
For instance, if my Action is getting dropped at TreatmentsChannels strategy and need to investigate why so.
The top level strategy can be unit tested for each of the components.
How do we unit test the strategy which is next in the hierarchy?
One way I can do is by checking out this strategy and copying all the first 4 components from parent strategy and getting rid of external input. But this is not a good option at all, as we keep checking out the strategies that are generated by the system.
This is just a strategy at level 3, consider some of the strategies that are at much deeper in hierarchy for example:
If we need to add our specific requirements to extension strategy ContactPolicyExtension, how do we unit test it? Below is the level of the extension point strategy
Trigger_NBA_TopLevel NBAStrategyFramework TreatmentsChannels OutboundChannels OutboundLimits ContactPolicyExtension
Any insight on this is appreciated.