Example #1
0
    def test_01(self):
        """机构登记员-首页-登记纠纷保存-申自然人-被自然人"""
        jf_info = {
            "jf_desc": u"机构登记员-首页-登记纠纷保存-申自然人-被自然人",
            "applicant_type": u"自然人",  # 自然人 法人 非法人组织
            "disputer_type": u"自然人",  # 自然人 法人 非法人组织
            "agent_type": "",  # "" common special,
            "agent_b_type": "",  # common special,
            'none_mediator': True,
        }
        jf_info_all.update(jf_info)

        try:
            self.homepage.organization_user_login(users.user_jgdjy['username'],
                                                  users.user_jgdjy['pwd'])
            disputepage = DisputePageDjy(self.homepage)
            disputepage._goto_dispute_input()
            disputepage.save(**jf_info_all)
            sleep(t)
            res = disputepage.verification_save(**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_01(self):
     """机构登记员-首页-登记纠纷保存-申自然人-被自然人"""
     jf_info = {"jf_desc": u"机构登记员-首页-登记纠纷保存-申自然人-被自然人",
                "applicant_type": u"自然人",  # 自然人 法人 非法人组织
                "disputer_type": u"自然人",  # 自然人 法人 非法人组织
                "agent_type": "",  # "" common special,
                "agent_b_type": "",  # common special,
                'none_mediator': True,
                }
     jf_info_all.update(jf_info)
     self.homepage.organization_user_login(users.user_jgdjy['username'], users.user_jgdjy['pwd'])
     disputepage = DisputePageDjy(self.homepage)
     disputepage._goto_dispute_input()
     disputepage.save(**jf_info_all)
     sleep(t)
     res = disputepage.verification_save(**jf_info_all)
     self.assertEqual(True, res)