Creating persona test cases
Archived
5 Tasks
5 mins
Scenario
U+ Bank is performing cross-sell on the web and has implemented some engagement policies to ensure that customers get only tailored, relevant offers.
To verify if these engagement policies work properly, the business team wants to define test cases for different personas and ensure that the future changes do not introduce any regressions.
Use the following credentials to log in to the exercise system:
Role |
User name |
Password |
Decisioning Analyst |
CDHAnalyst |
rules |
Caution: To reuse the exercise system from a previous challenge, first complete Defining customer engagement policies challenge. Otherwise, click Initialize Pega or Reset Instance in this challenge.
Your assignment consists of the following tasks:
Task 1: Create and run a Test Case for the persona, Troy
Configure & execute a persona test case to test that Troy qualifies for the Standard card and the Rewards card.
Task 2: Create and run a Test Case for the persona, Barbara
Create a second test case for the persona, Barbara. Test that Barbara qualifies for the Rewards Plus card and the Premier Rewards card and observe that she passes the test.
Task 3: Define an applicability condition for standard card
Define an action level applicability condition for the standard card where the average balance should be greater than $2000.
Task 4: Run the existing test cases and inspect the results.
Run the test cases defined earlier and observe that Troy fails the test.
Task 5: Fix the test case for Troy.
Edit the existing test case for Troy to select only the actions he is eligible for.
Customer |
Standard |
Rewards |
Rewards Plus |
Premier Rewards |
Troy |
Y |
Y |
||
Barbara |
Y |
Y |
Challenge Walkthrough
Detailed Tasks
1 Create and run a Test Case for the persona Troy
-
Log in as a Decisioning Analyst with user name CDHAnalyst and password rules.
- In the navigation pane on the left, click Next-Best-Action > Designer.
- Click Engagement policy.
- In the Business structure section, click the CreditCards group to view the engagement policy for the group.
- Click Actions and select Persona test....
- Click Create test.
- In the Create test window, notice that the Test passes if is set to At least one action and the condition to is equal to.
- In the Actions list, select Rewards card.
- Click Add assertion.
- Repeat step 8 for the Standard card.
- In the Persona (Data transform) field, select the persona, Troy.
- In the Next-Best-Action scope section, ensure Engagement policies only is selected.
- Click Create.
- Select the test you created.
- Click the Run selected tests icon.
- Observe the test run badge on the right indicates that the test passes.
2 Create and run a Test Case for the persona, Barbara
- Click Create test.
- In the Create test window. set the Test passes if to At least one action and set the condition to is equal to.
- In the Actions list, select Rewards plus card.
- Click Add assertion,
- Repeat step 3 for the Premium rewards card.
- In the Persona (Data transform) field, select the persona, Barbara.
- In the Next-Best-Action scope section, ensure Engagement policies only is selected.
- Click Create.
- Select the test you created for Barbara.
- Click the Run selected tests icon.
- Observe the test run badge on the right indicates that the test passed
3 Define an applicability condition for standard card
- Scroll down to click on the offer, Standard card.
- Click Check out.
- Click on the Engagement policy tab.
- Under the Applicability section, click Add criteria.
- In the first list, ensure that Customer is selected.
- In the second list, in the Fields section, select Average Balance.
- In the third list, select is greater than.
- In the last list, enter 2000.
- Check-in the changes with suitable check-in comments.
- Close the Standard card offer.
4 Run the existing test cases and inspect the results
- To see how the applicability added affects to the persona test cases, in the persona test panel, select both test cases and run them.
- Observe that Troy’s test case fails.
- Click on the fail badge to open the test results window. Observe the test fails as Troy is not eligible for the Standard card.
- Close the test result window.
- Click the persona, Troy.
- Observe that the average balance is 1500 which is less than the defined average balance.
- Click Close.
5 Fix the test case for Troy
- Click the test case created for Troy to open it.
- In the Assertion row, delete the row where you selected Standard card.
- Click Save.
- Select Troy’s test case. Click Run selected tests icon.
- Observe the test run Status badge on the right for Troy’s test case indicates that the test passes.