Jump to content


Photo

Can i automate FTP upload using WAPT


  • Please log in to reply
3 replies to this topic

#1 avin_mehya

avin_mehya

    Member

  • Members
  • PipPip
  • 13 posts

Posted 22 March 2017 - 07:19 AM

Hi Team,

We have been performing performance testing of our application UI using WAPT 4.3

 

We have few scenarios which involve a two part process:

- First part involves FTP of a file

- Second part takes place from UI where we process the file which was FTPed in first step

 

Second step can be achieved using WAPT

 

We wanted to understand by any chance can we also work upon the first step using WAPT.

 

Thanks in advance. 



#2 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 662 posts

Posted 23 March 2017 - 04:06 AM

WAPT doesn't support FTP protocol.

But you can use JavaScript to run shell command and upload file to FTP with help of third party tool.


Sergei Leonov
WAPT Project Manager
SoftLogica LLC

Office: +7-383-335-6692
Toll-free: 1-888-364-6797 (for US only)
Time zone GMT +6, EST +11
E-mail: support@loadtestingtool.com
http://www.loadtestingtool.com

#3 avin_mehya

avin_mehya

    Member

  • Members
  • PipPip
  • 13 posts

Posted 04 April 2017 - 12:52 PM

We are trying to achieve this using a Batch file. This batch file has been called inside WAPT using Javascript.

Issue here is that the Batch file individually runs fine. Also the same runs perfectly fine inside the browser console. But when we run this through WAPT, this fails.

Is there some step which we are missing?

 

We have IE11 on WAPT machine and i presume that WAPT uses the same. 

 

Below is the Javascript code

 

 

var myObject = new ActiveXObject("WScript.Shell");
var result = myObject.Run("D:\\welcome.bat");
log.message("Batch File executed successfully");
 
 
Welcome.bat file contains code to place files to a remote server.


#4 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 662 posts

Posted 05 April 2017 - 10:11 AM

Try to execute following code:

 

var command = "D:\\welcome.bat"
var argument = "";

var shellapp = new ActiveXObject("Shell.Application");
shellapp.ShellExecute(command, argument, null, "open", 1);


Sergei Leonov
WAPT Project Manager
SoftLogica LLC

Office: +7-383-335-6692
Toll-free: 1-888-364-6797 (for US only)
Time zone GMT +6, EST +11
E-mail: support@loadtestingtool.com
http://www.loadtestingtool.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users