Hi Shilpa,

If you think practically, how can QTP knows the path of the application?

The better approach for your scenario is 
strAppPath="your applicationpath"

SystemUtil.Run strAppPath

Set fso=createobject("Scripting.FileSystemObject")
print fso.GetParentFolderName(strAppPath)

Please let me know if it solves your problem.

Thanks,
Uday
QTP \ UFT Videos <http://www.youtube.com/user/AnemUday/videos>
On Wednesday, 14 August 2013 09:39:06 UTC+5:30, shilpa gupta wrote:
>
> Hi
>  
> Is there any method by which the path of the exe of the application under 
> test can be get by QTP
>  
> we first launch our windows based application manually (by doubl click on 
> exe, which is saved in the local system). after that launch QTP. in some 
> scenarion we want the path of that exe of the AUT. 
> pls reply
> Regards
>

-- 
-- 
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 Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to