Package co.nz.getskills.auto.appsteps
Class FileSystemSteps
- java.lang.Object
-
- co.nz.getskills.auto.appsteps.FileSystemSteps
-
public class FileSystemSteps extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FileSystemSteps(TestContext testContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidi_check_file_exist_in_FTPServer(java.lang.String filePath)voidi_clean_directory(java.lang.String directoryName)voidi_copy_directory(java.lang.String source, java.lang.String destination)voidi_copy_directory_sftp(java.lang.String source, java.lang.String destination)voidi_delete_file(java.lang.String fileName)voidi_download_directory(java.lang.String source, java.lang.String destination)voidi_execute_ssh(java.lang.String command, java.lang.String expectedResponse)voidi_ftp(java.lang.String source, java.lang.String destination)voidi_login_as()voidi_sqlplus_ssh_command(java.lang.String query, java.lang.String expectedResponse)voidi_sqlplus_ssh_command_file(java.lang.String file, java.lang.String directory)voidi_sqlplus_ssh_command_save(java.lang.String query, java.lang.String dataName)voidi_upload_file_using_ssh()voidi_write_to_file(java.lang.String filePath, java.lang.String content)
-
-
-
Constructor Detail
-
FileSystemSteps
public FileSystemSteps(TestContext testContext)
-
-
Method Detail
-
i_ftp
@When("^FTP-Process - I ftp a file from source (.+) to destination (.+)$") public void i_ftp(java.lang.String source, java.lang.String destination) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_login_as
@When("^FTP - I open connection to FTP Server and login$") public void i_login_as() throws java.lang.Exception- Throws:
java.lang.Exception
-
i_check_file_exist_in_FTPServer
@When("^FTP - I check file exists with filePath (.+)$") public void i_check_file_exist_in_FTPServer(java.lang.String filePath) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_copy_directory
@When("^FTP - I copy directory from source (.+) to destination (.+)$") public void i_copy_directory(java.lang.String source, java.lang.String destination) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_copy_directory_sftp
@When("^SFTP - I copy file from source (.+) to destination (.+)$") public void i_copy_directory_sftp(java.lang.String source, java.lang.String destination) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_download_directory
@When("^FTP - I download directory from source (.+) to destination (.+)$") public void i_download_directory(java.lang.String source, java.lang.String destination) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_write_to_file
@When("^FileSystem - I write to file with filePath (.+) with content$") public void i_write_to_file(java.lang.String filePath, java.lang.String content) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_clean_directory
@When("^FileSystem - I clean directory (.+)$") public void i_clean_directory(java.lang.String directoryName) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_delete_file
@When("^FileSystem - I delete file (.+)$") public void i_delete_file(java.lang.String fileName) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_execute_ssh
@When("^SSH - I execute the command (.+) in remote linux machine and check it has response (.+)$") public void i_execute_ssh(java.lang.String command, java.lang.String expectedResponse) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_upload_file_using_ssh
@When("^SSH - I upload apk file$") public void i_upload_file_using_ssh() throws java.lang.Exception- Throws:
java.lang.Exception
-
i_sqlplus_ssh_command
@When("^SSH-SQL-I execute query (.+) and check response has (.+)$") public void i_sqlplus_ssh_command(java.lang.String query, java.lang.String expectedResponse) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_sqlplus_ssh_command_file
@When("^SSH-SQL-I execute sql file (.+) in directory (.+)$") public void i_sqlplus_ssh_command_file(java.lang.String file, java.lang.String directory) throws java.lang.Exception- Throws:
java.lang.Exception
-
i_sqlplus_ssh_command_save
@When("^SSH-SQL-I execute query (.+) and save response as (.+)$") public void i_sqlplus_ssh_command_save(java.lang.String query, java.lang.String dataName) throws java.lang.Exception- Throws:
java.lang.Exception
-
-