示例#1
0
 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());
 }
示例#2
0
 public void FieldValueTest()
 {
     gotoMyProduct = NorthWindService.GotoAllProducts(avtorivateData, headers, driver);
     gotoMyProduct.ClickOnNorthWind3(rosemary);
     addAndViewProduct = new AddAndViewProduct(driver);
     NUnit.Framework.Assert.AreEqual(rosemary.productName, addAndViewProduct.GetPrNameId());
     NUnit.Framework.Assert.AreEqual(rosemary.category, addAndViewProduct.GetCatId());
     NUnit.Framework.Assert.AreEqual(rosemary.supplier, addAndViewProduct.GetSupID());
     NUnit.Framework.Assert.AreEqual(rosemary.searchUnitPrice, addAndViewProduct.GetPriceId());
     NUnit.Framework.Assert.AreEqual(rosemary.quantityPerUnit, addAndViewProduct.GetQuantityId());
     NUnit.Framework.Assert.AreEqual(rosemary.unitsInStock, addAndViewProduct.GetStockId());
     NUnit.Framework.Assert.AreEqual(rosemary.unitsOnOrder, addAndViewProduct.GetOrderId());
     NUnit.Framework.Assert.AreEqual(rosemary.reorderLvl, addAndViewProduct.GetLvlId());
 }
示例#3
0
 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());
 }