Пример #1
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);
        }
Пример #2
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);
        }
Пример #3
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");
        }
        public void setUp()
        {
            String testCaseName = TestContext.CurrentContext.Test.Name;

            if (sauceLabs.Equals("yes"))
            {
                driver = stepSetUpDevice.run_driver_with_install_every_time(testCaseName, appActivityMainScreen);
            }
            else
            {
                driver = stepSetUpDevice.run_driver_without_install(testCaseName, appActivityMainScreen);
            }

            stepTermConditions = new StepsToTermsAndConditions(driver);
            stepMenuOptions    = new StepsToMenuOptions(driver);
            stepAddLocation    = new StepsToAddLocation(driver);
            stepEditLocation   = new StepsToEditLocation(driver);
        }
Пример #5
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");
        }