def test_03(self): """选择查询-驳回申请""" select_status = u'驳回申请' try: self.homepage.mediator_login(users.user_bafg['username'], users.user_bafg['pwd']) judgepage = JudgePage(self.homepage) judgepage.act_search_select(select_status) result = judgepage.verfc_act_search_select(select_status) self.assertEqual(result, 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_03(self): """选择查询-驳回申请""" select_status = u'驳回申请' self.homepage.mediator_login(users.user_bafg['username'], users.user_bafg['pwd']) judgepage = JudgePage(self.homepage) judgepage.act_search_select(select_status) result = judgepage.verfc_act_search_select(select_status) self.assertEqual(result, True)
def test_05(self): """进入案件详情""" try: self.homepage.mediator_login(users.user_bafg['username'], users.user_bafg['pwd']) judgepage = JudgePage(self.homepage) judgepage.act_goto_case_detail() 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): """输入查询-案件编号全匹配""" self.homepage.mediator_login(users.user_bafg['username'], users.user_bafg['pwd']) judgepage = JudgePage(self.homepage) # 拿测试数据-查询案件id search_ctx = judgepage._get_case_id() judgepage.act_seacrh_input(search_ctx) result = judgepage.verfc_act_seacrh_input(search_ctx) self.assertEqual(result, True)
def test_07(self): """法官个人信息修改""" self.homepage.mediator_login(users.user_bafg['username'], users.user_bafg['pwd']) judgepage = JudgePage(self.homepage) judgepage.act_account_save()
def test_06(self): """案件详情-返回列表""" self.homepage.mediator_login(users.user_bafg['username'], users.user_bafg['pwd']) judgepage = JudgePage(self.homepage) judgepage.act_goto_case_detail_back()
def test_05(self): """进入案件详情""" self.homepage.mediator_login(users.user_bafg['username'], users.user_bafg['pwd']) judgepage = JudgePage(self.homepage) judgepage.act_goto_case_detail()