cancel
Showing results for 
Search instead for 
Did you mean: 

Does Test complete supports FTP?I would like to send a file through FTP.

raguaaa45
New Contributor

Does Test complete supports FTP?I would like to send a file through FTP.

HI,

 

I would like to know whether we can automate a scenario of sending a file through FTP using Test-complete?

 

Have the port and ip address along with the file.All i need is to send the file to the specified port using testcomplete

 

Please let me know in case of any information available

4 REPLIES 4
tristaanogre
Community Hero

Re: Does Test complete supports FTP?I would like to send a file through FTP.

TestComplete can run command lines using the WShell object.  FTP can be done via command line on most windows machines.  So, you can probably script a BAT file or something to execute an FTP send command to do what you want.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
HKosova
Moderator

Re: Does Test complete supports FTP?I would like to send a file through FTP.

Shelling out to ftp.exe (as @tristaanogre suggested) is one possible way. Here's an example:

https://tinyapps.org/docs/ftp.html

 

Alternatively, you can use:


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
sanjay0288
Frequent Contributor

Re: Does Test complete supports FTP?I would like to send a file through FTP.

@HKosova :

  • .NET class System.Net.FtpWebRequest through the CLR Bridge which GAC do I need to add inorder to get the methods? I have added System.Net, netStandard, System.net.Requests. 
  • Is there a sample program available using CLR Bridge?
HKosova
Moderator

Re: Does Test complete supports FTP?I would like to send a file through FTP.

Hi @sanjay0288,

 

You need to add just the "System" assembly. The FTP class will be available as:

dotNET.System_Net.FtpWebRequest

 

We don't have any ready CLR Bridge scripts for FTP. Feel free to share what you come up with!


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors