Sign in to follow this  
Followers 0
bbocker

AutoIT running inside a Virtual Machine question

3 posts in this topic

#1 ·  Posted (edited)

Hi,

I have been trying to a find a graceful way of using AutoIT to do this in the background and save the results to a text file:

<script type="text/javascript">//<![CDATA[

$(document).ready(function() {

$.get('x2fTraceMessage.mvcx2fAsyncMessageListx2f736251', { s:'googlex40google.com', r:'yahoo.com', d:'1x2f10x2f2012 2x3a18x3a37 AM', e:'1x2f16x2f2012 2x3a18x3a37 PM', i:'', a:'-5' }, function(data) { $('#message_trace_list').html(data); });

});

//]]></script>

I have not received any feedback on this so I started experimenting with a way to get the results saved to a textfile using Firefox and the Firefox "Save Page As" feature. It works but it is not graceful and requires the user to wait while it is working - the user cannot let it run and at the same time do other things on the computer due to the forced use of sending keystrokes (Send() command). It would be wonderful to use AutoIT or have AutoIT invoke something that goes and gets the data and saves it to a text file in the background (similar to InetGet). I originally thought this was just javascript but I think it may have something to do with ajax or something. I don't know. If anyone knows how to do this I'm all ears.

This problem started me thinking though, and I am wondering this: Imagine a Virutal Machine with Windows and Firefox installed inside. You start the script that interacts with Firefox, pretends it's the user, and performs the actions to get the data and then does "Save Page As" over and over as it does the pre-programmed script. Once started inside the virtual machine, can the user minimize the VM and it will run the script in the background in the VM without affecting what the user is doing on the host machine? With a little work I can test this, but I'm thinking maybe someone already knows the answer.. ?

Edited by bbocker

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

No shame in bumping* a (relative new) old topic (after at least a 24h cool-down period.) instead of creating a new topic for it.

(ref: )

On the VM stuff. I don't now. But as you said, It should be relative easy to do a initial test. (and than to post any questions on the problems you might run into. Just don't forget to name which VM your using in such a case.)

*) Preferably with some other additional text other than just 'Bump'.

---

O yea.

Try using the forum

of [autoit] feature to put your code in. (See edit bar for available options.)
Edited by MvGulik

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Share this post


Link to post
Share on other sites

Hi, Bbocker. On your VM question, the answer is yes. I am responsible for, among other things, creating automated testing of application suites. I write the code in AutoIT, and it performs a set of actions against an application dozens or hundreds of times. I run a number of VMs on my local machine, both with VMWare Workstation and VirtualBox. I start the script, then minimize and do other things while it runs. Later I just have to check the log files for success/failure rates. Hope this helps you.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0