Example #1
0
    def test_08(self):
        """批量受理按钮"""

        org_admin = {"机构账号": "17612156739", "机构密码": "123456"}

        self.homepage.organization_login(org_admin["机构账号"], org_admin["机构密码"])

        orgpage = MissionCenter(self.homepage)
        orgpage.in_mission_center()
        result = orgpage.click_batch_process()
        self.assertEquals(result, True, msg='批量受理按钮点击失败')
Example #2
0
    def test_08(self):
        """批量受理按钮"""

        org_admin = {"机构账号": "17612156739", "机构密码": "123456"}

        try:
            self.homepage.organization_login(org_admin["机构账号"],
                                             org_admin["机构密码"])

            orgpage = MissionCenter(self.homepage)
            orgpage.in_mission_center()
            result = orgpage.click_batch_process()
            self.assertEquals(result, True, msg='批量受理按钮点击失败')
        except Exception as msg:
            print "EXCEPTION >> {}".format(msg)
            # class function name_class docstring
            docstr = getdoc(
                getattr(self,
                        getframeinfo(currentframe()).function))
            name = _funcname_docstring(self, docstr.decode('utf8'))
            # 截图
            self.homepage.save_screen_shot(name)
            raise