Exemplo n.º 1
0
 def test_08(self):
     """构登记列表-删除"""
     self.homepage.organization_user_login(users.user_jgdjy['username'], users.user_jgdjy['pwd'])
     disputepage = DisputePageDjy(self.homepage)
     disputepage.act_goto_homepage()
     disputepage.act_list_del_dispute()
     print u"登记员删除未提交纠纷成功"
Exemplo n.º 2
0
    def test_08(self):
        """构登记列表-删除"""

        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_del_dispute()
            print u"登记员删除未提交纠纷成功"
        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)