Unable to launch command prompt using rapise when recording a script

Monday, November 6, 2017
Avatar

Hi

I am trying to automate the flow of running a command in the command prompt for several machines. I am unable to launch  command prompt from Rapise. When an instance of  command prompt is already open, I am able to select that and complete the test and for replaying the script I need to have the command prompt open. I cannot do this in all the machines that I would like to test. I want Rapise to launch  command prompt and execute the command and close the window .

When I click on 'Record' and I select 'Run Application" tab and give the path to cmd.exe, It does not open the command prompt.

 

Please let me know if this is possible?

Thanks

Jagan

1 Replies
Monday, November 6, 2017
Avatar
re: jagansmohan Monday, November 6, 2017

Hi Jagan

Please use:

Global.DoLaunch("cmd.exe");

You can then send keyboard commands to the open command prompt using:

Global.DoSendKeys("ipconfig.exe{ENTER}");

(for example).

Regards

Adam

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Monday, November 6, 2017
  • Last Reply: Monday, November 6, 2017
  • Replies: 1
  • Views: 2029