Пример #1
0
        public void TestMethodfillLogin()
        {
            string acualresultofsavedamount = Calculations.calculatesavedamount("1000", "10");

            Console.WriteLine("The calculated saved amount from test is " + " " + acualresultofsavedamount);
            string savedamount = CustomControlGets.GettextfromLabel(PageObjects.savedAmount(), propertytype.CssSelector);

            Console.WriteLine("The saved ammount refelected from application is" + " " + savedamount);
            Assertions.assertionequals(acualresultofsavedamount, savedamount);
            string Amountafterdiscount = CustomControlGets.Geettextfromtextbox("afterDiscount", propertytype.Model);

            Console.WriteLine("This is the amount to be paidis    " + Amountafterdiscount);
        }
Пример #2
0
        public void ThenALableShouldReadShouldDisplayOnTheScreen(string label)
        {
            string actual_labele_display = CustomControlGets.GettextfromLabel(PageObjects.Login_Screen(9), propertytype.CssSelector);

            try
            {
                Assertions.assertionequals(label, actual_labele_display);
            }
            catch (Exception e)
            {
                Console.WriteLine("The test failed because expected label is not there");
                throw;
            }
        }