Skip to main content

Creating persona test cases

4 Tasks

5 mins

Visible to: All users
Beginner Pega Customer Decision Hub 8.7 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 Service™, 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 Troy

Create a new persona for the customer Troy that you can use for inbound web channel testing purposes. The data for Troy is available in the customer database table.

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

Task 2: Create a persona for Barbara

Create a new persona for the customer Barbara that you can use for inbound web channel testing purposes. The data for Barbara is available in the customer database table.

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

Task 3: Create and run a Test Case for the TroyInboundWeb persona

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

Task 4: Create and run a Test Case for the BarbaraInboundWeb persona

Create a second test case for the BarbaraInboundWeb persona. Test that BarbaraInboundWeb 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 test 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 Troy

  1. On the exercise system landing page, click Pega CRM suite to log in to Customer Decision Hub.
  2. Log in as Decisioning Architect with user name DecisioningArchitect and password rules.
  3. In the navigation pane Customer Decision Hub, click Data > Profile Data Sources to open the Profile Data Sources landing page.
  4. On the Data sets tab, in the list of available data sources, click Customer.
  5. Click the Records tab.
  6. In the list of customers, click 14, to open the Troy.Murphy profile.
  7. In the Customer Profile Viewer window for Troy.Murphy, click the Next best actions tab.
  8. Complete the Next best actions tab:
    1. In the Direction list, select Inbound.
    2. In the Channel list, select Web.
    3. In the Real-time container list, select TopOffers.
    4. Click Make decision to create a next-best action decision.
  9. On the All results tab, click Density, and then select Full Content to display the full action names.
    full content
  10. Confirm that Troy is eligible for two credit cards: Rewards card and Standard card.
  11. In the upper-right corner of the Next best actions tab, click More > Save as new persona.
    Save as new persona
    Note: By leaving the Page placement empty, the results include all eligible actions.
  1. In the Create persona window, in the Persona Name field, enter TroyInboundWeb, and then click Submit.
  2. In the Customer Profile Viewer window, in the Type list, select Persona.
  3. In the Persona field, enter or select TroyInboundWeb, and then click outside the field to display a question mark icon.
  4. Click the question mark icon, and then observe that all the details of the fields of the TroyInboundWeb persona are displayed in a JSON file.
    Note: The properties that are in the JSON file are the customer values from the customer database table for Troy customer combined with the channel information that is provided in the Make decision window (for example, direction="Inbound," channel="Web").
  1. Close the Customer Profile Viewer window.

2 Create a persona for Barbara

  1. On the Data Set: Customers landing page, on the Records tab, in the list of customers, click 15 to open the Barbara.Stockton profile.
    Note: If you know the customer ID you can use it directly here. Otherwise, check which customer you want to create a persona for from the customer database table.
  1. In the Customer Profile Viewer window of Barbara.Stockton, click the Next best actions tab.
  2. Complete the Next best actions tab:
    1. In the Direction list, select Inbound.
    2. In the Channel list, select Web.
    3. In the Real-time container list select TopOffers.
    4. Click Make decision.
  3. On the All results tab, click Density, and then select Full Content to display the full action names.
    full content
  4. Confirm that Barbara is eligible for two credit cards: Premium Rewards card and Rewards Plus card.
  5. In the upper-right corner of the Next best actions tab, click More > Save as new persona.
    Save as new persona 2
  6. In the Create persona window, in the Persona Name field, enter BarbaraInboundWeb, and then click Submit.
  7. Close the Customer Profile Viewer window.

3 Create and run a Test Case for the persona TroyInboundWeb

  1. In the navigation pane 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. Click Create test, and then build the persona test for Troy:
    1. In the Create test window, 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 Standard card.
       
      Adding action to person test
    4. Click Add assertion to add a test condition row.
       
      Add assertion
    5. In the Actions list, select Rewards card.
       
      Actions to test in persona test case
    6. In the Persona (Data transform) field, enter or select TroyInboundWeb.
      TroyInboundWeb in persona test
    7. In the Test Label field, enter Rewards and Standard Cards eligibility.
    8. In the Next-Best-Action scope section, confirm that Engagement policies only is selected.
       
      NBA scope
    9. In the lower-right corner, click Create to create the persona test for Troy.
  6. In the Not yet run section, select the test that you created for TroyInboundWeb.
  7. Click the Run selected tests icon.
     
    Run Persona test troy
  8. Confirm that the test run badge on the right indicates that the test passes.
     
    troy persona test passes

4 Create and run a Test Case for the BarbaraInboundWeb persona

  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 not equal to.
    3. In the Actions list, select Rewards card.
    4. Click Add assertion to add a test condition.
    5. Repeat steps 1a-b.
    6. In the Actions list, select Standard card.
    7. In the Persona (Data transform) field, select the persona, BarbaraInboundWeb.
    8. In the Test Label field, enter Rewards and Standard cards ineligibility.
    9. In the Next-Best-Action scope section, confirm that Engagement policies only is selected.
      BarbaraInboundWeb perosna test
    10. Click Create to create the persona test for Barbara.
  2. In the Not yet run section, select the test you created for BarbaraInboundWeb.
  3. Click the Run selected tests icon.
  4. Confirm that that the test run badge on the right indicates that the test passes.
    Troy Barbara persona test pass

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