I am currenty working on a test automation project wjhich requires me to stop and start servixces on another machine which does not and cannot have winnrunner installed.
When running manual tests this is done by accessing the machine Via VNC
Problem being is that Winrunner only recognises my VNC Console as a window ( not as another desktop that can contain child windows) and does not interact with any dialogs that appear so at the moment i am scraping by, by coding any action I have to do in VNC as keystroke
so to move from button to but I use
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">win_type(WINDOWNAME, "<kTAb>"</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">and it occaisonally gets confused because VNC is slow to refresh and recieve instructions. once it goes off slightly it then loses everything
I tried using x , y coords but that was worse.
Is there another way around this that I have missed?
Here's a link to a free download which allows you to execute programs remotely. Set up a batch file on the remote server which uses net start and net stop to start and stop the services. Then use the PsExec utility to launch the batch file remotely.
But unfortunately starting and stopping the services is only a part of what I got to do ( the most complicated part I'll admit) but some how I've got to edit the settings of an application that is running on the same server ( Again using VNC or similar tool)
I now have this working using Keystrokes as mentioned in my earlier post but as you can guess this needs to be changed for every server I run the test on!
There has to be away around this.