public class BundleCommerceKeywordLibrary extends AbstractKeywordLibrary
| Constructor and Description |
|---|
BundleCommerceKeywordLibrary() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildProductFromReference(CartData cartData) |
protected BundleTemplateData |
createComponentData(BundleTemplateData bundleTemplateData)
Helper method to re-create BundleTemplateData
|
protected ProductData |
createProductData(ProductData productData)
Helper method to re-create ProductData
|
protected java.util.List<ProductOption> |
getProductOptions(java.lang.String[] option)
Helper method to convert from String array to List of ProductOption.
|
void |
verifyCartXml(java.lang.String xpath,
java.lang.String expectedXml)
Java implementation of the robot keyword
|
void |
verifyLastModifiedEntriesIsEmpty(java.lang.String cartCode)
Java implementation of the robot keyword
|
void |
verifyProductXmlWithOption(java.lang.String xpath,
java.lang.String expectedXml,
java.lang.String productCode,
java.lang.String... option)
Java implementation of the robot keyword
|
public void verifyProductXmlWithOption(java.lang.String xpath,
java.lang.String expectedXml,
java.lang.String productCode,
java.lang.String... option)
verify product xml
xpath - the XPath expression to evaluateexpectedXml - the expected XMLproductCode - code the code of the product to verifyoption - ProductOptionpublic void verifyCartXml(java.lang.String xpath,
java.lang.String expectedXml)
verify Cart xml
xpath - the XPath expression to evaluateexpectedXml - the expected XMLpublic void verifyLastModifiedEntriesIsEmpty(java.lang.String cartCode)
verify last modified entries is empty
cartCode - the card code to verifyprotected void buildProductFromReference(CartData cartData)
protected ProductData createProductData(ProductData productData)
productData - protected BundleTemplateData createComponentData(BundleTemplateData bundleTemplateData)
bundleTemplateData - protected java.util.List<ProductOption> getProductOptions(java.lang.String[] option)
option - Copyright © 2018 SAP SE. All Rights Reserved.