Esempio n. 1
0
 public BillingAddressPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     //continueButton = driver.UnderlyingWebDriver.FindElement(By.ClassName("checkout-button"));
     addressTable = new List <IWebElement>();
     quality      = new QualityCheck(test);
 }
Esempio n. 2
0
        //To Do: Rework verification
        public Header(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver = webdriver;

            /*
             * headerDiv = driver.UnderlyingWebDriver.FindElement(By.LinkText("my account"));
             * accountLink_US_UK = driver.UnderlyingWebDriver.FindElement(By.LinkText("nl_Votre compte"));
             * accountLink_BE = driver.UnderlyingWebDriver.FindElement
             *  (By.XPath("//div[@id='account']/div/a[contains(@href, 'view-cart.ep')]"));
             */
            en_headerText_CustomerLoggedIn       = new string[3];
            en_headerText_CustomerNotLoggedIn    = new string[3];
            fr_headerText_CustomerLoggedIn       = new string[3];
            fr_headerText_CustomerNotLoggedIn    = new string[3];
            du_headerText_CustomerLoggedIn       = new string[4];
            du_headerText_CustomerNotLoggedIn    = new string[3];
            en_headerText_CustomerNotLoggedIn[0] = "items in my cart";
            en_headerText_CustomerNotLoggedIn[1] = "my account";
            en_headerText_CustomerNotLoggedIn[2] = "wish list";
            du_headerText_CustomerNotLoggedIn[0] = "nl_articles dans votre panier";
            du_headerText_CustomerNotLoggedIn[1] = "nl_Votre compte";
            du_headerText_CustomerNotLoggedIn[2] = "nl_Vos envies cadeaux";
            fr_headerText_CustomerNotLoggedIn[0] = "articles dans votre panier";
            fr_headerText_CustomerNotLoggedIn[1] = "Votre compte";
            fr_headerText_CustomerNotLoggedIn[2] = "Vos envies cadeaux";
            en_headerText_CustomerLoggedIn[0]    = "items in my cart";
            en_headerText_CustomerLoggedIn[1]    = "my account";
            en_headerText_CustomerLoggedIn[2]    = "wish list";
            //properties = SeleniumPropertyManager.getInstance(properties); //These will be set up separately
            //browser = properties.getProperty();
            quality = new QualityCheck(test);
        }
 public ConnectUtility(ParentTest test)
 {
     selenium = test.selenium;
     baseurl = test.baseURL;
     quality = test.quality;
     currenttest = test;
 }
Esempio n. 4
0
        //To Do: Feed URL's
        public HomePage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver           = webdriver;
            usStoreURL       = test.baseURL;
            ukStoreURL       = test.baseURL; //prod doesn't have a separate address for foreign languages
            beStoreURL       = test.baseURL;
            digitalStoreURL  = test.baseURL; //prod doesn't have a separate address for foreign languages
            dutchCategories  = new string[3];
            frenchCategories = new string[3];
            driver.Open(usStoreURL);

            quality = new QualityCheck(test);

            Thread.Sleep(2000);
            searchInputText = driver.UnderlyingWebDriver.FindElement(By.Id("searchbox"));
            //By.XPath("//div[@id='search']//input[@name='keyWords']"));
            searchButton = driver.UnderlyingWebDriver.FindElement(By.ClassName("searchbutton"));
            //By.XPath("//div[@id='search']//input[@value='search']"));
            wishlistLink = driver.UnderlyingWebDriver.FindElement(By.LinkText("my cart"));
            //wishlistLink = driver.UnderlyingWebDriver.FindElement(By.LinkText("wish list"));
            //categoryDiv = driver.UnderlyingWebDriver.FindElement(By.Id("wrapper"));
            categoryDiv = driver.UnderlyingWebDriver.FindElement(By.Id("checkin"));


            //Investigate reworking URL's

            /*
             * properties = SeleniumPropertyManager.getInstance();
             * usStoreURL = properties.getProperty("selenium.session.baseurl.us");
             * ukStoreURL = properties.getProperty("selenium.session.baseurl.uk");
             * beStoreURL = properties.getProperty("selenium.session.baseurl.be");
             * digitalStoreURL = properties.getProperty("selenium.session.baseurl.digital");
             */
        }
