def test_09(self): """机构登记列表-增加纠纷-提交""" jf_info = { "jf_desc": u"机构登记列表-增加纠纷-提交", "applicant_type": u"非法人组织", # 自然人 法人 非法人组织 "disputer_type": u"非法人组织", # 自然人 法人 非法人组织 "agent_type": "", # "" common special, "agent_b_type": "", # common special, } 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.act_goto_homepage() disputepage.act_list_add_dispute() 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)
def test_09(self): """机构登记列表-增加纠纷-提交""" jf_info = {"jf_desc": u"机构登记列表-增加纠纷-提交", "applicant_type": u"非法人组织", # 自然人 法人 非法人组织 "disputer_type": u"非法人组织", # 自然人 法人 非法人组织 "agent_type": "", # "" common special, "agent_b_type": "", # common special, } jf_info_all.update(jf_info) self.homepage.organization_user_login(users.user_jgdjy['username'], users.user_jgdjy['pwd']) disputepage = DisputePageDjy(self.homepage) disputepage.act_goto_homepage() disputepage.act_list_add_dispute() disputepage.commit(**jf_info_all) sleep(t) res, _= disputepage.verification_commit(**jf_info_all) self.assertEqual(True, res)
def test_03(self): """机构登记员-登记纠纷提交-申自然人-被非法人组织代理人""" jf_info = { "jf_desc": u"机构登记员-登记纠纷提交-申自然人-被非法人组织代理人", "applicant_type": u"自然人", # 自然人 法人 非法人组织 "disputer_type": u"非法人组织", # 自然人 法人 非法人组织 "agent_type": "", # "" common special, "agent_b_type": "special", # common special, } jf_info_all.update(jf_info) self.homepage.organization_user_login(users.user_jgdjy['username'], users.user_jgdjy['pwd']) disputepage = DisputePageDjy(self.homepage) disputepage.commit(**jf_info_all) sleep(t) res, _ = disputepage.verification_commit(**jf_info_all) self.assertEqual(True, res)