Class CommonFileSystemPage


  • public class CommonFileSystemPage
    extends java.lang.Object
    • Constructor Detail

      • CommonFileSystemPage

        public CommonFileSystemPage()
    • Method Detail

      • setup

        public void setup()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • teardown

        public void teardown()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • copyDirectory

        public void copyDirectory​(java.lang.String source,
                                  java.lang.String destination)
      • makeDirectory

        public void makeDirectory​(java.lang.String directoryName)
      • downloadDirectory

        public void downloadDirectory​(java.lang.String source,
                                      java.lang.String destination)
      • deleteFile

        public void deleteFile​(java.lang.String destination)
      • checkFileExists

        public void checkFileExists​(java.lang.String fileName)
      • writeToFile

        public void writeToFile​(java.lang.String fileName,
                                java.lang.String content)
      • amInPath

        public void amInPath​(java.lang.String filePath)
      • saveContent

        public void saveContent​(java.lang.String filePath,
                                java.lang.String content)
      • writeContent

        public void writeContent()
      • deleteFile

        public void deleteFile()
      • CheckfileExists

        public void CheckfileExists()
      • ftpProcess

        public void ftpProcess​(java.lang.String source,
                               java.lang.String destination)
      • sftpAndDropFile

        public void sftpAndDropFile​(java.lang.String sourceFile,
                                    java.lang.String destinationFile)
      • sftpAndDropFile

        public void sftpAndDropFile()
      • executeSsh

        public java.lang.String executeSsh​(java.lang.String command)
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • randomFileNameGeneration

        public java.lang.String randomFileNameGeneration​(java.lang.String existingFilePath)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • executeMultipleCommands

        public java.lang.String executeMultipleCommands​(java.util.List<java.lang.String> commands)
                                                 throws java.io.IOException,
                                                        com.jcraft.jsch.JSchException,
                                                        java.lang.InterruptedException
        Throws:
        java.io.IOException
        com.jcraft.jsch.JSchException
        java.lang.InterruptedException
      • oracleDBSSH

        public void oracleDBSSH​(java.lang.String query,
                                java.lang.String expectedResponse)
      • oracleDBSSHFile

        public void oracleDBSSHFile​(java.lang.String directory,
                                    java.lang.String file)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • oracleDBSSHDataOnly

        public java.lang.String oracleDBSSHDataOnly​(java.lang.String query)