Example #1
0
        public void setUp()
        {
            String testCaseName = TestContext.CurrentContext.Test.Name;


            stepSetUpDevice    = new StepsToSetUpDevice();
            driver             = stepSetUpDevice.run_driver_with_install(testCaseName, appActivityTermsConditions);
            stepTermConditions = new StepsToTermsAndConditions(driver);
        }
        public void OneTimeSetUp()
        {
            readCsv                    = new ReadCsvs();
            stepSetUpDevice            = new StepsToSetUpDevice();
            appActivityTermsConditions = readCsv.read_android_activities()["termAndConditions"];
            sauceLabs                  = readCsv.readCapabilities()[6].ToLower();

            if (sauceLabs.Equals("no"))
            {
                driver = stepSetUpDevice.run_driver_with_install_one_time("", appActivityTermsConditions);
                driver.Quit();
            }
        }
Example #3
0
        public void setUp()
        {
            String testCaseName = TestContext.CurrentContext.Test.Name;


            stepSetUpDevice    = new StepsToSetUpDevice();
            driver             = stepSetUpDevice.run_driver_with_install(testCaseName, appActivityMainScreen);
            stepTermConditions = new StepsToTermsAndConditions(driver);
            //stepTermConditions.accept_termns_and_conditions();
            stepMenuOptions  = new StepsToMenuOptions(driver);
            stepAddLocation  = new StepsToAddLocation(driver);
            stepEditLocation = new StepsToEditLocation(driver);
        }
Example #4
0
        public void setUp()
        {
            String testCaseName = TestContext.CurrentContext.Test.Name;

            readCsv = new ReadCsvs();
            appActivityMainScreen = readCsv.read_android_activities()["main"];

            stepSetUpDevice    = new StepsToSetUpDevice();
            driver             = stepSetUpDevice.run_driver_with_install_every_time(testCaseName, appActivityMainScreen);
            stepTermConditions = new StepsToTermsAndConditions(driver);
            //stepTermConditions.accept_termns_and_conditions();
            stepMenuOptions = new StepsToMenuOptions(driver);
            stepAddLocation = new StepsToAddLocation(driver);
        }
Example #5
0
        public void oneTimeSetUp()
        {
            String testCaseName = TestContext.CurrentContext.Test.Name;

            runtimes++;
            stepSetUpDevice    = new StepsToSetUpDevice();
            driver             = stepSetUpDevice.run_driver_with_install(testCaseName, appActivityMainScreen);
            stepTermConditions = new StepsToTermsAndConditions(driver);
            //stepTermConditions.accept_termns_and_conditions();
            stepMenuOptions  = new StepsToMenuOptions(driver);
            stepAddLocation  = new StepsToAddLocation(driver);
            StepEditLocation = new StepsToEditLocation(driver);
            bool setUpEnviroment = add_several_locations(2);

            Assert.That(setUpEnviroment, Is.True, "The Test case cannot be executed because the enviroment cannot be created");
        }
Example #6
0
        public void setUp()
        {
            String testCaseName = TestContext.CurrentContext.Test.Name;

            readCsv = new ReadCsvs();
            appActivityMainScreen = readCsv.read_android_activities()["main"];

            stepSetUpDevice    = new StepsToSetUpDevice();
            driver             = stepSetUpDevice.run_driver_with_install_every_time(testCaseName, appActivityMainScreen);
            stepTermConditions = new StepsToTermsAndConditions(driver);
            //stepTermConditions.accept_termns_and_conditions();
            stepMenuOptions  = new StepsToMenuOptions(driver);
            stepAddLocation  = new StepsToAddLocation(driver);
            stepEditLocation = new StepsToEditLocation(driver);

            bool setUpEnviroment = add_several_locations(createLocationNumber);

            Assert.That(setUpEnviroment, Is.True, "The Test case cannot be executed because the enviroment cannot be created");
        }