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

what are the frame work models of qtp?which frame work you follow in your company?and explain it process?

1967


Explain quicktest professional (qtp) testing process?

539


What are the ways you can synchronize?

587


what is the difference between development and testing

2395


Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations

1767






In qtp, how you can exit for loop?

529


What is synchronization point in QTP?

678


Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?

1425


Give me At Least 5 Differences between DOCUMENTATION OBJECT MODEL(DOM)and COMPONENT OBJECT MODEL(COM)? Interviewer said me to WRITE the difference only in points not as you WRITE a paragraph ???? only in points

1633


What are the different recording modes and how do they work?

622


Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you

1448


Difference between copy to action and call to action?

594


Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?

1526


What is a programmatic description?

607


Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

1589