def test_02(self): """纠纷登记列表-添加纠纷-保存""" desc = u"纠纷登记列表-添加纠纷-保存" try: self.homepage.mediator_login(users.user_tjy['username'], users.user_tjy['pwd']) case_list_page = InputCaseListPage(self.homepage) case_list_page.dispute_add_save(desc) # 获取返回页面纠纷状态 result = case_list_page.verification_add_save(desc) self.assertEqual(True, result) 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_3(self): """纠纷登记列表-纠纷详情-保存""" self.homepage.mediator_login(users.user_tjy['username'], users.user_tjy['pwd']) case_list_page = InputCaseListPage(self.homepage) case_list_page.case_modification_save() # 获取返回页面纠纷状态 result = case_list_page.verification_dispute_modification() self.assertEqual(True, result)
def test_2(self): """纠纷登记列表-添加纠纷-提交""" desc = u"纠纷登记列表-添加纠纷-提交" self.homepage.mediator_login(users.user_tjy['username'], users.user_tjy['pwd']) case_list_page = InputCaseListPage(self.homepage) case_list_page.dispute_add_commit(desc) # 获取返回页面纠纷状态 result = case_list_page.verification_add_commit(desc) self.assertEqual(True, result)
def test_06(self): """纠纷登记列表-查询-纠纷编号""" try: self.homepage.mediator_login(users.user_tjy['username'], users.user_tjy['pwd']) case_list_page = InputCaseListPage(self.homepage) case_list_page._into_input_case_list() dis_id = case_list_page.get_search_No() # case_list_page.search(dis_id) # result = case_list_page.verification_search_No(dis_id) self.assertEqual(True, result) 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(users.user_tjy['username'], users.user_tjy['pwd']) case_list_page = InputCaseListPage(self.homepage) case_list_page.dispute_delete() # 获取返回页面纠纷状态 # result = case_list_page.verification_dispute_modification() # self.assertEqual(True, result) 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_02(self): """纠纷登记列表-添加纠纷-提交""" # 1,纠纷登记列表-已提交-添加纠纷 # 2,修改纠纷描述 # 3,-提交 desc = u"纠纷登记列表-添加纠纷-提交" try: self.homepage.mediator_login(users.user_tjy['username'], users.user_tjy['pwd']) case_list_page = InputCaseListPage(self.homepage) case_list_page.dispute_add_commit(desc) # 获取返回页面纠纷状态 result = case_list_page.verification_add_commit(desc) self.assertEqual(True, result) 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