can you run QTP as a batch from a bat file? if it is possible then use the
following Steps:

1. Download PSEXEC.exe from net (you have 32bit and 64 bit exe, so choose
as per ur requirement)

2. Create batch file for running the QTP Scripts and save the bat file as
RunqtpScripts.bat and use the following command line..


"psexec" + " " + "\\" + strHostName + " " + "-U" + " " + strUserName + " "
+ "-P" + " " + strPassword + " " + "-c -f" + " " + """" +
strCurrentLocation + "\" + "RUNQTPScripts.bat" + """"

 read concepts on PSEXEC. which helps to connect to remote machine and
run any program.

Hope this helps.



On Thu, Mar 22, 2012 at 11:17 AM, KRISHNA CHAITHANYA <
[email protected]> wrote:

> Johnson - Thank you for your support.
>
> We had tried through Using WScript.Shell send a key (or combination of
> keys) but we were not able to achieve the goal.
>
> Then about caffeine.exe , this app will prevent system to lock.
>
> Actually my scenario is to first unlock the machine & then to start
> execution.(Means first unlock the machine and then it has to  invoke QTP &
> run the scripts, which we were failed to do.)
>
> Ganesh  - With the help of your third url, We have created a .bat file in
> which i have given dos command "Logon.exe -u <Username> -p <password>" and
> then schedule the the bat file to run. But unfortunately neither locked nor
> unlocked the system.
>
> Archana - We have tried with changing the value to 1 of "
> SkipEnvironmentChecks" in the registry settings also. Even though we
> didn't over come this issue.
>
> At last the work around , we know this is not he best solution but for
> time being we had kept a dedicated 24/7/365 system only for automation
> execution in which we are not locking the machine. At round the clock we
> can invoke a execution.
>
> Really thanks you very much for all for your suggestions and help.
>
> --
> Thank you,
>
> Krishna Chaithanya Chinthakayala (Kris)  | Mobile: +91 9885066684
>
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to