What does VBS file contain...??? what is VBS file.. ???

Answers were Sorted based on User's Feedback



What does VBS file contain...??? what is VBS file.. ???..

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

What does VBS file contain...??? what is VBS file.. ???..

Answer / rajendra

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

What does VBS file contain...??? what is VBS file.. ???..

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

What does VBS file contain...??? what is VBS file.. ???..

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

What does VBS file contain...??? what is VBS file.. ???..

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

What does VBS file contain...??? what is VBS file.. ???..

Answer / 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

More QTP Interview Questions

What is the difference between Functions and Action ?

1 Answers  


How to resume the second iteration in the QTP,, if the error has intrupted the the second iteration. When i use run from step it starting from the first iteration again.

1 Answers  


How to test background color and dynamic images which are moving during runtime?

7 Answers   CTS,


Hello friends..... On which areas of an application we can not test with QTP

0 Answers   Thatavarti Technologies,


Hi All, I am using QTP for one of the Desktop application which uses Keyboard inputs like 'Tab ,F7 etc' and also mouse (Click). After recording when i am running the Script ,it is not able to recognize the keyboard inputs like F7,Tab and mouse Click because of which either i have to skip that part or manually do the inputs. Please answer how can i make script more flexible so that it will recognize both keyboard and mouse operations.

3 Answers  






To which environments does quicktest professional (qtp) supports?

0 Answers  


What is Version control?

3 Answers  


hello everyone, can anybody please tell me what are the different recording modes of QTP, and where these recording modes are present in QTP 9.2. Thanks in advance, Gaytri

7 Answers  


How we can call the scripit from another scripit in QTP?,Not a call Action

12 Answers  


after click on compose mail how can we attached a file in qtp with vbscript code

0 Answers  


In application have 2 list box oppsite list box two edit box is there.so now through using DP how can we select 3 opption in first list box and 2box semect 4 opption.in edit box also we have to write 25 ,28.how can we do this

1 Answers  


Give me diffrent script in QTP for Webpage(Java and .Net),WindowsBased Applications,Java application,.Net application...

2 Answers   TCS, Virtusa,


Categories