Skip to main content

Testing engagement policies with personas in Pega Customer Decision Hub

3 Tasks

15 mins

Visible to: All users
Beginner Pega Customer Decision Hub '23 English
Verify the version tags to ensure you are consuming the intended content or, complete the latest version.

Scenario

U+ Bank is cross-selling on the web and has implemented some engagement policies to ensure that customers get only tailored relevant offers.

To verify whether these engagement policies work properly, the business team wants to create personas in Pega Customer Decision HubTM, and then define test cases for these personas and ensure that the personas receive the right offers.

Use the following credentials to log in to the exercise system:

Role User name Password
Decisioning Architect DecisioningArchitect rules

Your assignment consists of the following tasks:

Task 1: Create a persona for Barbara in Customer Profile Viewer

Create a new persona for the customer Barbara that you can use for testing purposes.

Note: Use the Customer Profile Viewer to create the Barbara persona.

Task 2: Create and run a Test Case for persona Troy

Configure and then run a persona test case to test that Troy qualifies for the Standard card and the Rewards card and observe that he passes the test.

Task 3: Create and run a Test Case for persona Barbara

Create a second test case to test that Barbara does not qualify for the Rewards card and Standard card and observe that she passes the test.

Note: In a real-world implementation, you might need to create many test cases that are based on different requirements. Often, you organize these tests around actions and eligibility criteria. This task is to showcase the test case for testing the negative behavior.

 

You must initiate your own Pega instance to complete this Challenge.

Initialization may take up to 5 minutes so please be patient.

Challenge Walkthrough

Detailed Tasks

1 Create a persona for Barbara in Customer Profile Viewer

  1. On the exercise system landing page, click Pega InfinityTM to log in to Pega Customer Decision Hub.
  2. Log in to Customer Decision Hub as a Decisioning Architect: 
    1. In the User name field, enter DecisioningArchitect. 
    2. In the Password field, enter rules.
  3. In the upper-right corner of Customer Decision Hub, click the Reports icon, and then select Customer Profile Viewer.
    CPV open
  4. In the Customer Profile Viewer landing page, complete the following details:
    1. Type: Customer name.
    2. Customer name: Barbara Stockton,
    3. Click View to open Barbara's profile.
      CPV Search for Customer
  5. In Barbara's profile, click Next best actions tab.
  6. In the Next best actions tab, in Channel context field, select Web Inbound and click Make decision.
    CPV Channel context
    Note: Instead of selecting the previously created Channel context, you can also manually select the Direction, Channel, and Real-time container details.
  1. Confirm that Barbara is eligible for two credit cards: Rewards Plus card and Premier Rewards card.
  2. In the upper-right corner of the Customer Profile viewer tab, click Actions > Save as new persona.
    CPV Save as persona
  3. In the Create persona window, complete the following details:
    1. Name: Barbara.
    2. Description: Persona Barbara.
    3. Tags: mature_customer, financially_invulnerble, low_debt. After entering each tag hit enter on your keyboard to save the tag.
    4. Click Submit.
Create persona in CPV
  1. In the Customer Profile Viewer landing page complete the following details:
    1. Type: Persona.
    2. Persona: Barbara .
  2. Click View to confirm that your persona was correctly created.
    CPV Search for Persona
  3. Next to the Persona field, click on a question mark icon and then observe that all the details of the Barbara persona are displayed in a JSON file.
    Question mark JSON file
    Note: The properties that are in the JSON file are the customer values from the customer database table for Barbara.
  1. Close the Customer Profile Viewer window.

2 Create and run a Test Case for persona Troy

  1. In the navigation pane of Customer Decision Hub, click Next-Best-Action > Designer.
  2. In Next-Best-Action Designer, click Engagement policy to access the engagement policies for all issues and groups.
  3. In the Business structure pane, in the Grow section, click Credit cards to view the group-level engagement policy.
  4. Click Actions > Persona test to configure a persona test.
    Persona test option
  5. In the Persona test simulation area, click Create test.
    Persona test panel
  6. In the Create test window complete the following details:
    1. Confirm that the value of the Test passes if field is At least one action.
    2. Confirm that the value of the condition is is equal to.
    3. In the Actions list, select StandardCard.
      Adding action to person test
    4. Click Add assertion to add a test condition row.
      Add assertion
    5. In the Actions list, select RewardsCard.
      Actions to test in persona test case
    6. In the Persona field, enter or select Troy.
      Persona selection
    7. In the Channel context field, enter WebInbound.
      CC selection
    8. In the Test Label field, enter Rewards and Standard Cards eligibility.
      Label test
    9. In the Next-Best-Action scope section, confirm that Engagement policies only is selected.
      NBA scope
    10. In the lower-right corner, click Create to create the persona test for Troy.
  1. In the Not yet run section, select the test that you created for Persona_Troy.
    Testing Troy
  2. Click the Run selected tests icon.
    Run the test
  3. Confirm that the test run badge on the right indicates that the test passes.
    Test result Troy

3 Create and run a Test Case for persona Barbara

  1. Click Create test to build the persona test for Barbara:
    1. In the Create test window, confirm that the value of the Test passes if list is At least one action.
    2. In the condition list, select is equal to.
    3. In the Actions list, select Rewards Plus card.
    4. Click Add assertion to add a test condition.
    5. Repeat steps 1a-b.
    6. In the Actions list, select Premier Rewards card.
    7. In the Persona field, select the persona, Barbara.
    8. In the Channel context field, select WebInbound.
    9. In the Test Label field, enter Rewards Plus and Premier Rewards card eligibility.
    10. In the Next-Best-Action scope section, confirm that Engagement policies only is selected.
    11. Click Create to create the persona test for Barbara.
      Barbara test creation window
  2. In the Not yet run section, select the test you created for Barbara.
  3. Click the Run selected tests icon.
  4. Confirm that that the test run badge on the right indicates that the test passes.
    Test completion

This Challenge is to practice what you learned in the following Module:


Available in the following mission:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice