Intelligent Automation & Macro Software  

Go Back   Tethys Solutions Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-09-2008, 12:08 AM
ukmartinb ukmartinb is offline
Junior Member
 
Join Date: Jan 2008
Location: Bristol, UK
Posts: 2
Send a message via AIM to ukmartinb
Cool Automate the duration of a download and upload

I need some help streamlining a well used script I have developed:

I have a task which carries out 2 separate sequential operations:

1) Go to a Internet Page that performs a DSL Speedtest, copy the Upspeed and Downspeed and paste the results into a custom built webform (that backs onto a MySQL DB)

2) Then

a) Perform a HTTP download from a web server, (preconfigured to download to the desktop)

b) A partial file appears under the actual file being downloaded during the download, I'm monitoring for when that file is downloaded by checking when the partial file is deleted by the OS (using "Check for Screen Change" command)

c) Recording the Created and Modified times from the properties of the downloaded file, then pasting these value into my same MySQL db.

To me, this seems complicated and the data scrape from the speedtest webpage is an unnecessary and unscientific test in my script. And here's why:

As the file size, location and conditions are unchanged every time, by collecting the download duration I can use a formula to work out the speed of my transfers.

I am unsure of how to script an upload using a similar process to my upload, ie initiate an http or FTP upload, wait for the upload to complete on the server and attempt to obtain the start - finish time of the upload.

Ideally, does anyone have a method or script that will

Automatically initiate a download and upload recording the start time, end time OR the actual duration in seconds of the file transfer?

Thanks

Martin

Last edited by ukmartinb : 05-09-2008 at 12:10 AM. Reason: Added new relevant information to the request
Reply With Quote
  #2 (permalink)  
Old 05-09-2008, 01:35 AM
forumsupport forumsupport is online now
Senior Member
 
Join Date: Apr 2007
Posts: 456
Default

Hello,

You can use 'Log to file' command in your task if you want to know upload or download duration by logging timestamps. You can insert 'Log to File' command at several appropriate locations and log the text and the Time stamp (by checking the 'Add Timestamp' box).
This way once the task runs, you can open the text file where you logged the data and measure at what time what actions took place. It will help you to measure the performance and accuracy of your automated task.

You can find Log to File command under 'Programs/files/windows' commands category.

For your convenience, we have attached "duration1.atmn" with this mail.
All you need to do is copy the task files (duration1.atmn) to.....\My Documents\Automation Anywhere\Automation Anywhere\My Tasks\
Run the task. We have used log to file command in the beginning and at the end. Once it logs time stamp in a text file, you can easily find duration of task.

FTP commands can be used to automate any FTP tasks. Use this command if you want to automate FTP upload/download, backup of your website etc. You can find FTP commands under 'Internet' commands category.

Hope this helps.
Attached Files
File Type: atmn duration1.atmn (181 Bytes, 4 views)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 12:28 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved