On 25/10/12 10:26, Arumugam N wrote:

1. Revert the snapshot of a VM used for testing. - i have automated
using pysphere
2. Copy the build from share location to the VM - here i can have a
python script run from the VM but is it possible to run it remotely? for
example. if i run the script from Machine A, it should revert the
snapshot of machine B and copy the build to Machine B from shared location.

This should be possible using the same commands you'd use if done from a command line. Or if the VM is accessible via the network you might be able to do it that way. But given we have no information about the environment - what OS, what VM etc? Its impossible to say. Its also a bit off the normal topics for the tutor lkist

3. Run the installer and clikc Next Button of the installation GUI. -
Any idea how to automate this ?

subprocess can probably run the installer, clicking a GUI button will depend on the OS. For example in windows you could use ctypes to access the win32 API to send a mouse click message to the installer app... not trivial, but not impossible either.

No idea how you'd do it on *nix or MacOS.

--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to