Exemple #1
0
    def test_12(self):
        """机构管理员受理纠纷、分配调解员"""

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

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

        orgpage = MissionCenter(self.homepage)
        orgpage.in_mission_center()
        orgpage.case_time()
        casenumber = orgpage.get_an_unaccept_case()  # 获取一个未受理纠纷编号

        case_optioninfo = {
            "编号/姓名/案号": casenumber,
            "分配调解员姓名": u"TS(宋红波)"
        }

        print(case_optioninfo["编号/姓名/案号"])
        orgpage.search_case_by_id_or_name(**case_optioninfo)  # 检索纠纷
        orgpage.case_acceptance()  # 点击受理
        orgpage.tip_agree()   # 重要提示 确定
        orgpage.info_agree()  # 信息 确定
        sleep(1)
        orgpage.case_select_mediator()
        orgpage.case_mediator_choose(**case_optioninfo)
        result = orgpage.verfc_case_assignable(casenumber)
        self.assertEquals(result, True, msg='案件分配调解员失败')
Exemple #2
0
    def test_12(self):
        """机构管理员受理纠纷、分配调解员"""

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

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

            orgpage = MissionCenter(self.homepage)
            orgpage.in_mission_center()
            orgpage.case_time()
            casenumber = orgpage.get_an_unaccept_case()  # 获取一个未受理纠纷编号

            case_optioninfo = {"编号/姓名/案号": casenumber, "分配调解员姓名": u"宋红波"}

            print(case_optioninfo["编号/姓名/案号"])
            orgpage.search_case_by_id_or_name(**case_optioninfo)  # 检索纠纷
            orgpage.case_acceptance()  # 点击受理
            orgpage.tip_agree()  # 重要提示 确定
            orgpage.info_agree()  # 信息 确定
            sleep(1)
            orgpage.case_select_mediator()
            orgpage.case_mediator_choose(**case_optioninfo)
            result = orgpage.verfc_case_assignable(casenumber)
            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