Example #1
0
 public void Mall_NonMIlestone_WS_1291()
 {
     if (!DataParser.ReturnExecution("WS_1291"))
     {
         Assert.Ignore();
     }
     else
     {
         GoToMallHomePage mallpage = InitialPage.Go().Logon().ClickLogin().NavigateToRedeemA();
         Assert.AreEqual("Welcome to the Mall!", mallpage.GetWelcomeMsg(), "You are not in the Welcome page");
     }
 }
Example #2
0
 public void Mall_WSBrandedCards_WS_1187()
 {
     if (!DataParser.ReturnExecution("WS_1187"))
     {
         Assert.Ignore();
     }
     else
     {
         _file = "Resources\\" + client + "\\TestsData\\WS_1187.xml";
         string creditcard1      = GeneralData.GetPathCreditCard1Img(_file),
                creditcard2      = GeneralData.GetPathCreditCard2Img(_file);
         GoToMallHomePage redeem = InitialPage.Go().Logon().ClickLogin().NavigateToRedeemA();
         Assert.AreEqual("Welcome to the Mall!", redeem.GetWelcomeMsg(),
                         "Welcome Msg is not present or well written");
         redeem.SearchCompany("Work");
         Assert.AreEqual(creditcard1, redeem.GetImgFirstCreditCard(), "Credit Card 1 source is not the same");
         Assert.AreEqual(creditcard2, redeem.GetImgSecondCreditCard(), "Credit Card 2 source is not the same");
     }
 }