Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Executing EXE files in QTP
#1
Not Solved
Hi,

1 . I have an .exe file (.vbs converted ->.exe)
What should be the segment of code or command in order to execute the same in QTP?

2. And how to set Work Directory=Current Directory, Execution Type=Compile?

Can anyone help me out regarding these asap.
Thanks.
Reply
#2
Not Solved
1) use systemutil.run "full path of exe "

2) Not sure what you mean by this. Please explain in detail.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Not Solved
Tried using SystemUtil.Run, but my problem is not solved.

For the next one,
It pops up an error message as Windows Script Host as dialog box name and with the following contents.
Script: C:\Docume~1\User Name\LOCALS~1\Temp\LibraryName.vbs
Line:9694
Char:2048
Error:Unterminated string constant
Code:800A0409
Source:Microsoft VBScript Compilation error

I removed Environment variables from the library and tried to execute thru' library. But the same problem (error message) persists only thing is the line no., character no. changes and in Error section it says Object required:'Environment'. Nothing else changes in the above dialog box.

I tried the same with the Utility file, it works fine when i add messagebox and execute thru' QTP.

I've no idea as to how to go about, is this a problem with the built .exe file from .vbs or is it some other problem?

Can u help me out?
Thanks.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QC Test not found error or not executing remote tests zaira_p 5 9,896 08-04-2015, 10:22 PM
Last Post: mitsuy
  Issue in winbutton.click while executing qtp scripts on a locked machine anjanah 4 5,064 12-20-2013, 03:17 PM
Last Post: basanth27
  Executing BPT from QC ALM 11 a.karamched 3 5,747 07-17-2012, 07:41 PM
Last Post: jsknight1969
  Application Crashes while executing the script mahendra 2 4,141 01-18-2012, 09:41 AM
Last Post: mahendra
  Call an .exe via QTP10 scripts rashmsrit 3 3,877 01-20-2011, 09:19 AM
Last Post: rashmsrit

Forum Jump:


Users browsing this thread: 1 Guest(s)