Esempio n. 5
0
 public ConnectUtility(ParentTest test)
 {
     selenium    = test.selenium;
     baseurl     = test.baseURL;
     quality     = test.quality;
     currenttest = test;
 }
 public BillingAddressPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     //continueButton = driver.UnderlyingWebDriver.FindElement(By.ClassName("checkout-button"));
     addressTable = new List<IWebElement>();
     quality = new QualityCheck(test);
 }
Esempio n. 7
0
 //To Do: Rework verification
 public Header(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     /*
     headerDiv = driver.UnderlyingWebDriver.FindElement(By.LinkText("my account"));
     accountLink_US_UK = driver.UnderlyingWebDriver.FindElement(By.LinkText("nl_Votre compte"));
     accountLink_BE = driver.UnderlyingWebDriver.FindElement
         (By.XPath("//div[@id='account']/div/a[contains(@href, 'view-cart.ep')]"));
      */
     en_headerText_CustomerLoggedIn = new string[3];
     en_headerText_CustomerNotLoggedIn = new string[3];
     fr_headerText_CustomerLoggedIn = new string[3];
     fr_headerText_CustomerNotLoggedIn = new string[3];
     du_headerText_CustomerLoggedIn = new string[4];
     du_headerText_CustomerNotLoggedIn = new string[3];
     en_headerText_CustomerNotLoggedIn[0] = "items in my cart";
     en_headerText_CustomerNotLoggedIn[1] = "my account";
     en_headerText_CustomerNotLoggedIn[2] = "wish list";
     du_headerText_CustomerNotLoggedIn[0] = "nl_articles dans votre panier";
     du_headerText_CustomerNotLoggedIn[1] = "nl_Votre compte";
     du_headerText_CustomerNotLoggedIn[2] = "nl_Vos envies cadeaux";
     fr_headerText_CustomerNotLoggedIn[0] = "articles dans votre panier";
     fr_headerText_CustomerNotLoggedIn[1] = "Votre compte";
     fr_headerText_CustomerNotLoggedIn[2] = "Vos envies cadeaux";
     en_headerText_CustomerLoggedIn[0] = "items in my cart";
     en_headerText_CustomerLoggedIn[1] = "my account";
     en_headerText_CustomerLoggedIn[2] = "wish list";
     //properties = SeleniumPropertyManager.getInstance(properties); //These will be set up separately
     //browser = properties.getProperty();
     quality = new QualityCheck(test);
 }
Esempio n. 8
0
        //To Do: Feed URL's
        public HomePage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver = webdriver;
            usStoreURL = test.baseURL;
            ukStoreURL = test.baseURL; //prod doesn't have a separate address for foreign languages
            beStoreURL = test.baseURL;
            digitalStoreURL = test.baseURL;//prod doesn't have a separate address for foreign languages
            dutchCategories = new string[3];
            frenchCategories = new string[3];
            driver.Open(usStoreURL);

            quality = new QualityCheck(test);

            Thread.Sleep(2000);
            searchInputText = driver.UnderlyingWebDriver.FindElement(By.Id("searchbox"));
                //By.XPath("//div[@id='search']//input[@name='keyWords']"));
            searchButton = driver.UnderlyingWebDriver.FindElement(By.ClassName("searchbutton"));
                //By.XPath("//div[@id='search']//input[@value='search']"));
            wishlistLink = driver.UnderlyingWebDriver.FindElement(By.LinkText("my cart"));
            //wishlistLink = driver.UnderlyingWebDriver.FindElement(By.LinkText("wish list"));
            //categoryDiv = driver.UnderlyingWebDriver.FindElement(By.Id("wrapper"));
            categoryDiv = driver.UnderlyingWebDriver.FindElement(By.Id("checkin"));

            //Investigate reworking URL's
            /*
            properties = SeleniumPropertyManager.getInstance();
            usStoreURL = properties.getProperty("selenium.session.baseurl.us");
            ukStoreURL = properties.getProperty("selenium.session.baseurl.uk");
            beStoreURL = properties.getProperty("selenium.session.baseurl.be");
            digitalStoreURL = properties.getProperty("selenium.session.baseurl.digital");
             */
        }
 public CreateAddressPage(Customer consumer, WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     this.customer = consumer;
     address = new Address(customer);
     customer.setAddress(address);
     quality = new QualityCheck(test);
 }
 public ShippingAddressPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     quality = new QualityCheck(test);
     /*
     newAddressOption = driver.UnderlyingWebDriver.FindElement(By.Id("newAddressRadio"));
      */
 }
