public void LogoutTest() { products = NorthWindService.GotoHomePage(avtorivateData, driver); logout = new Logout(driver); logout.ClickOnNorthWind2(headers); addAndViewProduct = new AddAndViewProduct(driver); NUnit.Framework.Assert.AreEqual(headers.HeaderLogin, addAndViewProduct.GetHeader()); }
public void AddProductTest() { gotoMyProduct = NorthWindService.GotoAllProducts(avtorivateData, headers, driver); products = new AllProducts(driver); products.ClickOnCreate(); addAndViewProduct = new AddAndViewProduct(driver); addAndViewProduct.SetPrName(rosemary); addAndViewProduct.SetCat(rosemary); addAndViewProduct.SetSup(rosemary); addAndViewProduct.SetPrice(rosemary); addAndViewProduct.SetQuantity(rosemary); addAndViewProduct.SetStock(rosemary); addAndViewProduct.SetOrder(rosemary); addAndViewProduct.SetLvl(rosemary); addAndViewProduct = new AddAndViewProduct(driver); NUnit.Framework.Assert.AreEqual(headers.allproducts, addAndViewProduct.GetHeader()); }