How to launch Application from Command Prompt in UFT? – User friendly Tech help

Scenario:- How we can launch our application to be automated from ‘Command Prompt‘ in UFT/QTP?
n
nSolution:- Today we faced the situation, where we were not able to launch application 
nfrom ‘SystemUtil.Run’.Problem was that our application was not directly in the form of .exe, 
nbut rather it was expecting parameters based on the Region for which we want this to be launched.
n
nTo overcome this problem and coming with  reusable function, we adopted an alternate approach of launching our region specific applications from ‘Command Prompt’. 
n
nWe hope following code will definitely help our automation lovers, in solving there problem 
nof launching. Here we have taken “Notepad” application for launching example.
nCreated “Shell Script” code for sending keyboard commands.
n
nPlease feel free to share your comments and experiences on this.
n
n
n
n

Was this article helpful?
YesNo

Similar Posts