Exemplo n.º 1
0
 public BrowserStateTest(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     base.id                 = "Browser State Test";
     base.baseURL            = url;
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
 }
Exemplo n.º 2
0
        public void WaitForPageLoaded(int Timeout)
        {
            WebDriverBackedSelenium aDriverBackedSelenium = new WebDriverBackedSelenium(BrowserHandle, Url);

            aDriverBackedSelenium.Start();
            aDriverBackedSelenium.WaitForPageToLoad(Timeout.ToString(CultureInfo.InvariantCulture));
        }
 public SingleSignOnTest(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     base.id                 = "Single SignOn Test";
     base.baseURL            = url;
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
 }
Exemplo n.º 4
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);
 }
Exemplo n.º 5
0
 public ConnectUtility(ParentTest test)
 {
     selenium    = test.selenium;
     baseurl     = test.baseURL;
     quality     = test.quality;
     currenttest = test;
 }
Exemplo n.º 6
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 RegisterUserTest(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     base.id                 = "Register User Test";
     base.baseURL            = url;
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
 }
 public void beforeClass()
 {
     Driver   = new FirefoxDriver();
     Selenium = new WebDriverBackedSelenium(Driver, Utils.baseUrl);
     Selenium.Start();
     Selenium.WindowMaximize();
 }
Exemplo n.º 9
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");
             */
        }
Exemplo n.º 10
0
        /*
         * Params - Webdriver
         * Return Type - Selenium RC instance
         * Description - This method will take Webdriver instance as parameter and returns Selenium RC as return type. This
         *               Selenium RC instance can later be used to work with Selenium RC methods and properties.
         */
        public ISelenium Initial_Setup_SeleniumOne()
        {
            ISelenium sel = new WebDriverBackedSelenium(driver, ConfigurationManager.AppSettings["URL"]);

            sel.Start();
            return(sel);
        }
Exemplo n.º 11
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);
 }
Exemplo n.º 12
0
 public Buy_PurchaseTest(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id                 = "Buy Purchase Test!!!";
     base.baseURL            = url;
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
 }
Exemplo n.º 13
0
 public MyGarmin_SignIn(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id                 = "MyGarmin Sign In";
     base.baseURL            = url;
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
 }
        public ShippingAddressPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver  = webdriver;
            quality = new QualityCheck(test);

            /*
             * newAddressOption = driver.UnderlyingWebDriver.FindElement(By.Id("newAddressRadio"));
             */
        }
Exemplo 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);
        }
Exemplo n.º 17
0
 public ConnectSignIn(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id                 = "ConnectSignIn"; //Enter Test Name
     base.baseURL            = url;             //Be sure to update the selenium.Open command with baseURL
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
     base.quality            = new QualityCheck(this);
     base.description        = "**A simple Sign In test**";
 }
Exemplo n.º 18
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']"));
             */
        }
 public Kenwood_Navigation(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id                 = "Kenwood Navigation"; //Enter Test Name
     base.baseURL            = url;                  //Be sure to update the selenium.Open command with baseURL
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
     base.quality            = new QualityCheck(this);
     base.description        = "**Place your description of the test purpose here for more clarity in reporting**";
 }
Exemplo n.º 20
0
 public Kenwood_NoScanSD_CheckLatestMapForKenwood(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id                 = "Kenwood_NoScanSD_CheckLatestMapForKenwood"; //Enter Test Name
     base.baseURL            = url;                                         //Be sure to update the selenium.Open command with baseURL
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
     base.quality            = new QualityCheck(this);
     base.description        = "**Kenwood_NoScanSD_CheckLatestMapForKenwood**";
     ken = new KenwoodFunctions(quality, selenium);
 }
Exemplo n.º 21
0
 public Connect_Dashboard_EditName(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id                 = "Connect_Dashboard_EditName"; //Enter Test Name
     base.baseURL            = url;                          //Be sure to update the selenium.Open command with baseURL
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
     base.quality            = new QualityCheck(this);
     base.description        = "**Log on and edit the activity name on the Dashboard, and test the 75 character validation**";
     utility                 = new ConnectUtility(this);
 }
 public Connect_ManualActivity_NameCharLimit(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id                 = "Connect_ManualActivity_NameCharLimit"; //Enter Test Name
     base.baseURL            = url;                                    //Be sure to update the selenium.Open command with baseURL
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
     base.quality            = new QualityCheck(this);
     base.description        = "**Try to make an manual activity with a name with more than 75 Characters**";
     utility                 = new ConnectUtility(this);
 }
 public Connect_CheckFirmware_FR210(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id                 = "CheckFirmware_FR210"; //Enter Test Name
     base.baseURL            = url;                   //Be sure to update the selenium.Open command with baseURL
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
     base.quality            = new QualityCheck(this);
     base.description        = "**Create a user, upload a file from an FR 210 and check for the firmware update notice**";
     utility                 = new ConnectUtility(this);
 }
Exemplo n.º 24
0
 public Kenwood_ActivateYourMap_GetUnlockCode(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id                 = "ActivateYourMap_GetUnlockCode"; //Enter Test Name
     base.baseURL            = url;                             //Be sure to update the selenium.Open command with baseURL
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
     base.quality            = new QualityCheck(this);
     base.description        = "**Enter an unlock code for maps**";
     ken = new KenwoodFunctions(quality, selenium);
 }
 public Connect_Dashboard_NoUploads(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id                 = "Connect_Dashboard_NoUploads"; //Enter Test Name
     base.baseURL            = url;                           //Be sure to update the selenium.Open command with baseURL
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
     base.quality            = new QualityCheck(this);
     base.description        = "**Create an account with no activities and make sure that the appropriate message shows.**";
     utility                 = new ConnectUtility(this);
 }
Exemplo n.º 26
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);
        }
 public Kenwood_CheckEach_Other_DeviceType_fortheProductUpdates(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id                 = "CheckEach_Other_DeviceType_fortheProductUpdates"; //Enter Test Name
     base.baseURL            = url;                                               //Be sure to update the selenium.Open command with baseURL
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
     base.quality            = new QualityCheck(this);
     base.description        = "**CheckEach_Other_DeviceType_fortheProductUpdates**";
     ken = new KenwoodFunctions(quality, selenium);
 }
Exemplo n.º 28
0
 public Connect_Dashboard_ActivityType(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id                 = "Connect_Dashboard_ActivityType"; //Enter Test Name
     base.baseURL            = url;                              //Be sure to update the selenium.Open command with baseURL
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
     base.quality            = new QualityCheck(this);
     base.description        = "**Go to the dashboard and edit the Activity Type**";
     utility                 = new ConnectUtility(this);
 }
 public Kenwood_SignOut_ValidationTest(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id                 = "Sign Out"; //Enter Test Name
     base.baseURL            = url;        //Be sure to update the selenium.Open command with baseURL
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
     base.quality            = new QualityCheck(this);
     base.description        = "**Make sure Sign Out Works**";
     ken = new KenwoodFunctions(quality, selenium);
 }
 public Kenwood_CreateAccount_ValidationTest(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id                 = "Create Account Validation"; //Enter Test Name
     base.baseURL            = url;                         //Be sure to update the quality.Open command with baseURL
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
     base.quality            = new QualityCheck(this);
     base.description        = "**Place your description of the test purpose here for more clarity in reporting**";
     ken = new KenwoodFunctions(quality, selenium);
 }