GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing codeception.com — FTP - Codeception - Documentation Guides
Testomatio - Test Management for Codeception SearchFTPInstallationDescriptionWorks with SFTP/FTP servers. In order to test the contents of a specific file stored on any remote FTP/SFTP system this module downloads a temporary file to the local system. The temporary directory is defined by default as to specify a different directory set the tmp config option to your chosen path. Don’t forget to create the folder and ensure its writable. Supported and tested FTP types are:
Connection uses php build in FTP client for FTP, connection to SFTP uses phpseclib pulled in using composer. For SFTP, add phpseclib to require list. Status
Config
ExampleExample (FTP)Example (SFTP)This module extends the Filesystem module, file contents methods are inherited from this module. ActionsamInPath
Enters a directory on the ftp system - FTP root directory is used by default cleanDir
Erases directory contents on the FTP/SFTP server copyDir
Currently not supported in this module, overwrite inherited method deleteDir
Deletes directory with all subdirectories on the remote FTP/SFTP server deleteFile
Deletes a file on the remote FTP/SFTP system deleteThisFile
Deletes a file dontSeeFileFound
Checks if file does not exist in path on the remote FTP/SFTP system dontSeeFileFoundMatches
Checks if file does not exist in path on the remote FTP/SFTP system, using regular expression as filename. DOES NOT OPEN the file when it’s exists dontSeeInThisFile
Checks If opened file doesn’t contain grabDirectory
Grabber method to return current working directory grabFileCount
Grabber method for returning file/folders count in directory grabFileList
Grabber method for returning file/folders listing in an array grabFileModified
Grabber method to return last modified timestamp grabFileSize
Grabber method to return file size loginAs
Change the logged in user mid-way through your test, this closes the current connection to the server and initialises and new connection. On initiation of this modules you are automatically logged into the server using the specified config options or defaulted to anonymous user if not provided. makeDir
Create a directory on the server openFile
Opens a file (downloads from the remote FTP/SFTP system to a tmp directory for processing) and stores it’s content. Usage: renameDir
Rename/Move directory on the FTP/SFTP server renameFile
Rename/Move file on the FTP/SFTP server seeFileContentsEqual
Checks the strict matching of file contents. Unlike seeFileFound
Checks if file exists in path on the remote FTP/SFTP system. DOES NOT OPEN the file when it’s exists seeFileFoundMatches
Checks if file exists in path on the remote FTP/SFTP system, using regular expression as filename. DOES NOT OPEN the file when it’s exists seeInThisFile
Checks If opened file has Usage: seeNumberNewLines
Checks If opened file has the Usage: seeThisFileMatches
Checks that contents of currently opened file matches $regex writeToFile
Saves contents to tmp file and uploads the FTP/SFTP system. Overwrites current file on server if exists.
Module reference is taken from the source code. Help us to improve documentation. Edit module reference
Don't know how to write tests on your own? We will build or improve them for you.
Request a quote for official
enterprise
support or trainings
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |