Example #1
0
    def test_03(self):
        """组织机构审核人"""
        driver = self.driver
        driver.get(self.base_url)

        # longin.login(self)

        # 初始化业务合同查询主页对象
        homepage = HomePage(self.driver)

        homepage.click_ehr()

        homepage.sleep(0.5)

        homepage.click_zzgl1()

        homepage.sleep(0.1)

        homepage.click_zzjgshr()

        homepage.switch_frame(
            driver.find_element_by_xpath(
                "//iframe[@src='http://oa2.eascs.com/eaoa/organauditorSearchPreAction.do']"
            ))

        homepage.switch_frame("leftFrame")

        driver.find_element_by_css_selector(".l-btn-text").click()
        # driver.find_element_by_xpath("//*[@onclick='Search()']").click()
        # driver.refresh()
        #a = driver.find_element_by_xpath("//*[@onclick='Search()']").get_attribute("value")
        #a = driver.find_element_by_xpath("//*[@onclick='Search();']").text
        a = driver.find_element_by_css_selector(".l-btn-text").text

        homepage.get_windows_img()  # 调用基类截图方法

        # 断言
        self.assertEqual(a, "查询")
        homepage.get_page_title()
        print("***测试通过***")
Example #2
0
    def test_03(self):
        """办公资料"""
        driver = self.driver
        driver.get(self.base_url)

        # longin.login(self)

        # 初始化业务合同查询主页对象
        homepage = HomePage(self.driver)

        homepage.click_ehr()

        homepage.sleep(0.5)

        homepage.click_rzgl()

        homepage.sleep(0.1)

        homepage.click_bgzl()

        homepage.switch_frame(
            driver.find_element_by_xpath(
                "//iframe[@src='http://ehr.eascs.com/employeenewOfficeDataSearchPre.action?isReturn=NO']"
            ))

        driver.find_element_by_xpath("//*[@onclick='Search();']").click()
        # driver.refresh()
        a = driver.find_element_by_xpath(
            "//*[@onclick='Search();']").get_attribute("value")
        #a = driver.find_element_by_xpath("//*[@onclick='Search();']").text

        homepage.get_windows_img()  # 调用基类截图方法

        # 断言
        self.assertEqual(a, " 查询 ")
        homepage.get_page_title()
        print("***测试通过***")
Example #3
0
    def test_07(self):
        """绩效单位树预算"""
        driver = self.driver
        driver.get(self.base_url)

        # longin.login(self)

        # 初始化业务合同查询主页对象
        homepage = HomePage(self.driver)

        homepage.click_ehr()

        homepage.sleep(0.5)

        homepage.click_zzgl1()

        homepage.sleep(0.1)

        homepage.click_jxdwsys()

        homepage.switch_frame(
            driver.find_element_by_xpath(
                "//iframe[@src='http://ehr.eascs.com/performanceTreeBudgetDeptMainPre.action?isReturn=NO']"
            ))
        homepage.switch_frame("leftFrame")

        a = driver.find_element_by_css_selector(".tree-title").text
        # driver.find_element_by_xpath("//*[@onclick='Search()']").click()
        # driver.refresh()
        #a = driver.find_element_by_xpath("//*[@onclick='Search()']").get_attribute("value")
        #a = driver.find_element_by_xpath("//*[@onclick='Search();']").text
        # a=driver.find_element_by_css_selector(".l-btn-text").text

        homepage.get_windows_img()  # 调用基类截图方法

        # 断言
        self.assertEqual(a, "怡亚通")
        homepage.get_page_title()
        print("***测试通过***")
Example #4
0
    def test_08(self):
        """绩效单位管理"""
        driver = self.driver
        driver.get(self.base_url)

        # longin.login(self)

        # 初始化业务合同查询主页对象
        homepage = HomePage(self.driver)

        homepage.click_ehr()

        homepage.sleep(0.5)

        homepage.click_zzgl1()

        homepage.sleep(0.1)

        homepage.click_jxdwgl()

        homepage.switch_frame(
            driver.find_element_by_xpath(
                "//iframe[@src='http://oa2.eascs.com/eaoa/performanceUnitManageSearchPre.do']"
            ))

        driver.find_element_by_xpath("//*[@onclick='Search()']").click()
        # driver.refresh()
        a = driver.find_element_by_xpath(
            "//*[@onclick='Search()']").get_attribute("value")
        #a = driver.find_element_by_xpath("//*[@onclick='Search();']").text
        # a=driver.find_element_by_css_selector(".l-btn-text").text

        homepage.get_windows_img()  # 调用基类截图方法

        # 断言
        self.assertEqual(a, " 查询 ")
        homepage.get_page_title()
        print("***测试通过***")
Example #5
0
    def test_02(self):
        """国代资料库"""
        driver = self.driver
        driver.get(self.base_url)

        # longin.login(self)

        # 初始化业务合同查询主页对象
        homepage = HomePage(self.driver)

        homepage.click_ehr()

        homepage.sleep(0.5)

        homepage.click_yjh()

        homepage.sleep(0.1)

        homepage.click_gdzlk()

        homepage.switch_frame(
            driver.find_element_by_xpath(
                "//iframe[@src='http://oa2.eascs.com/eaoa/countyGenerationProductsSearchPre.do']"
            ))

        driver.find_element_by_xpath("//*[@onclick='Search();']").click()
        # driver.refresh()
        a = driver.find_element_by_xpath(
            "//*[@onclick='Search();']").get_attribute("value")
        #a = driver.find_element_by_xpath("//*[@onclick='Search();']").text

        homepage.get_windows_img()  # 调用基类截图方法

        # 断言
        self.assertEqual(a, " 查询 ")
        homepage.get_page_title()
        print("***测试通过***")
Example #6
0
    def test_01(self):
        """招聘申请"""
        driver = self.driver
        driver.get(self.base_url)

        longin.login(self)

        # 初始化业务合同查询主页对象
        homepage = HomePage(self.driver)

        homepage.click_ehr()

        homepage.sleep(0.5)

        homepage.click_zpgl()

        homepage.sleep(0.1)

        homepage.click_zpsq()

        homepage.switch_frame(
            driver.find_element_by_xpath(
                "//iframe[@src='http://ehr.eascs.com/recruitmentManageSearchPre.action?isReturn=NO']"
            ))

        driver.find_element_by_xpath("//*[@onclick='Search();']").click()
        # driver.refresh()
        a = driver.find_element_by_xpath(
            "//*[@onclick='Search();']").get_attribute("value")
        #a = driver.find_element_by_xpath("//*[@onclick='Search();']").text
        # a=driver.find_element_by_css_selector(".l-btn-text").text

        homepage.get_windows_img()  # 调用基类截图方法

        # 断言
        self.assertEqual(a, " 查询 ")
        homepage.get_page_title()
        print("***测试通过***")
Example #7
0
    def test_03(self):
        """中高层目标责任书"""
        driver = self.driver
        driver.get(self.base_url)

        # longin.login(self)

        # 初始化业务合同查询主页对象
        homepage = HomePage(self.driver)

        homepage.click_ehr()

        homepage.sleep(0.5)

        homepage.click_jxgl()

        homepage.sleep(0.1)

        homepage.click_zgcmbzrs()

        homepage.switch_frame(
            driver.find_element_by_xpath(
                "//iframe[@src='http://oa2.eascs.com/eaoa/assessTargetSearchPre.do']"
            ))

        driver.find_element_by_xpath("//*[@onclick='Search()']").click()
        # driver.refresh()
        a = driver.find_element_by_xpath(
            "//*[@onclick='Search()']").get_attribute("value")
        #a = driver.find_element_by_xpath("//*[@onclick='Search();']").text

        homepage.get_windows_img()  # 调用基类截图方法

        # 断言
        self.assertEqual(a, "查询")
        homepage.get_page_title()
        print("***测试通过***")
Example #8
0
    def test_08(self):
        """360反馈"""
        driver = self.driver
        driver.get(self.base_url)

        # longin.login(self)

        # 初始化业务合同查询主页对象
        homepage = HomePage(self.driver)

        homepage.click_ehr()

        homepage.sleep(0.5)

        homepage.click_pxgl()

        homepage.sleep(0.1)

        homepage.click_360fk()

        homepage.switch_frame(driver.find_element_by_xpath(
            "//iframe[@src='http://ehr.eascs.com/assessmentSearchPre.action']"))

        # driver.find_element_by_xpath("//*[@onclick='Search()']").click()
        # driver.refresh()
        a = driver.find_element_by_css_selector(
            ".datagrid-cell.datagrid-cell-c1-theme").text
        # a = driver.find_element_by_xpath("//*[@onclick='Search();']").text

        homepage.get_windows_img()  # 调用基类截图方法

        # 断言
        self.assertEqual(a, "问卷主题")
        homepage.get_page_title()
        print("***测试通过***")
Example #9
0
    def test_08(self):
        """员工调休管理"""
        driver = self.driver
        driver.get(self.base_url)

        # longin.login(self)

        # 初始化业务合同查询主页对象
        homepage = HomePage(self.driver)

        homepage.click_ehr()

        homepage.sleep(0.5)

        homepage.click_kqgl()

        homepage.sleep(0.1)

        homepage.click_ygtxgl()

        homepage.switch_frame(
            driver.find_element_by_xpath(
                "//iframe[@src='http://ehr.eascs.com/overtimeSearchPre.action']"
            ))

        driver.find_element_by_xpath("//*[@onclick='Search()']").click()
        # driver.refresh()
        a = driver.find_element_by_xpath(
            "//*[@onclick='Search()']").get_attribute("value")
        #a = driver.find_element_by_xpath("//*[@onclick='Search();']").text

        homepage.get_windows_img()  # 调用基类截图方法

        # 断言
        self.assertEqual(a, " 查询 ")
        homepage.get_page_title()
        print("***测试通过***")