Esempio n. 11
0
 public CartPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     /*
     checkoutBtn = driver.UnderlyingWebDriver.FindElement(By.Name("cartCheckout"));
      */
     quality = new QualityCheck(test);
 }
 public DeliveryOptionsPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     /*
     continueBtn = driver.UnderlyingWebDriver.FindElement(By.ClassName("checkout-button"));
      */
     quality = new QualityCheck(test);
 }
 public ManageAccountPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     quality = new QualityCheck(test);
     /*
     addAddressBtn_US_UK= driver.UnderlyingWebDriver.FindElement(By.XPath("//input[@value='Add Address']"));
     addAddressBtn_BE = driver.UnderlyingWebDriver.FindElement(By.XPath("//input[@value='nl_Ajouter Addresse']"));
      */
 }
        public ShippingAddressPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver  = webdriver;
            quality = new QualityCheck(test);

            /*
             * newAddressOption = driver.UnderlyingWebDriver.FindElement(By.Id("newAddressRadio"));
             */
        }
Esempio n. 15
0
        public CartPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver = webdriver;

            /*
             * checkoutBtn = driver.UnderlyingWebDriver.FindElement(By.Name("cartCheckout"));
             */
            quality = new QualityCheck(test);
        }
        public DeliveryOptionsPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver = webdriver;

            /*
             * continueBtn = driver.UnderlyingWebDriver.FindElement(By.ClassName("checkout-button"));
             */
            quality = new QualityCheck(test);
        }
Esempio n. 17
0
 public SignInPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     quality = new QualityCheck(test);
     /*
     accountDiv = driver.UnderlyingWebDriver.FindElement(By.Id("login-state-default"));
     registerButton = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@class='fieldset-footer']/input[@value='Register']"));
     registerButton_BE = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@class='fieldset-footer']/input[@value='nl_Registre']"));
      */
 }
Esempio n. 18
0
 public ProductPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     /*
     price = driver.UnderlyingWebDriver.FindElement(By.Id("lowestPrice"));
     addToCartBtn = driver.UnderlyingWebDriver.FindElement(By.Id("addToCartSubmit"));
     productSku = driver.UnderlyingWebDriver.FindElement(By.Id("productSku"));
      */
     qualtiy = new QualityCheck(test);
 }
Esempio n. 19
0
        public ManageAccountPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver  = webdriver;
            quality = new QualityCheck(test);

            /*
             * addAddressBtn_US_UK= driver.UnderlyingWebDriver.FindElement(By.XPath("//input[@value='Add Address']"));
             * addAddressBtn_BE = driver.UnderlyingWebDriver.FindElement(By.XPath("//input[@value='nl_Ajouter Addresse']"));
             */
        }
Esempio n. 20
0
        public SignInPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver  = webdriver;
            quality = new QualityCheck(test);

            /*
             * accountDiv = driver.UnderlyingWebDriver.FindElement(By.Id("login-state-default"));
             * registerButton = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@class='fieldset-footer']/input[@value='Register']"));
             * registerButton_BE = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@class='fieldset-footer']/input[@value='nl_Registre']"));
             */
        }
Esempio n. 21
0
        public ProductPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver = webdriver;

            /*
             * price = driver.UnderlyingWebDriver.FindElement(By.Id("lowestPrice"));
             * addToCartBtn = driver.UnderlyingWebDriver.FindElement(By.Id("addToCartSubmit"));
             * productSku = driver.UnderlyingWebDriver.FindElement(By.Id("productSku"));
             */
            qualtiy = new QualityCheck(test);
        }
