Click or drag to resize

FilesHelper Class

Framework to automate tests using Selenium WebDriver
Class for handling downloading files More details on wiki.
Inheritance Hierarchy
SystemObject
  Ocaramba.HelpersFilesHelper

Namespace:  Ocaramba.Helpers
Assembly:  OcarambaLite (in OcarambaLite.dll) Version: 3.3.1
Syntax
C#
public static class FilesHelper

The FilesHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCode exampleCopyFile(Double, String, String, String)
Copy the file and check if file was copied with given timeout, shorten the name of file if needed be removing "_".
Public methodStatic memberCode exampleCopyFile(Double, String, String, String, String)
Copy the file and check if file was copied with given timeout, shorten the name of file if needed be removing "_".
Public methodStatic memberCode exampleCountFiles(String)
Counts the files.
Public methodStatic memberCode exampleCountFiles(String, FileType)
Counts the files of given type.
Public methodStatic memberCode exampleDeleteFile
Delete file in given folder if exists.
Public methodStatic memberCode exampleGetAllFiles(String)
Gets all files from folder.
Public methodStatic memberCode exampleGetAllFiles(String, String)
Gets all files from folder, use postfixFilesName in search pattern.
Public methodStatic memberCode exampleGetAllFilesFromAllSubFolders(String)
Gets all files from all sub folders.
Public methodStatic memberCode exampleGetAllFilesFromAllSubFolders(String, String)
Gets all files from all sub folders, use postfixFilesName in search pattern.
Public methodStatic memberGetFileByName
Get file by its name in given folder.
Public methodStatic memberCode exampleGetFilesOfGivenType(String, FileType)
Gets the files of given type.
Public methodStatic memberCode exampleGetFilesOfGivenType(String, FileType, String)
Gets the files of given type, use postfixFilesName in search pattern.
Public methodStatic memberCode exampleGetFilesOfGivenTypeFromAllSubFolders(String, FileType)
Gets the files of given type from all sub folders.
Public methodStatic memberCode exampleGetFilesOfGivenTypeFromAllSubFolders(String, FileType, String)
Gets the files of given type from all sub folders, use postfixFilesName in search pattern.
Public methodStatic memberCode exampleGetFolder
Gets the folder from app.config as value of given key.
Public methodStatic memberCode exampleGetLastFile(String)
Gets the last file.
Public methodStatic memberCode exampleGetLastFile(String, FileType)
Gets the last file of given type.
Public methodStatic memberCode exampleRenameFile(Double, String, String, String)
Rename the file and check if file was renamed with given timeout, shorten the name of file if needed be removing "_".
Public methodStatic memberCode exampleRenameFile(String, String, String, FileType)
Rename the file of given type and check if file was renamed with ShortTimeout, shorten the name of file if needed be removing "_".
Public methodStatic memberCode exampleReturnFileExtension
Returns the file extension.
Public methodStatic memberCode exampleWaitForFile(Int32, String)
Waits for file with LongTimeout till number of files increase in sub folder, checks the size of the current file.
Public methodStatic memberCode exampleWaitForFile(Double, Int32, String, Boolean)
Waits for file for given timeout till number of files increase in sub folder, checks the size of the current file.
Public methodStatic memberCode exampleWaitForFileOfGivenName(String, String)
Waits for file of given name with LongTimeout, checks the size of the current file.
Public methodStatic memberCode exampleWaitForFileOfGivenName(Double, String, String)
Waits for file with given name with given timeout, checks the size of the current file.
Public methodStatic memberCode exampleWaitForFileOfGivenName(String, String, Boolean)
Waits for file of given name with LongTimeout, checks the size of the current file.
Public methodStatic memberCode exampleWaitForFileOfGivenName(Double, String, String, Boolean)
Waits for file with given name with given timeout, checks the size of the current file.
Public methodStatic memberCode exampleWaitForFileOfGivenType(FileType, Int32, String)
Waits for file of given type for LongTimeout till number of files increase in sub folder, checks the size of the current file.
Public methodStatic memberCode exampleWaitForFileOfGivenType(FileType, Double, Int32, String, Boolean)
Waits for file of given type for given timeout till number of files increase in sub folder,checks the size of the current file.
Top
Fields
  NameDescription
Public fieldStatic memberSeparator
Directory separator.
Top
See Also