![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| 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 |
| |||
| 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. |