Example #1
0
    def test_01(self):
        """任务中心调解类型"""

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

        casetype = None  # 设定调解类型,默认值为全部

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

            orgpage = MissionCenter(self.homepage)
            orgpage.in_mission_center()
            result = orgpage.case_type(casetype)
            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
Example #2
0
    def test_01(self):
        """任务中心调解类型"""

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

        casetype = None  # 设定调解类型,默认值为全部

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

        orgpage = MissionCenter(self.homepage)
        orgpage.in_mission_center()
        result = orgpage.case_type(casetype)
        self.assertEquals(result, True, msg='任务中心调解类型选择失败')