Esempio n. 22
0
 private void AssignValues(ParentTest test)
 {
     test.username            = username;
     test.password            = password;
     test.fullname            = fullname;
     test.unitId              = unitId;
     test.unitIdNotRegistered = unitIdNotRegistered;
     test.unitIdRegistered    = unitIdRegistered;
     test.validationCode      = validationCode;
     test.productKey          = productKey;
 }
        public BillingAndReviewPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver = webdriver;
            //cardHolderName = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.cardHolderName"));
            //cardType = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.cardType"));
            //cvvCode = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.cvv2Code"));
            //expiryMonth = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.expiryMonth"));
            //expiryYear = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.expiryYear"));
            //saveCreditCard = driver.UnderlyingWebDriver.FindElement(By.Name("saveCreditCardForFutureUse"));
            //checkoutBtn = driver.UnderlyingWebDriver.FindElement(By.ClassName("checkout-button"));
            //cardNumber = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.unencryptedCardNumber"));

            divList = new List <IWebElement>();
            quality = new QualityCheck(test);
        }
        public BillingAndReviewPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver = webdriver;
            //cardHolderName = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.cardHolderName"));
            //cardType = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.cardType"));
            //cvvCode = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.cvv2Code"));
            //expiryMonth = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.expiryMonth"));
            //expiryYear = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.expiryYear"));
            //saveCreditCard = driver.UnderlyingWebDriver.FindElement(By.Name("saveCreditCardForFutureUse"));
            //checkoutBtn = driver.UnderlyingWebDriver.FindElement(By.ClassName("checkout-button"));
            //cardNumber = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.unencryptedCardNumber"));

            divList = new List<IWebElement>();
            quality = new QualityCheck(test);
        }
Esempio n. 25
0
 public CategoryPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     subCategories_duOnTheRoad = new string[4];
     subCategories_frOnTheRoad = new string[4];
     subCategories_frOnTheRoad[0] = "fr_Motorcycles";
     subCategories_frOnTheRoad[1] = "fr_Automotive";
     subCategories_frOnTheRoad[2] = "fr_Trucking";
     subCategories_frOnTheRoad[3] = "fr_Maps";
     subCategories_duOnTheRoad[0] = "du_Motorcycles";
     subCategories_duOnTheRoad[1] = "du_Automotive";
     subCategories_duOnTheRoad[2] = "du_Trucking";
     subCategories_duOnTheRoad[3] = "du_Maps";
     categoryDiv = driver.UnderlyingWebDriver.FindElement(By.Id("Side"));
     quality = new QualityCheck(test);
 }
Esempio n. 26
0
 public CategoryPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     subCategories_duOnTheRoad    = new string[4];
     subCategories_frOnTheRoad    = new string[4];
     subCategories_frOnTheRoad[0] = "fr_Motorcycles";
     subCategories_frOnTheRoad[1] = "fr_Automotive";
     subCategories_frOnTheRoad[2] = "fr_Trucking";
     subCategories_frOnTheRoad[3] = "fr_Maps";
     subCategories_duOnTheRoad[0] = "du_Motorcycles";
     subCategories_duOnTheRoad[1] = "du_Automotive";
     subCategories_duOnTheRoad[2] = "du_Trucking";
     subCategories_duOnTheRoad[3] = "du_Maps";
     categoryDiv = driver.UnderlyingWebDriver.FindElement(By.Id("Side"));
     quality     = new QualityCheck(test);
 }
 public CreateAccountPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     customer = new Customer();
     windowSet = new List<string>();
     /*
     name = driver.UnderlyingWebDriver.FindElement(By.Id("name"));
     userName = driver.UnderlyingWebDriver.FindElement(By.Id("username"));
     emailAddress = driver.UnderlyingWebDriver.FindElement(By.Id("email"));
     phone = driver.UnderlyingWebDriver.FindElement(By.Id("phoneNumber"));
     password = driver.UnderlyingWebDriver.FindElement(By.Id("password"));
     passwordConfirmation = driver.UnderlyingWebDriver.FindElement(By.Id("passwordMatch"));
     createAccountBtn = driver.UnderlyingWebDriver.FindElement(By.Id("submitBtn"));
     continueBtn_BE = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@class='fieldset-footer']/input[@value='nl_Continuer']"));
      */
     quality = new QualityCheck(test);
     utility = new ConnectUtility(test);
 }
