def close_astylewx_ldtp(): """Close the test project astylewx program. """ #print("Closing astylewx ldtp") ldtp.closewindow('frmAStyleWx') if not ldtp.waittillguinotexist('*AStyleWx'): terminate_program("Error in waittillguinotexist")
def close_window(self, window_name=''): """ [关键字概要] 关闭窗口 :@参数 window_name: 窗口名称 :@返回值: 1 on success. Examples: | *Test Cases* | *Action* | *Argument* | | Example_Test | Close Window | ${window_name} | """ try: self._info("close window (%s)" % window_name) return ldtp.closewindow(window_name) except LdtpExecutionError: raise LdtpExecutionError( "close window failed, please check if the input parameters are correct. " )
def quit(): if ldtp.guiexist('frmBackup'): ldtp.closewindow('frmBackup') if ldtp.guiexist('frmBackUp'): ldtp.closewindow('frmBackUp')
def close_window(self, window): ldtp.closewindow(RHSMGuiLocator().get_locator(window)) self.check_window_closed(window)
def tearDown(self): """docstring for tearDown""" ldtp.closewindow(self.mv_name)
def close(self, window): """Close window with given title :window will close all windows if empty """ closewindow(window)