Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Doubts on Systemutil
#1
Not Solved
1. How to pass parameters to application while invoking application by using "Systemutil.run" method
systemutil.run (filename,[parameters],[path],[operation],[mode])
Reply
#2
Not Solved
I didnt understand. you want parameters to be passed to application or to systemutil.run ?
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Not Solved
Hi ,

Consider these below examples - it may give you a better perception:

Example 1:
Code:
SystemUtil.Run "C:\WINDOWS\system32\cmd.exe","","C:\","open"

Here "C:\WINDOWS\system32\cmd.exe" --> entire file path (Mandetory Parameter)
       "C:\" --> Working Directry ( Optional parameter )
       "open" --> mode ( Optional parameter )

Example 2:
Code:
SystemUtil.Run "C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\HP\QuickTest Professional\samples\flight\app\","open"

Example 3 :
Code:
SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe","","Y:\","open"
browser("..").Navigate("www.xyz.com")
Reply
#4
Not Solved
syntax: systemutil.Run file, [params], [dir], [op], [mode]

[params]: Optional. A String value.
If the specified file argument is an executable file, use the params argument to specify any parameters to be passed to the application.

I found this in QTP help, please explain this....! and tell how it works...?
Reply
#5
Not Solved
Thank you sreekanth,

Every thing is fine... but you left one blank after providing a path of .exe file "".....

I am asking about that [params].. in help they said that you can pass parameters to your executable file from here... How can we pass that parameters...?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation SystemUtil.run script is not generating while recording in qtp 9.5..pls help me senthil.kumar 0 2,569 01-24-2013, 02:09 PM
Last Post: senthil.kumar
  Syntax of SystemUtil.Run vijay.gupta 6 78,216 08-21-2012, 04:57 PM
Last Post: vinod123
Question checking result of systemUtil.run bo.moon 5 5,859 12-08-2010, 01:18 AM
Last Post: duggisrinivasarao
  SystemUtil - Application is not getting Visible spsraj 7 5,220 07-15-2010, 03:35 PM
Last Post: spsraj
  How to execute Chunk of my test script on new window using SystemUtil.Run function umer830 3 3,827 01-14-2010, 04:51 AM
Last Post: umer830

Forum Jump:


Users browsing this thread: 2 Guest(s)