def test_09(self): """调解员-申请司法确认列表-案件状态查询-驳回申请 """ case_status = u'驳回申请' try: self.homepage.mediator_login(tjy, pwd, url=T1) page = TjyJudicialPage(self.homepage) page.act_search_apply_judicial_list(select_status=case_status) res = page.verfc_act_search_apply_judicial_status(case_status) self.assertEqual(res, True) except Exception as msg: print "EXCEPTION >> {}".format(msg) # class function name_class docstring docstr = getdoc(getattr(self, getframeinfo(currentframe()).function)) print type(docstr) print docstr 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_04(self): """调解员-申请司法成功-法院受理 """ try: self.homepage.mediator_login(tjy, pwd, url=T1) page = TjyJudicialPage(self.homepage) # 查询新登记案件编号后,验证案件状态 org_process('1', ApplyJudicialList.case_id) # 发送司法确认接口处理请求 page.act_search_apply_judicial_list( search_content=ApplyJudicialList.case_id) res = page.verfc_act_search_apply_judicial_status(u'待分配') self.assertEqual(res, True) 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_01(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) try: self.homepage.mediator_login(tjy, pwd, url=T1) page = TjyJudicialPage(self.homepage) page.act_judicial_commit(**jf_info_all) res, ApplyJudicialList.case_id = page.verification_judicial_commit( jf_info_all['jf_desc']) self.assertEqual(res, True) 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_04(self): """在线司法确认列表-查询-案件编号 """ try: self.homepage.mediator_login(tjy, pwd, url=T1) page = TjyJudicialPage(self.homepage) page.act_search_judicial_list(search_content=JudicialList.case_id) res = page.verfc_act_search_judicial_list_search_content( JudicialList.case_id) self.assertEqual(res, True) 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')) name = _funcname_docstring(self, docstr) # 截图 self.homepage.save_screen_shot(name) raise finally: self.end = datetime.datetime.now() duration = (self.end - self.start).seconds print "###case duration: {}###".format(duration)