0% found this document useful (0 votes)
24 views3 pages

Feature Order Fulfillment

The document outlines a detailed scenario for creating and fulfilling a BOPIS order using MasterCard and Amex payment methods. It includes steps for adding order details, payment methods, and validating payment transactions, order quantities, and invoice statuses. The scenario concludes with checks to ensure the order is picked up and all related invoices are generated correctly.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views3 pages

Feature Order Fulfillment

The document outlines a detailed scenario for creating and fulfilling a BOPIS order using MasterCard and Amex payment methods. It includes steps for adding order details, payment methods, and validating payment transactions, order quantities, and invoice statuses. The scenario concludes with checks to ensure the order is picked up and all related invoices are generated correctly.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Feature: Order Fulfillment

Background:
Given login with default credentials

Tags:@MLMQ @BOPIS @Mastercard @Amex @Store @TC02

Scenario:Create ML MQ Bopis order Master+Amex payment Fulfill the order completely.


Validate settlement & sales posting MSG

Given "ORDER" with following attributes


| OrderId | CustomerFirstName | CustomerLastName | CustomerEmail |
CustomerPhone | OrderTotal |
| O101| vijay | chiranjeevi | [email protected] |1234567890 | 150|

And "ORDER" with following attributes


|Selling channel|OrderType | DocType |
| web | Bopis| CustomerOrder |

And Add OrderLine in "ORDER"


| OrderLineId | ItemId | DeliveryMethod | Quantity | UnitPrice |
OrderLineTotal | ShippingMethodId | OrderLineTaxDetail orderlie charge detail|
| 1 |I101| |pickupfrom store| | 2 | 50 |
100.0 | | | |

And Add OrderLine in "ORDER"

| OrderLineId | ItemId | DeliveryMethod | Quantity | UnitPrice |


OrderLineTotal | ShippingMethodId | OrderLineTaxDetail | OrderLineChargeDetail |
| 2 | I102|PickupFromStore | 1 | 50 |
50.0 | | | |

And Add PickupLocation in "ORDER.OrderLine"


| criteria | LocationId | |store name |
| OrderLineId == 1 | 0458 | | target |

And Add PickupLocation in "ORDER.OrderLine"


| criteria | LocationId | |store name |
| OrderLineId == 2 | 0458 | | target |

And Add PaymentMethod in "ORDER.Payment"


| PaymentMethodId | AccountDisplayName | AccountNumber | Amount |
CardExpiryMonth | CardExpiryYear | NameOnCard | CardType | PaymentType |
PaymentTransaction |
| paymentMaster1 | Card ending in 1111 | 111|100 | 12 |
2045 | vc | MasterCard(debit)|master card | |

And Add PaymentMethod in "ORDER.Payment"


| PaymentMethodId | AccountDisplayName | AccountNumber | Amount |
CardExpiryMonth | CardExpiryYear | NameOnCard | CardType.CardTypeId | PaymentType |
PaymentTransaction |
| paymentAmex1 | Card ending in 2222 | 222 | 50 | 12
| 2045 | vc | {{AmexTypeId(credit)|Amex | |

And Add PaymentTransaction in "ORDER.Payment.PaymentMethod"


| criteria | TransactionType | RequestedAmount |
ProcessedAmount |
| PaymentMethodId == paymentMaster1 | Authorization
| 100 | 100 |
And Add PaymentTransaction in "ORDER.Payment.PaymentMethod"
| criteria | TransactionType | RequestedAmount |
ProcessedAmount |
| PaymentMethodId == paymentAmex1 | Authorization
| 50 | 50 |

And create "ORDER"


Given "PAYMENT" for ORDER

And check if PaymentTransaction in "PAYMENT" has following values


| criteria | additionalCriteria
| ProcessedAmount | Status | PaymentResponseStatus |
| PaymentMethodId == paymentMaster1 | TransactionType == Authorization |
100.0 | Closed | Success |
| PaymentMethodId == paymentAmex1 | TransactionType == Authorization | 50.0
| Closed | Success |

Given "ORDER" with OrderId

And check if QuantityDetail in "ORDER.OrderLine" has following values


| criteria | additionalCriteria | Quantity |
| OrderLineId == 1 | StatusId == 2000 | 2 |
| OrderLineId == 2 | StatusId == 2000 | 1 |

And check if AllocationDetail in "ORDER.OrderLine" has following values


| criteria | AllocationType | OrderedQuantity | AllocationQuantity |
| OrderLineId == 1 | Pickupatstore | 2 | 2 |
| OrderLineId == 2 | Pickupatstore| 1 | 1 |

Then check if Release in "ORDER" has following values


| criteria | ShipFromLocationId |
| ReleaseId == 101|0458 |

And check if ReleaseLine in "ORDER.Release" has following values


| criteria | additionalCriteria | Quantity |
| ReleaseId == 111|ItemId == I101|2 |
| ReleaseId == 222|ItemId == I102|1 |

Then "pickup" the order with following attributes


| OrderLineId | Item | Quantity |
| 1 | Item1 | 2 |
| 2 | Item2 | 1 |

And check if the order is picked up


Given Check if Invoice is generated with the following values
| criteria | Status |
| InvoiceLine.OrderLineId == 1 | Open |
| InvoiceLine.OrderLineId == 2 | Open |

Given "PAYMENT" with OrderId

And check if PaymentTransaction in "PAYMENT" has following values


| criteria | additionalCriteria
| PaymentResponseStatus |
| PaymentMethodId == paymentMaster1 |
TransactionType.PaymentTransactionTypeId == Settlement | Success |
| PaymentMethodId == paymentAmex1 |
TransactionType.PaymentTransactionTypeId == Settlement | Success |
And check if PaymentStatus in "ORDER" has following values
| StatusId |
| 5000.000 |

Given Check if Invoice is generated with the following values


| criteria | Status.StatusId |
| InvoiceLine.OrderLineId == 1 | Closed |
| InvoiceLine.OrderLineId == 2 | Closed |

You might also like