Created
December 3, 2016 11:50
-
-
Save angelovstanton/462e3bef27e25ea4dab8772613db5bb4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void Purchase_SimpleBehaviourEngine() | |
{ | |
var itemUrl = "/Selenium-Testing-Cookbook-Gundecha-Unmesh/dp/1849515743"; | |
var itemPrice = "40.49"; | |
var clientPurchaseInfo = new ClientPurchaseInfo( | |
new ClientAddressInfo() | |
{ | |
FullName = "John Smith", | |
Country = "United States", | |
Address1 = "950 Avenue of the Americas", | |
State = "New York", | |
City = "New York City", | |
Zip = "10001-2121", | |
Phone = "00164644885569" | |
}); | |
clientPurchaseInfo.CouponCode = "99PERDIS"; | |
var clientLoginInfo = new ClientLoginInfo() | |
{ | |
Email = "g3984159@trbvm.com", | |
Password = "ASDFG_12345" | |
}; | |
PerfectSystemTestsDesign.Behaviours.Core.BehaviourExecutor.Execute( | |
new ItemPageNavigationBehaviour(itemUrl), | |
new ItemPageBuyBehaviour(), | |
new PreviewShoppingCartPageProceedBehaviour(), | |
new SignInPageLoginBehaviour(clientLoginInfo), | |
new ShippingAddressPageFillShippingBehaviour(clientPurchaseInfo), | |
new ShippingAddressPageFillDifferentBillingBehaviour(clientPurchaseInfo), | |
new ShippingAddressPageContinueBehaviour(), | |
new ShippingPaymentPageContinueBehaviour(), | |
new PlaceOrderPageAssertFinalAmountsBehaviour(itemPrice)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment