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")
Exemple #2
0
    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. "
            )
Exemple #3
0
def quit():
  if ldtp.guiexist('frmBackup'):
    ldtp.closewindow('frmBackup')
  if ldtp.guiexist('frmBackUp'):
    ldtp.closewindow('frmBackUp')
Exemple #4
0
 def close_window(self, window):
     ldtp.closewindow(RHSMGuiLocator().get_locator(window))
     self.check_window_closed(window)
Exemple #5
0
 def tearDown(self):
     """docstring for tearDown"""
     ldtp.closewindow(self.mv_name)
Exemple #6
0
 def close(self, window):
     """Close window with given title :window
         will close all windows if empty
     """
     closewindow(window)