public void Setup() { LaunchFirefox(); //driver.FindElement(By.LinkText("Add Product")).Click(); gen = new GenerateRandomProductUtil(isLoggingDebug, isLoggingVerbose, isLoggingProductFullDetailsOnCreation, GenerateRandomProductUtil.uiTestCall); Wait(500); }
public void Setup() { Debug.WriteLine("Intiating tests..."); //FirefoxProfile fxProfile = new FirefoxProfile(); //fxProfile.SetPreference("browser.download.folderList", 2); //fxProfile.SetPreference("browser.download.manager.showWhenStarting", false); //fxProfile.SetPreference("browser.download.dir", @"D:\Mercurius.Images\UITestImages\test automation\test"); //fxProfile.SetPreference("browser.helperApps.neverAsk.saveToDisk", "image/jpeg"); //driver = new FirefoxDriver(fxProfile); driver = new FirefoxDriver(); gen = new GenerateRandomProductUtil(true, false, false, GenerateRandomProductUtil.uiTestCall); }
public void TestSetup() { //LoadSheets(); gen = new GenerateRandomProductUtil(isLoggingDebug, isLoggingVerbose, isLoggingProductFullDetailsOnCreation, GenerateRandomProductUtil.serviceCall); _container = new WindsorContainer(); ComponentRegistrar.AddServicesTo(_container); ComponentRegistrar.AddNestConnection(_container); ComponentRegistrar.AddGenericRepositoriesTo(_container); ComponentRegistrar.AddCustomRepositoriesTo(_container); ComponentRegistrar.AddUnitOfWorkTo(_container); ComponentRegistrar.AddDatabaseFactoryPerThreadTo(_container); service = _container.Resolve <IProductService>(); indexService = _container.Resolve <IIndexingProductService>(); //_productImageService = _container.Resolve<IProductImageService>(); }