Tool to help Automate via Command Prompt
We have been using in-house tool to load xml's in the system.
This tools is known as Queueutil which help's run some commands(with some parameters) & load the data in the system based on commands used. However, that is done via command prompt. Also when the command is executed it gives a popup to validate password before its completion.
I would like to know if i can automate this scenario? I have gone through the forum to check for the solution & found out that QTP & SilK Test can do that. I would like to know if there are any other tools which can help me with that & how do i start(as in any links, info, videos would be of great help)
1) I open the cmd prompt
2) Change directory to my tool(queueutil) - C:\>cd queueutil
3) Once i am in tool i execute commands which takes required parameter & file name which has data to be loaded in system -
C:\Queueutil>anycommand parameter1 parameter2 filename.xml
4) Once i hit enter it gives popup for entering password
5) I enter password & click Ok
6) Once ok is clicked my execution is completed
Can i automate above scenarios when i have 100's of xml's?
Please let me know.
It seems to me that the communication with the cmd window could be done through a .vbs file.
Then you have to communicate with a button or two from an application that launches.
I remember seeing scripting tools that let you communicate with objects. The name was something such as WinScript. Perhaps someone can chime in with the name of one of them.
Another Idea. I wonder if you could use .VBS to launch the application. Then open the Selenium IDE. Do the object clicking. I have only seen Selenium work with the web, but maybe it will click on the button of your application.
Thanks for the reply Kevin.
Its not .vbs file that i am using.
I have attached the screenshots with the steps which i do.
Please let me know if that helps.
The screen shots are giving me a 404 error.
tcl-expect utility will be your best choice. In fact, you can validate command prompt response for each request and then send next set of requests after validating response.
Kevin I am not sure what the issue is, after upload i too cant see the files. Some issue may be.
Palani, thanks for the information. i will give it a shot & get back on how it went.
Thanks a lot guys. Appreciate your help.