def test_07(self): """案件搜索重置""" org_admin = { "机构账号": "17612156739", "机构密码": "123456" } self.homepage.organization_login(org_admin["机构账号"], org_admin["机构密码"]) orgpage = MissionCenter(self.homepage) orgpage.in_mission_center() orgpage.case_time() sleep(1) total_casenumber1 = orgpage.get_total_case_num() case_optioninfo = { "编号/姓名/案号": "166575BAC9777", } orgpage.search_case_by_id_or_name(**case_optioninfo) # 检索纠纷 total_casenumber2 = orgpage.get_total_case_num() orgpage.clear_search_case_area() sleep(1) total_casenumber3 = orgpage.get_total_case_num() result = orgpage.verfc_case_search_clear_successful(total_casenumber1, total_casenumber2, total_casenumber3) self.assertEquals(result, True, msg='搜索重置功能校验失败')
def test_06(self): """案件编号精确搜索""" org_admin = {"机构账号": "17612156739", "机构密码": "123456"} case_optioninfo = { "编号/姓名/案号": "166575BAC9777", } try: self.homepage.organization_login(org_admin["机构账号"], org_admin["机构密码"]) orgpage = MissionCenter(self.homepage) orgpage.in_mission_center() orgpage.case_time() orgpage.search_case_by_id_or_name(**case_optioninfo) # 检索纠纷 total_casenumber = orgpage.get_total_case_num() result = orgpage.verfc_case_search_successful(total_casenumber) self.assertEquals(result, True, msg='案件编号精确搜索结果唯一性校验失败') 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
def test_05(self): """案件总量""" org_admin = {"机构账号": "17612156739", "机构密码": "123456"} try: self.homepage.organization_login(org_admin["机构账号"], org_admin["机构密码"]) orgpage = MissionCenter(self.homepage) orgpage.in_mission_center() total_casenumber = orgpage.get_total_case_num() result = orgpage.verfc_total_case_number_visitable( total_casenumber) self.assertEquals(result, True, msg='案件总量显示不为数字') 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
def test_05(self): """案件总量""" org_admin = {"机构账号": "17612156739", "机构密码": "123456"} self.homepage.organization_login(org_admin["机构账号"], org_admin["机构密码"]) orgpage = MissionCenter(self.homepage) orgpage.in_mission_center() total_casenumber = orgpage.get_total_case_num() result = orgpage.verfc_total_case_number_visitable(total_casenumber) self.assertEquals(result, True, msg='案件总量显示不为数字')
def test_06(self): """案件编号精确搜索""" org_admin = {"机构账号": "17612156739", "机构密码": "123456"} self.homepage.organization_login(org_admin["机构账号"], org_admin["机构密码"]) orgpage = MissionCenter(self.homepage) orgpage.in_mission_center() orgpage.case_time() case_optioninfo = { "编号/姓名/案号": "166575BAC9777", } orgpage.search_case_by_id_or_name(**case_optioninfo) # 检索纠纷 total_casenumber = orgpage.get_total_case_num() result = orgpage.verfc_case_search_successful(total_casenumber) self.assertEquals(result, True, msg='案件编号精确搜索结果唯一性校验失败')