Ejemplo n.º 1
0
    def test_14(self):
        """机构管理员查看进度"""

        org_admin = {"机构账号": "5958234274", "机构密码": "123456"}
        case_optioninfo = {
            "编号/姓名/案号": "1661014720F65",
        }

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

            orgpage = MissionCenter(self.homepage)
            orgpage.in_mission_center()
            orgpage.case_time()

            orgpage.search_case_by_id_or_name(**case_optioninfo)  # 检索纠纷
            result = orgpage.case_progress()  # 点击查看进度
            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
Ejemplo n.º 2
0
    def test_14(self):
        """机构管理员查看进度"""

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

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

        orgpage = MissionCenter(self.homepage)
        orgpage.in_mission_center()
        orgpage.case_time()
        case_optioninfo = {
            "编号/姓名/案号": "1661014720F65",
        }
        orgpage.search_case_by_id_or_name(**case_optioninfo)  # 检索纠纷
        result = orgpage.case_progress()  # 点击查看进度
        self.assertEquals(result, True, msg='查看进度失败')