What does VBS file contain...??? what is VBS file.. ???
Answers were Sorted based on User's Feedback
Answer / surya
vbs file contains the user defined functions which are
reusable that can be used in our test or compnent according
to our requirement
Is This Answer Correct ? | 11 Yes | 4 No |
Hai sairam i am rajendra
VBS means Visual basic script file
Normally QTP uses VBscript for automation script generation.
You can view this code in expert mode of QTP.
I think you are clear with this answer
if have any doubt regarding testing both manual or
automation you can contact me
rajendra_penumalli@yahoo.com
Mobile;9885162742
Hyderabad
Is This Answer Correct ? | 8 Yes | 3 No |
Answer / abhesheke
hi sriram
Vbs mean Visual basic script file
open a notepad write a user defined function and save it in
any location open->test tab ->setting->go to resource tab
and u have option there(associtave library files) link .ur
vbs file there and click ok
after that call that function from ur expert view.
if u are not clear ping me i will give u an example
Is This Answer Correct ? | 5 Yes | 3 No |
Answer / amit
Hi Siva,
Please use the following command in QTP wherever you wish to
call this file.
ExecuteFile("Path")
That's it
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sreekanth chilam
VBS file extension is .vbs(Visual Basic Script file)
Basically .vbs file is also called as "Library File" in QTP
A file in which the Code or functions are written in the VB
Script format is called "Library File(.vbs)".
The functions written in library files are called
as "Library Functions"
Is This Answer Correct ? | 2 Yes | 5 No |
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 |
What are the views available in qtp?
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?
What is quicktest professional (qtp window?
when we enter url,one page should open.write a vb script ,that page is open or not
2 Answers Blue Chip India, Persistent,
what is the difference between modular framework & datadriven framework
i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click
What are the difference between QTP and Winrunner
Diff b/w WEB TESTING AND Client server testing?
I got an error "The"flightres" Dialog was not found in the Object Repository. Check the OR to confirm that the object exists or to find the correct name for the object." while running the following script Set flightres=description.Create() flightres("text").value="Login" flightres("Class Name").value="Dialog" Set agent = description.Create() agent("nativeclass").value="WinEdit" agent("attachedtext").value="Agent Name:" Set pwd = description.Create() pwd("nativeclass").value="WinEdit" pwd("attachedtext").value="Password" Set button = description.Create() button("nativeclass").value="WinButton" button("Text").value="OK" Dialog("flightres").WinEdit("agent").Set "test" Dialog("flightres").WinEdit("pwd").Set "mercury" Dialog("flightres").WinButton("button").Click Please let me know if i made any mistake in the above script...?
Can any one tell me Difference between Keyword Driven Frame work and Hybrid framework? Its Urgent.
Write a user defined function to count the no. of buttons existed in a webpage ? i dont want to use descriptive.create ()
what is functions in qtp?i know the userdefind &bulit funation or i know that Private public function ?plz tell me what is funations in qtp?how to create a funation in qtp