Beispiel #1
0
 def test_02(self):
     """用户改回原密码"""
     print "oldpwd: ", old
     self.homepage.user_login(users.user_wfm['username'], new)
     self.homepage.user_personal_center()
     personalpage = PersonalPage(self.homepage)
     personalpage.modify_passwd(new, old)
Beispiel #2
0
 def test_01(self):
     """用户修改密码"""
     print "oldpwd: ", old
     self.homepage.user_login(users.user_wfm['username'], users.user_wfm['pwd'])
     self.homepage.user_personal_center()
     personalpage = PersonalPage(self.homepage)
     personalpage.modify_passwd(old, new)
Beispiel #3
0
 def test_02(self):
     """用户改回原密码"""
     print "oldpwd: ", old
     try:
         self.homepage.user_login(users.user_wfm['username'], new)
         self.homepage.user_personal_center()
         personalpage = PersonalPage(self.homepage)
         personalpage.modify_passwd(new, old)
     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