Example #1
0
    def test_02(self):
        """调解员-登记纠纷提交-申自然人代理人-被法人
        """
        jf_info = {
            "jf_desc": u"调解员-登记纠纷提交-申自然人代理人-被法人",
            "applicant_type": u"自然人",  # 自然人 法人 非法人组织
            "disputer_type": u"法人",  # 自然人 法人 非法人组织
            "agent_type": "common",  # "" common special,
            "agent_b_type": "",  # common special,
        }
        jf_info_all.update(jf_info)

        try:
            self.homepage.mediator_login(users.user_tjy['username'],
                                         users.user_tjy['pwd'])
            disputepage = DisputePageTjy(self.homepage)
            disputepage.commit(**jf_info_all)
            sleep(t)
            res, _ = disputepage.verification_commit(**jf_info_all)
            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
        finally:
            self.end = datetime.datetime.now()
            duration = (self.end - self.start).seconds
            print "###case duration: {}###".format(duration)
Example #2
0
 def test_03(self):
     """调解员-登记纠纷提交-申自然人代理人-被非法人组织"""
     jf_info_all = {
         "jf_desc": u"调解员-登记纠纷提交-申自然人代理人-被非法人组织",
         "applicant_type": u"自然人",  # 自然人 法人 非法人组织
         "disputer_type": u"非法人组织",  # 自然人 法人 非法人组织
         "agent_type": "special",  # "" common special,
         "agent_b_type": "",  # common special,
         "jf_appeal": u"假一赔十",
         "applicant_name": u"企业或机构名称",  #
         "world_credit_id": "abcde1234567890",
         "applicant": u"钱桂林",
         "applicant_tel": "13160077223",
         "applicant_id": "321023199508166636",
         "applicant_addr": u"1栋2单元303",
         "disputer": u"王发明",
         "disputer_tel": "13913031374",
         "disputer_world_credit_id": "zxcvbnmasdfghjk123",
         "disputer_name": u"企业或机构名称",
         "disputer_id": "",
         "disputer_addr": u"10栋1单元101",
         "agent_name": u"徐传珠",
         "agent_tel": "15295745648",
         "agent_id": "321281199507077775",
         "agent_b_name": u"段志勇",
         "agent_b_tel": "15895996954",
         "agent_b_id": ""
     }
     self.homepage.mediator_login(users.user_tjy['username'],
                                  users.user_tjy['pwd'])
     disputepage = DisputePageTjy(self.homepage)
     disputepage.commit(**jf_info_all)
     sleep(t)
     res, _ = disputepage.verification_commit(**jf_info_all)
     self.assertEqual(True, res)
Example #3
0
    def test_04(self):
        """调解员-登记纠纷提交-申自然人代理人-被非法人组织
        """
        jf_info = {
            "jf_desc": u"调解员-登记纠纷提交-申自然人代理人-被非法人组织",
            "applicant_type": u"自然人",  # 自然人 法人 非法人组织
            "disputer_type": u"非法人组织",  # 自然人 法人 非法人组织
            "agent_type": "special",  # "" common special,
            "agent_b_type": "",  # common special,
        }
        jf_info_all.update(jf_info)

        self.homepage.mediator_login(users.user_tjy['username'],
                                     users.user_tjy['pwd'])
        disputepage = DisputePageTjy(self.homepage)
        disputepage.commit(**jf_info_all)
        sleep(t)
        res, _ = disputepage.verification_commit(**jf_info_all)
        self.assertEqual(True, res)