public class SubscriptionCommerceKeywordLibrary extends AbstractKeywordLibrary
| Constructor and Description |
|---|
SubscriptionCommerceKeywordLibrary() |
| Modifier and Type | Method and Description |
|---|---|
CartData |
getCartDataForBillingTimeAndMasterCart(java.lang.String billingTime,
CartData masterCart)
Java implementation of the robot keyword
|
CartModel |
getCartForBillingTimeAndMasterCart(java.lang.String billingTime,
CartModel masterCart)
Java implementation of the robot keyword
|
CartModel |
getCartForCodeAndUser(java.lang.String cartCode,
java.lang.String userUid)
Returns cart by code and user id
|
java.util.List<CartModel> |
getCartsForUserAndSite(java.lang.String userUid,
java.lang.String siteName)
Returns carts for the specified user and site
|
void |
getDiscountPrice(java.lang.String billingEventCode,
double expectedDiscountPrice)
Java implementation of the robot keyword
|
void |
prepareCurrency(java.lang.String currency)
Prepares the session currency for a test case.
|
void |
resetCurrency()
Resets the currency after a test case
|
void |
setCartCurrencyTo(java.lang.String currency)
Switches the currency of the session to the given value.
|
void |
verifyCartTotalForBillingEvent(java.lang.String billingEventCode,
double expectedTotal)
Java implementation of the robot keyword
|
void |
verifyClonedChildCarts(java.lang.String originalCartCode,
java.lang.String clonedCartCode)
Java implementation of the robot keyword
|
void |
verifyNumberOfChildCarts(int expectedCartCount)
Java implementation of the robot keyword
|
void |
verifyProductXml(java.lang.String productCode,
java.lang.String xpath,
java.lang.String expectedXml)
Java implementation of the robot keyword
|
public void verifyNumberOfChildCarts(int expectedCartCount)
verify number of child carts
expectedCartCount - the expected number of child cartspublic void verifyProductXml(java.lang.String productCode,
java.lang.String xpath,
java.lang.String expectedXml)
verify product xml
productCode - code the code of the product to verifyxpath - the XPath expression to evaluateexpectedXml - the expected XMLpublic void verifyCartTotalForBillingEvent(java.lang.String billingEventCode,
double expectedTotal)
verify cart total for billing event
billingEventCode - the billing event to verify the order total forexpectedTotal - the expected order total for the billing eventpublic void getDiscountPrice(java.lang.String billingEventCode,
double expectedDiscountPrice)
get discount price
billingEventCode - the billing event to verify the discount price forexpectedDiscountPrice - the expected discount price for the billing eventpublic void setCartCurrencyTo(java.lang.String currency)
currency - the currency to switch topublic void prepareCurrency(java.lang.String currency)
currency - the currency to switch topublic void resetCurrency()
public CartModel getCartForBillingTimeAndMasterCart(java.lang.String billingTime, CartModel masterCart)
get cart for billing time and master cart
billingTime - the billing time: the (child) cart which has the this billing time is returnedmasterCart - the master order of the multi-cartCartModelpublic CartData getCartDataForBillingTimeAndMasterCart(java.lang.String billingTime, CartData masterCart)
get cart data for billing time and master cart
billingTime - the billing time: the (child) cart which has the this billing time is returnedmasterCart - the master order of the multi-cartCartDatapublic java.util.List<CartModel> getCartsForUserAndSite(java.lang.String userUid, java.lang.String siteName)
public CartModel getCartForCodeAndUser(java.lang.String cartCode, java.lang.String userUid)
public void verifyClonedChildCarts(java.lang.String originalCartCode,
java.lang.String clonedCartCode)
verify cloned child carts
Copyright © 2018 SAP SE. All Rights Reserved.