ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
What does VBS file contain...??? what is VBS file.. ???
 Question Submitted By :: Sriram
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What does VBS file contain...??? what is VBS file.. ???
Answer
# 1
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 ?    4 Yes 2 No
Surya
 
  Re: What does VBS file contain...??? what is VBS file.. ???
Answer
# 2
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 ?    4 Yes 2 No
Rajendra
 
 
 
  Re: What does VBS file contain...??? what is VBS file.. ???
Answer
# 3
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 ?    4 Yes 3 No
Abhesheke
 
  Re: What does VBS file contain...??? what is VBS file.. ???
Answer
# 4
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 ?    1 Yes 3 No
Sreekanth Chilam
 
  Re: What does VBS file contain...??? what is VBS file.. ???
Answer
# 5
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 2 No
Reddy Siva Saran
 
  Re: What does VBS file contain...??? what is VBS file.. ???
Answer
# 6
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 ?    0 Yes 0 No
Amit
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
what is the difference between action and function BirlaSoft8
Is it possible for QTP to capture the objects in word document.If so please give me the code.Thank you.  1
What is the Limitations of Testing ? TCS3
if devloper change only button names in present build then script will execute or not , why? Only gui changed....... Cap-Gemini1
HI ALL I AM WORKING AS A AUTOMATION ENGINEER FROM PAST 2 MONTHS IN QTP,MY QUESTION IS IF I OPEN THE BROWSER FIRST & THEN THE QTP LATER MY OBJECT SPY WILL NOT WORK,Y IT IS SO..IF U HAVE THE ANSWER PLZ MAIL ME AT AKSHAR.MYSORE@GMAIL.COM Infosys4
what is the Command used to start the QTp from Run.  6
what is the Descriptive Progarmming? how it is help to testers in QTP? TCS4
How to map the test cases to requirements in QC? IBM2
Tell me few important difference Between QTP and WinRunner? Syntel2
Could some one help me the difference between GetTOProperty and SetTOProperty and when we will use these properties. and what is meant by SetToProperties.. Clinical-Soft5
write progamming connecting QTP to database sql? this is question asked by interview? please give sql, pl/sql related answer?pls any answer this? IBM2
HOW MANY WAYS ARE THERE TO CPY TEST IN TEST LAB IGT2
In one of the scripts the pwd in the DT was encripted. Can any one tell me how to I decript or undo the same? BirlaSoft2
I have recorded a test over web application(with IE6.0) in analog mode. But, while running it my test gets failed. Why? (Note: my systray has 3 open web applications) Xansa6
1. IS A VIRTUAL OBJECT USED WHEN THE LABEL IS NOT RECOGNIZED BY QTP Ordain-Solutions6
how do u import the test cases written in excel sheet to qtp? and how do u generate the script in qtp for the testcase in excel sheet? plzzzz do answer this question thanks in advance  4
How to access values from Unix OS and how to write..  1
How to handle recovery scenario for a application crash.write script for this. Polaris2
How to capture dynamic objects in qtp like mark up text  2
When and why do you use "OPTION EXPLICIT" in VB Script. Is there any online help or something to learn the script for Beginners?  5
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com