Exemplo n.º 1
0
 def test_03(self):
     """简易案件登记-申请人-被申请人-代理人"""
     simple_jf_info = {
         "applicant": u"段志勇",
         "applicant_tel": "15895996954",
         "applicant_id": "",
         "applicant_nation": u"汉族",
         "applicant_job": u"测试工程师",
         "applicant_addr": u"1栋2单元303",
         "disputer": u"王发明",
         "disputer_tel": '13913031374',
         "disputer_nation": u"汉族",
         "disputer_job": "",
         "disputer_addr": "",
         "agent_name": u"徐传珠",
         "agent_tel": '15295745648',
         "agent_id": '321281199507077775',
         "agent_name_b": u"钱桂林",
         "agent_tel_b": '13160077223',
         "agent_id_b": "321023199508166636",
         "jf_desc": u"简易案件登记-申请人-被申请人-代理人",
         "jf_appeal": u"类型是否正确",
         "jf_action": u"验证类型",
         "jf_time": u"三天"
     }
     self.homepage.mediator_login(users.user_tjy['username'],
                                  users.user_tjy['pwd'])
     simple_page = SimpleDisputePage(self.homepage)
     simple_page.simple_jf_agent_b_commit(**simple_jf_info)
     simple_page.save()
     res = simple_page.verification_save(**simple_jf_info)
     self.assertEqual(True, res)
Exemplo n.º 2
0
    def test_02(self):
        """简易案件登记-申请人-代理人-被申请人"""

        simple_jf_info = {"applicant": u"段志勇",
                          "applicant_tel": "15895996954",
                          "applicant_id": "",
                          "applicant_nation": u"汉族",
                          "applicant_job": u"测试工程师",
                          "applicant_addr": u"1栋2单元303",

                          "disputer": u"王发明",
                          "disputer_tel": '13913031374',
                          "disputer_nation": u"汉族",
                          "disputer_job": "",
                          "disputer_addr": "",

                          "agent_name": u"徐传珠",
                          "agent_tel": '15295745648',
                          "agent_id": '321281199507077775',

                          "agent_name_b": u"钱桂林",
                          "agent_tel_b": '13160077223',
                          "agent_id_b": "321023199508166636",

                          "jf_desc": u"简易案件登记-申请人-代理人-被申请人",
                          "jf_appeal": u"类型是否正确",
                          "jf_action": u"验证类型",
                          "jf_time": u"三天"
                          }
        try:
            self.homepage.mediator_login(users.user_tjy['username'], users.user_tjy['pwd'])
            simple_page = SimpleDisputePage(self.homepage)
            simple_page.simple_jf_agent_commit(**simple_jf_info)
            simple_page.save()
            res = simple_page.verification_save(**simple_jf_info)
            self.assertEqual(True, res)
        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