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


Please Help Members By Posting Answers For Below Questions

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

1536


What are the major/ important methods, functions in QTP we use realtime testing

2259


what is Property......End Property loop? how to write sript for it in QTP

1889


Write a script to customize the test results in PDF and HTML format.

2082


How to use reporter.report event in qtp ?

549






What is the difference between Keyword Driven test and Data Driven test?

1769


How to Test the mainframe application?

1816


Explain the concept of how quicktest professional identifies object?

532


wht is Manual Testing Frame work. Pls anybody can give appropriate answers

1589


Write a script to verify font style and color of a windows object using descriptive programming

831


In qtp, how you can get the last character from a string?

553


explain structured testing? plz guys with exp. do answer

1405


Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?

3269


What is active screen?

560


describe some problems that u had with automating testing tool?

1409