Esempio n. 28
0
        public CreateAccountPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver    = webdriver;
            customer  = new Customer();
            windowSet = new List <string>();

            /*
             * name = driver.UnderlyingWebDriver.FindElement(By.Id("name"));
             * userName = driver.UnderlyingWebDriver.FindElement(By.Id("username"));
             * emailAddress = driver.UnderlyingWebDriver.FindElement(By.Id("email"));
             * phone = driver.UnderlyingWebDriver.FindElement(By.Id("phoneNumber"));
             * password = driver.UnderlyingWebDriver.FindElement(By.Id("password"));
             * passwordConfirmation = driver.UnderlyingWebDriver.FindElement(By.Id("passwordMatch"));
             * createAccountBtn = driver.UnderlyingWebDriver.FindElement(By.Id("submitBtn"));
             * continueBtn_BE = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@class='fieldset-footer']/input[@value='nl_Continuer']"));
             */
            quality = new QualityCheck(test);
            utility = new ConnectUtility(test);
        }
 public ProductListPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     quality = new QualityCheck(test);
     //price = driver.UnderlyingWebDriver.FindElement(By.Id("Sort lowest to highest")); //Unable to find.  Look to use Selenium commands
     /*
     shopByPriceFilter1 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[1]/li[1]/a"));
     shopByPriceFilter2 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[1]/li[3]/a"));
     shopByPriceFilter3 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[1]/li[3]/a"));
     shopByBrandFilter1 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[1]/a"));
     shopByBrandFilter2 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[2]/a"));
     shopByBrandFilter3 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[3]/a"));
     shopByBrandFilter4 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[4]/a"));
     shopByBrandFilter5 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[5]/a"));
     productNameDiv = driver.UnderlyingWebDriver.FindElement(By.Id("product-grid-1"));
     categoryDiv = driver.UnderlyingWebDriver.FindElement(By.ClassName("category"));
     sideMenuDiv = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/h2/.."));
     */
 }
        public ProductListPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver  = webdriver;
            quality = new QualityCheck(test);
            //price = driver.UnderlyingWebDriver.FindElement(By.Id("Sort lowest to highest")); //Unable to find.  Look to use Selenium commands

            /*
             * shopByPriceFilter1 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[1]/li[1]/a"));
             * shopByPriceFilter2 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[1]/li[3]/a"));
             * shopByPriceFilter3 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[1]/li[3]/a"));
             * shopByBrandFilter1 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[1]/a"));
             * shopByBrandFilter2 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[2]/a"));
             * shopByBrandFilter3 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[3]/a"));
             * shopByBrandFilter4 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[4]/a"));
             * shopByBrandFilter5 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[5]/a"));
             * productNameDiv = driver.UnderlyingWebDriver.FindElement(By.Id("product-grid-1"));
             * categoryDiv = driver.UnderlyingWebDriver.FindElement(By.ClassName("category"));
             * sideMenuDiv = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/h2/.."));
             */
        }
Esempio n. 31
0
        /// <summary>
        /// Parent method.  Can be overridden for an individual project and still be compatible (IE separate reporting method).
        /// </summary>
        /// <param name="test">The individual test</param>
        public virtual void TestActions(ParentTest test)
        {
            test.ResetCounters();

            AddText("Test " + test.id + " started", fonttype.TestFont);


            test.RunTest();



            passedcount  += test.passedcheck;
            errorcount   += test.failedcheck;
            warningcount += test.warningcheck;
            reporterBox.SelectionFont = errortext;
            TimeSpan timenow = DateTime.Now - test.time;

            AddText(test.error, fonttype.ErrorFont);
            if (test.failedcheck > 0)
            {
                if (test.description != null)
                {
                    AddText(test.description, fonttype.ErrorFont);
                }
                AddText("               Test failed with " +
                        test.failedcheck.ToString() + " errors, " +
                        test.passedcheck.ToString() + " passed, and " +
                        test.warningcheck.ToString() + " warning(s). Execution time: " + timenow.ToString(), fonttype.ErrorFont);
            }
            else
            {
                AddText("               Test passed with " +
                        test.passedcheck.ToString() + " passed, and " +
                        test.warningcheck.ToString() + " warning(s). Execution time: " + timenow.ToString(), fonttype.RegularFont);
            }
            reporterBox.Refresh();
        }
