What does VBS file contain...??? what is VBS file.. ???
Answer Posted / reddy siva saran
HI
I AM SIVA SARAN
I HAVE ONE DOUGHT IN QTP
CAN ANY ONE HELP ME PLEASE
ACTUALLY I HAVE ONE VBS SCRIPT FOR FINDING WHETHER A PROCESS
IS RUNNING OR NOT
I HAD ASKED THAT BY USING QTP I HAVE TO CALL THAT VBS FILE
I KNOW HOW TO CALL THAT VBS FILE IN QTP
BUT MY QUESTION IS HOW TO CALL THAT VBS FILE AT A PARTICULAR
LINE IN QTP
FOR EXAMPLE IF MY QTP SCRIPT HAVE 100 LINES
HOW TO CALL THAT VBS FILE AFTER EXECUTING THE 75th LINE IN QTP
ALSO THE RESULT OF THAT VBS FILE SHOULD BE DISPLAYED IN THE
RESULT PAGE OF QTP
THIS IS MY VBS FILE
Dim AllProcess
Dim Process
Dim strFoundProcess
strFoundProcess = False
Set AllProcess = getobject("winmgmts:") 'create object
For Each Process In AllProcess.InstancesOf("Win32_process")
'Get all the processes running in your PC
If (Instr (Ucase(Process.Name),"POLRESOLVER.EXE") = 1) Then
'Made all uppercase to remove ambiguity. Replace TASKMGR.EXE
with your application name in CAPS.
msgbox "Application is already running!" 'You can replace
this with Reporter.ReportEvent
strFoundProcess = True
Exit for
End If
Next
If strFoundProcess = False Then
msgbox "Go ahead!Application is not running" 'You can
replace this with Reporter.ReportEvent
End If
Set AllProcess = nothing
CAN ANY ONE HELP ME PLZ
can u send the answer to MY MAIL ID
sivasaran558@gmail.com
Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet
What are the major/ important methods, functions in QTP we use realtime testing
what is Property......End Property loop? how to write sript for it in QTP
Write a script to customize the test results in PDF and HTML format.
How to use reporter.report event in qtp ?
What is the difference between Keyword Driven test and Data Driven test?
How to Test the mainframe application?
Explain the concept of how quicktest professional identifies object?
wht is Manual Testing Frame work. Pls anybody can give appropriate answers
Write a script to verify font style and color of a windows object using descriptive programming
In qtp, how you can get the last character from a string?
explain structured testing? plz guys with exp. do answer
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
What is active screen?
describe some problems that u had with automating testing tool?