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); }
public void ThenUserShouldGoToTheLoginPage() { Globalelements.Actualresult = PropertiesCollection.ngdriver.Url; Globalelements.Expectedresult = "https://azdevacclaim.azurewebsites.net/Home/Home.aspx"; try { Assertions.assertionequals(Globalelements.Actualresult, Globalelements.Expectedresult); } catch (Exception) { Console.WriteLine("The test case failed because user did not land on the login page"); throw; } }
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; } }
public void ThenUserClicksOn(string compare) { string x = "qwrty"; Assertions.assertionequals(x, compare); }