Ejemplo n.º 1
0
 def objectSetup(self, oneTimeSetUp):
     #self.display = Display(visible=0, size=(1600, 1200))
     #self.display.start()
     self.tstatus = tStatus(self.driver)
     self.loginpage = LoginPage(self.driver)
     # self.loginpage.indeedJobs()
     # self.adminpswd = userPasswordRead("ADMINPSWD#", self.masani).replace(' ','').split(',')[0]
     print('SETUP 1')
Ejemplo n.º 2
0
 def objectSetup(self, oneTimeSetUp):
     self.tstatus = tStatus(self.driver)
     self.hangouts = HangOutsPage(self.driver)
     usrpswd = userPasswordRead("USRPSWD#", self.masani)
     self.adminuser = usrpswd.replace(' ','').split(',')[0]
     self.adminpswd = usrpswd.replace(' ','').split(',')[1]
     if self.hangouts.getGmailUserStatus() == False:
         self.hangouts.loginGmailUser(self.adminuser, self.adminpswd)
Ejemplo n.º 3
0
 def objectSetup(self, oneTimeSetUp):
     self.tstatus = tStatus(self.driver)
     self.newspage = NewsPage(self.driver)
     usrpswd = userPasswordRead("USRPSWD#", self.masani)
     self.adminuser = usrpswd.replace(' ', '').split(',')[0]
     self.adminpswd = usrpswd.replace(' ', '').split(',')[1]
     if self.newspage.getGmailUserStatus() == False:
         self.newspage.loginGmailUser(self.adminuser, self.adminpswd)
     self.main_tab = self.driver.current_window_handle
Ejemplo n.º 4
0
 def objectSetup(self, oneTimeSetUp):
     self.tstatus = tStatus(self.driver)
     self.loginpage = LoginPage(self.driver)
     self.loginpage.plusNet()
     self.adminpswd = userPasswordRead("ADMINPSWD#", self.masani).replace(
         ' ', '').split(',')[0]
     result = self.loginpage.verifyPageURL(
         "http://192.168.1.254/")  # Test 1
     self.tstatus.mark(result, "PlusNet Page URL verified")
     print("Result " + str(len(self.tstatus.resultList)) + "  =  " +
           str(result))
     result = self.loginpage.verifyPageTitle('Home')  # Test 2
     self.tstatus.mark(result, "PlusNet Page's Title verified")
     print("Result " + str(len(self.tstatus.resultList)) + "  =  " +
           str(result))
Ejemplo n.º 5
0
    def objectSetup(self, oneTimeSetUp):
        print('\n\nEVERY TESTS SETUP')

        desired_caps = self.driver.desired_capabilities
        mobileapp = {
            'appPackage': 'com.motors.activities',
            'appActivity': '.MainActivity'
        }

        desired_caps.update(mobileapp)
        from base.screendriverfactory import ScreenDriverFactory
        self.driver = ScreenDriverFactory.driverAppiumRemote(
            self.id(), desired_caps)
        self.tstatus = tStatus(self.driver)
        self.motorsbase = MotorsBase(self.driver)
        self.mobileapp = self.motorsbase.motorsBaseParameters(installed=False)
        self.motorsbase.gotoMotors()
Ejemplo n.º 6
0
    def objectSetup(self, oneTimeSetUp):
        print('\n\nEVERY TESTS SETUP')

        desired_caps = self.driver.desired_capabilities
        mobileapp = {
            'appPackage': 'uk.co.aifactory.chessfree',
            'appActivity': '.ChessFreeActivity'
        }
        print('\nmobileapp 2 = ' + str(mobileapp) + '\n')
        desired_caps.update(mobileapp)
        from base.screendriverfactory import ScreenDriverFactory
        self.driver = ScreenDriverFactory.driverAppiumRemote(
            self.id(), desired_caps)
        # print('\nDRIVER 2 = ' + str(self.driver) + '\n')
        self.tstatus = tStatus(self.driver)
        self.chessfree = ChessFree(self.driver)
        self.mobileapp = self.chessfree.chessFreeParameters()
        self.chessfree.gotoChessFree()
Ejemplo n.º 7
0
    def objectSetup(self, oneTimeSetUp):
        print('\n\nEVERY TESTS SETUP')

        desired_caps = self.driver.desired_capabilities
        #babylonapppkg = BabylonBase.babylonBaseParameters(self)['appPackage']
        #babylonappxtvt = BabylonBase.babylonBaseParameters(self)['appActivity']
        #mobileapp = {'appPackage': babylonapppkg, 'appActivity': babylonappxtvt}
        mobileapp = BabylonBase.babylonBaseParameters(self.id())
        print('\nmobileapp 2 = ' + str(mobileapp) + '\n')
        desired_caps.update(mobileapp)
        from base.screendriverfactory import ScreenDriverFactory
        self.driver = ScreenDriverFactory.driverAppiumRemote(
            self.id(), desired_caps)
        print('\nDRIVER 2 = ' + str(self.driver) + '\n')
        self.tstatus = tStatus(self.driver)
        self.babylon = BabylonBase(self.driver)
        self.babylonapp = self.babylon.babylonBaseParameters()
        self.babylon.gotoBabylon()
 def objectSetup(self):
     self.googlesearchpage = P01SearchGitHubCromox1(self.driver)
     self.tstatus = tStatus(self.driver)
Ejemplo n.º 9
0
 def objectSetup(self):
     self.mengkomepage = P02LoginLogoutCookie(self.driver)
     self.tstatus = tStatus(self.driver)
     print('\n--- >> SETUP')
     self.__class__.ix = self.__class__.ix + 1
Ejemplo n.º 10
0
 def objectSetup(self, oneTimeSetUp):
     #self.display = Display(visible=0, size=(1600, 1200))
     #self.display.start()
     self.tstatus = tStatus(self.driver)
     self.loginpage = LoginPage(self.driver)
Ejemplo n.º 11
0
 def objectSetup(self, oneTimeSetUp):
     self.googlesearchpage = P01SearchPixitMedia(self.driver)
     self.tstatus = tStatus(self.driver)
     self.tmpfilename = 'tmptest123.pdf'
Ejemplo n.º 12
0
 def objectSetup(self, oneTimeSetUp):
     self.tstatus = tStatus(self.driver)
     self.loginpage = LoginPage(self.driver)