コード例 #1
0
    def setUpClass(self):
        self.driver = webdriver.Chrome()
        self.driver.implicitly_wait(30)
        self.driver.maximize()

        enterCompPage = EnterCompPage(self.driver)
        enterCompPage.enter_comp(CompInfo.ENTER_COMP_INFO)
コード例 #2
0
    def setUp(self):
        self.driver = webdriver.Chrome()
        # self.driver = webdriver.PhantomJS()
        self.driver.implicitly_wait(30)
        self.driver.maximize_window()

        enterCompPage = EnterCompPage(self.driver)
        enterCompPage.enter_comp(CompInfo.ENTER_COMP_INFO)
コード例 #3
0
    def setUpClass( self ):
        self.driver = webdriver.Chrome()
        global publicPage
        publicPage = PublicPage(self.driver)
        publicPage.max_window()
        self.driver.implicitly_wait(30)

        enterCompPage = EnterCompPage(self.driver)
        enterCompPage.enter_comp(CompInfo.ENTER_COMP_INFO)
コード例 #4
0
    def setUpClass(self):
        # self.driver = webdriver.PhantomJS()
        self.driver = webdriver.Chrome()
        self.driver.implicitly_wait(30)
        self.driver.set_window_size(1280, 800)

        # enterCompPage = EnterCompany(self.driver)
        # enterCompPage.goToCompany()

        enterCompPage = EnterCompPage(self.driver)
        enterCompPage.enter_comp(CompInfo.ENTER_COMP_INFO)
コード例 #5
0
    def setUpClass(self):
        # 登录->进入账套
        self.driver = webdriver.Chrome()
        # self.driver = webdriver.PhantomJS()
        self.driver.implicitly_wait(30)

        if BaseClass.get_system_name() == 'Windows':
            self.driver.maximize_window()

        enterCompPage = EnterCompPage(self.driver)
        enterCompPage.enter_comp(CompInfo.ENTER_COMP_INFO)
コード例 #6
0
    @classmethod
    def setUpClass( self ):
        # def setUp(self):
        # self.driver = webdriver.PhantomJS()
        self.driver = webdriver.Chrome()
        PublicPage(self.driver).max_window()
        self.driver.implicitly_wait(30)

<<<<<<< HEAD
        # 屏幕最大化
        BaseClass(self.driver).max_window()

=======
>>>>>>> f0d2c843669e5d27aaaabf803bdbe17b8112a2b2
        enterCompPage = EnterCompPage(self.driver)
        enterCompPage.enter_comp(CompInfo.ENTER_COMP_INFO)

    @classmethod
    def tearDownClass( self ):
        # def tearDown(self):
        self.driver.quit()

    # 纪录完所有数据,收票列表本月收票总额为263,097.00

    def test_record_input_invoice( self ):
        """cai-记多条收票 测试"""
        readExcel = ReadExcel(self.record_invoice_data_dir)
        excel_data = readExcel.get_value_in_order('记所有类别的收票yb')
        dangerPage = DangerPage(self.driver)
        alertPage = AlertPage(self.driver)
コード例 #7
0
ファイル: enter_comp_spec.py プロジェクト: oracle614/e2e-test
 def test_enter_comp(self):
     page = EnterCompPage(self.driver)
     page.enter_comp(CompInfo.ENTER_COMP_INFO)