Esempio n. 32
0
 private void AssignValues(ParentTest test)
 {
     test.username = username;
     test.password = password;
     test.fullname = fullname;
     test.unitId = unitId;
     test.unitIdNotRegistered = unitIdNotRegistered;
     test.unitIdRegistered = unitIdRegistered;
     test.validationCode = validationCode;
     test.productKey = productKey;
 }
Esempio n. 33
0
 public Footer(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     quality = new QualityCheck(test);
 }
Esempio n. 34
0
 public ReceiptPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     quality = new QualityCheck(test);
 }
Esempio n. 35
0
 public Footer(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver  = webdriver;
     quality = new QualityCheck(test);
 }
Esempio n. 36
0
 public QualityCheck(ParentTest testtocheck)
 {
     selenium = testtocheck.selenium;
     test     = testtocheck;
     counter  = 0;
 }
Esempio n. 37
0
 /// <summary>
 /// Check to see if there are any instanced objects that can be recycled.
 /// </summary>
 /// <param name="group"></param>
 /// <param name="test"></param>
 public virtual void AddTest(List <ParentTest> group, ParentTest test)
 {
     int index = objectpool.Count;
 }
Esempio n. 38
0
 public CreateAddressPage(Customer consumer, WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver        = webdriver;
     this.customer = consumer;
     address       = new Address(customer);
     customer.setAddress(address);
     quality = new QualityCheck(test);
 }
Esempio n. 39
0
 public QualityCheck(ParentTest testtocheck)
 {
     selenium = testtocheck.selenium;
     test = testtocheck;
     counter = 0;
 }
Esempio n. 40
0
        /// <summary>
        /// Parent method.  Can be overridden for an individual project and still be compatible (IE separate reporting method).
        /// </summary>
        /// <param name="test">The individual test</param>
        public virtual void TestActions(ParentTest test)
        {
            test.ResetCounters();

            AddText("Test " + test.id + " started", fonttype.TestFont);

                test.RunTest();

            passedcount += test.passedcheck;
            errorcount += test.failedcheck;
            warningcount += test.warningcheck;
            reporterBox.SelectionFont = errortext;
            TimeSpan timenow = DateTime.Now - test.time;

            AddText(test.error, fonttype.ErrorFont);
            if (test.failedcheck > 0)
            {
                if (test.description != null)
                {
                    AddText(test.description, fonttype.ErrorFont);
                }
                AddText("               Test failed with " +
                    test.failedcheck.ToString() + " errors, " +
                    test.passedcheck.ToString() + " passed, and " +
                    test.warningcheck.ToString() + " warning(s). Execution time: " + timenow.ToString(), fonttype.ErrorFont);
            }
            else
            {
                AddText("               Test passed with " +
                    test.passedcheck.ToString() + " passed, and " +
                    test.warningcheck.ToString() + " warning(s). Execution time: " + timenow.ToString(), fonttype.RegularFont);
            }
            reporterBox.Refresh();
        }
Esempio n. 41
0
 /// <summary>
 /// Check to see if there are any instanced objects that can be recycled.
 /// </summary>
 /// <param name="group"></param>
 /// <param name="test"></param>
 public virtual void AddTest(List<ParentTest> group, ParentTest test)
 {
     int index = objectpool.Count;
 }
Esempio n. 42
0
 public ReceiptPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver  = webdriver;
     quality = new QualityCheck(test);
 }