Can we run SFTP File upload scenario using Gatling - gatling

I'm Just interested whether if we create a Scala function to upload file to sftp location can we run it using Gatling executer ?

I believe Gatling does not support SFTP protocol.

Related

Is it possible to run OS script from hawt.io plugin (AngularJS)

I've got Tomcat webcontainer (8.0.x) and hawt.io (1.5.10) that runs on top of it.
I would like to write Hawt.io plugin that would restart JVM server, the one that hosts this jvm.
Lets assume I've bash script that I can call to gracefully stop JVM and start it again.
Is it possible to call such external OS script from hawt.io plugin?
Where do I find any code examples?
ps. I know this will disconnect requesting user from hawt.io web app. Script and jvm would run from the same uid.
I don't think it is possible as a Hawtio plugin is nothing but a front-end AngularJS script which runs on browser. Running an OS script from a browser script is prohibited because otherwise it may open up all the possible security attacks.
One possible workaround would be to create a custom JMX MBean deployed on your Tomcat server which then runs a system command like Runtime.getRuntime().exec("...") internally, and have a Hawtio plugin to invoke the MBean from browser.

Where to serve files to be downloaded by IOS

In This Post, Devran Cosmo Uenal explained how to download a file with swift on an IOS device. Should the files that I want to download be stored on an FTP server? Or on a regular web server with Apache?
NSURLTask supports both protocols but the post you are referring to uses a regular http server.
Also the post uses the Alamofire library which I think only supports http

How to set download path or location for a PhantomJSDriver in selenium webdriver

I am trying to automate a scenario where in i have to download a file and need to read the file after it is downloaded. I am using the PhantomJSDriver from the Java Selenium API and I am just wondering is there a facility to download a file to a specific location on my machine by setting either capability, option or a profile to the PhantomJSDriver. Any help is greatly appreciated.

FTP to Google Cloud

I need to write ftp script to move the file from File location to google cloud.
I could do this manually using CrossFTP. where it does have component to connect to Google cloud using Access key and secret key. but when i use FTP script i am not able to connect it.
If I want to use traditional FTP way for google cloud what should be server name and user ID and pass. I tried using commondatastorage.googleapis.com But it does work with access key and secret key.
Any information will be helpful.
All I need is, I need to automate this FTP process.
If you're automating using a shell script, you can use gsutil. This allows you to upload / download files, modify ACLs and so on.

uploading file from Access 2010

I have a Access 2010 frontend database + MySQL as backend. So far it is working fine. I would like to upload document and decided to save on the server rather than on the Database. My first question is, how do I upload file from access frontend to the remote server/location?
I was thinking, maybe store the data on the database and use some kind of triggers or script which reads the blob file from database and saves on the server as well as fills the file path into another column.
is there any easier way to upload files from access frontend to a remote server? I am using MySQL server as backend.
thank you in advance
SFTP with Putty
This might help you - it's a great example using Putty on the Windows machine to communicate over SFTP with the Linux server using VBA: SFTP upload with VBA
You would need to install putty on each Windows machine that uses Access and ensure that the appropriate rights are in place on the Linux server.
Custom Add-In
You could use .NET to create an add-in for access to transfer the file to the server over sockets, but this would require you to write a server-side application to listen for requests. You would have complete freedom over how you implement it at the cost of added complexity for yourself as the developer.
You would need to:
Create an add-in using Visual Studio (or other .NET IDE)
Add this into your Access application and use the API you've built.
Create a server-side application to listen to it (this could be a simple Python application)
SMTP Approach
If you want to be creative you could email the file to your own mock SMTP server using Access' CDO functionality: Sending emails with Access
Again, you would have to create a handler application to handle the SMTP protocol, but I'm sure there are some great examples out there.
HTTP Approach
You could even encode the file and send it over HTTP to a simple PHP server in a simple POST request: Example web request with Access You would need to encode the file to base64 or something or file a way of handling file uploads.
Conclusion
As you can see, the easiest approach by far is using Putty, but there are some interesting custom approaches you could take.
I'd say using either SMTP or HTTP would be suitable but that depends how easily you could set up the server-side handler. There may be existing SMTP emulators out there that you could use to handle receiving and managing files.
this might help someone.
I have used Chilkat FTP activeX component and its working fine. Chilkat provides prewritten code just copied from his website and everything is fine. Although I could not find how to show the transferring progress.
regards
krish

Resources