public void EditATimeAndMaterialRecord() { HomePage homeInstance = new HomePage(driver); homeInstance.VerifyHomePage(); homeInstance.ClickAdminstration(); homeInstance.ClickTimenMaterial(); string typecode = "Material"; string code = "Liz"; string description = "Test"; string price = "$1.00"; string newtypecode = "Material"; string newcode = "Liz"; string newdescription = "Test2"; string newprice = "$0.99"; //Console.WriteLine(typecode + code + description + price + newtypecode + newdescription + newprice); TimenMaterialPage tmPage = new TimenMaterialPage(driver); tmPage.ClickCreateNew(); tmPage.EnterValidDataandSave(typecode, code, description, price); string result = tmPage.EditValidDataandSave(typecode, code, description, price, newtypecode, newcode, newdescription, newprice); Assert.IsTrue("success" == result, "Edit failed"); Assert.IsTrue("RecordFound" == tmPage.ValidateData(newtypecode, newcode, newdescription, newprice), "Validate failed"); driver.Quit(); }
public void CreateATimeAndMaterialRecord() { string typecode = "Material"; string code = "Liz"; string description = "Test"; string price = "$1.00"; TimenMaterialPage tmPage = new TimenMaterialPage(driver); tmPage.ClickCreateNew(); tmPage.EnterValidDataandSave(typecode, code, description, price); Assert.IsTrue("RecordFound" == tmPage.ValidateData(typecode, code, description, price), "Created record not found"); driver.Quit(); }
public void DeletenValidate() { // class for Home page // method to verify the home // method to click administration // method to click time n material HomePage homeInstance = new HomePage(driver); homeInstance.VerifyHomePage(); homeInstance.ClickAdministration(); homeInstance.ClickTimenMaterial(); TimenMaterialPage tmPage = new TimenMaterialPage(driver /*, code, desc, price*/); //tmPage.CLickCreateNewBtn(); //tmPage.EnterValidDataandSave(); //tmPage.ValidateData(); }
public void DeleteATimeAndMaterialRecord() { TimenMaterialPage tmPage = new TimenMaterialPage(driver); HomePage homeInstance = new HomePage(driver); string typecode = "Material"; string code = "Liz"; string description = "Test"; string price = "$1.00"; tmPage.ClickCreateNew(); tmPage.EnterValidDataandSave(typecode, code, description, price); tmPage.DeleteData(typecode, code, description, price); // Verifies if the record is deleted homeInstance.ClickAdminstration(); homeInstance.ClickTimenMaterial(); Assert.IsTrue("RecordNotFound" == tmPage.ValidateData(typecode, code, description, price), "Validate Failed"); driver.Quit(); }
public void CreateTMnValidate() { //Class for Home page, // method to verify the home // method to click adminstration // method to click time n material string typecode = "Material"; string code = "Liz"; string description = "Test"; string price = "$1.00"; HomePage homeInstance = new HomePage(driver); homeInstance.VerifyHomePage(); homeInstance.ClickAdminstration(); homeInstance.ClickTimenMaterial(); TimenMaterialPage tmPage = new TimenMaterialPage(driver); tmPage.ClickCreateNew(); tmPage.EnterValidDataandSave(typecode, code, description, price); Assert.IsTrue("RecordFound" == tmPage.ValidateData(typecode, code, description, price), "Created record not found"); }