Академический Документы
Профессиональный Документы
Культура Документы
Objective
By the end of this exercise, you will be able to set and use self-defined Test configuration parameters.
1. Duplicate TestCaseFolder “8c ActionMode WaitOn” and rename it “9 Self Defined TCP“.
Add two additional Test configuration parameters to the TestCase:
2. • DiscountName – set Value to “AutomationDiscount2”
• DiscountPercentage – set Value to “0.20”
In the “Shopping Cart Procedures” TestStep use the “DiscountName” TCP in the TestStepValue for ”Enter
3.
Discount Code”.
In the “Verification of Prices” TestStep, amend the Discount calculation to use the “DiscountPercentage”
4.
TCP instead of the numeric value 0.20 to calculate the discount total.
5 Set the Workstate to “COMPLETED”.
Hints
»» {CP[]} is the syntax required to use a TCP.
31