how u write vb script in qtp pls give me some basic script
and some material

Answers were Sorted based on User's Feedback



how u write vb script in qtp pls give me some basic script and some material..

Answer / c.chaitanya kumar

for example login window taken, the following script is
performed

Dialog("Login").Activate
Dialog("Login").WinEdit("username").Set "chaitu"
Dialog("Login").WinEdit("Pasword").SetSecure"mercury"
Dialog("Login").WinButton("OK").Click

Is This Answer Correct ?    77 Yes 17 No

how u write vb script in qtp pls give me some basic script and some material..

Answer / vijay

PLz post me the testingtools Material for VB testing
which is having more examples also thanks in advance...,

Is This Answer Correct ?    12 Yes 5 No

how u write vb script in qtp pls give me some basic script and some material..

Answer / madhu.m

hi am Madhu,plz send some QTP scripts...i am new to QTP.and
can u explain...
my mail id :madhu.myadaram@gmail.com

Is This Answer Correct ?    7 Yes 3 No

how u write vb script in qtp pls give me some basic script and some material..

Answer / dhanapal

Some basic VB script functions

InStr Returns the position of the first occurrence of one
string within another. The search begins at the first
character of the string



InStrRev Returns the position of the first occurrence of
one string within another. The search begins at the last
character of the string



LCase Converts a specified string to lowercase



Left Returns a specified number of characters from the left
side of a string



Len Returns the number of characters in a string



LTrim Removes spaces on the left side of a string



RTrim Removes spaces on the right side of a string




Trim Removes spaces on both the left and the right side of
a string




Mid Returns a specified number of characters from a string




Replace Replaces a specified part of a string with another
string a specified number of times




Right Returns a specified number of characters from the
right side of a string




Space Returns a string that consists of a specified number
of spaces




StrComp Compares two strings and returns a value that
represents the result of the comparison




String Returns a string that contains a repeating character
of a specified length




StrReverse Reverses a string




UCase Converts a specified string to uppercase




Function



CreateObject Creates an object of a specified type



Eval Evaluates an expression and returns the result



GetLocale Returns the current locale ID




GetObject Returns a reference to an automation object from
a file




GetRef Allows you to connect a VBScript procedure to a
DHTML event on your pages




InputBox Displays a dialog box, where the user can write
some input and/or click on a button, and returns the
contents




IsEmpty Returns a Boolean value that indicates whether a
specified variable has been initialized or not




IsNull Returns a Boolean value that indicates whether a
specified expression contains no valid data (Null)




IsNumeric Returns a Boolean value that indicates whether a
specified expression can be evaluated as a number




IsObject Returns a Boolean value that indicates whether the
specified expression is an automation object




LoadPicture Returns a picture object. Available only on 32-
bit platforms




MsgBox Displays a message box, waits for the user to click
a button, and returns a value that indicates which button
the user clicked




RGB Returns a number that represents an RGB color value




Round Rounds a number




ScriptEngine Returns the scripting language in use




ScriptEngineBuildVersion Returns the build version number
of the scripting engine in use




ScriptEngineMajorVersion Returns the major version number
of the scripting engine in use




ScriptEngineMinorVersion Returns the minor version number
of the scripting engine in use




SetLocale Sets the locale ID and returns the previous
locale ID




TypeName Returns the subtype of a specified variable




VarType Returns a value that indicates the subtype of a
specified variable

Is This Answer Correct ?    3 Yes 0 No

how u write vb script in qtp pls give me some basic script and some material..

Answer / nanda

Sekhar..send a blank mail to nanda.dreddy@gmail.com..i will
send to some gud material..ok

Is This Answer Correct ?    16 Yes 14 No

how u write vb script in qtp pls give me some basic script and some material..

Answer / kumar

dear friends,i m kumar and i m new to testing in most of
the interview they are asking to write scripts in QTP ,if
any one have pls send to me to this mail id thn27@yahoo.com

Is This Answer Correct ?    5 Yes 3 No

how u write vb script in qtp pls give me some basic script and some material..

Answer / ashwin

Hey please send the Vb scripting material to
sri_ashwin2005@yahoo.co.in

Is This Answer Correct ?    1 Yes 0 No

how u write vb script in qtp pls give me some basic script and some material..

Answer / subha

Hi,

could you please also send me some material to learn vb
scripting in QTP?

Is This Answer Correct ?    3 Yes 3 No

how u write vb script in qtp pls give me some basic script and some material..

Answer / rohan

Hi All,

Can any one send me some QTP scripts..my email id
is 'rohanshank@gmail.com'

Thanks in advance.

Is This Answer Correct ?    1 Yes 1 No

how u write vb script in qtp pls give me some basic script and some material..

Answer / srinivas

hi mee too pls send me the vbscript material in qtp

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More QTP Interview Questions

What are the types of object repositories? Which one is you are using?

0 Answers  


What is difference between Quality centre and Test Director?

1 Answers   Nokia,


In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?

0 Answers  


Hi friend I have query regarding QTP datatable. I want to insert data in datatable during runtime. suppose i wrote datatble.value(1) = "Test data" so when i run the script it says column(1) doesn't exist. Then i write something in column A1 manualy and run the script again. Now it works fine. Pls clarify how i can put value in blank cell of datatable.

10 Answers   Apex,


What is the entry and exit point of automation testing

2 Answers   Infosys,


What In-string function will do?

1 Answers  


Hi all, On recording a particular Web application with QTP,Have came across a problem for which I havent found a solution so far.. The script of importance is as follows: Browser("Personalized Start Page").Page("XYZ").Frame ("mainFrame_4").Link("address.csv").Click Browser("Personalized Start Page").Page("XYZ").Sync Dialog("0% of dms.php from XYZ-").Dialog("File Download").WinButton("Save").Click My problem is that on recording the application with QTP and clicking the "address.csv" link another browser window comes up temporarily followed by the Windows "FileSave" dialog.The browser window which came up closes down when the Windows "FileSave" dialog is visible and I save the file to a windows location. On the "Record and Run" settings under Qtp,have activated settings for web and windows applications. But when I run this recorded script,and after the "address.csv" click,The browser window comes up and goes down,No Windows "FileSave" dialog comes up and the QTP shows the error Dialog("0% of dms.php from XYZ-") object is not found,though this object is there in the repository. Have tried putting the Dialog("0% of dms.php from XYZ- ").Exist property.But the "Exist" property is not recognised by the dialog at all. Any help in this direction is appreciated.. Thanks in advance J

1 Answers   ADP,


Which scripting language used by quicktest professional (qtp)?

0 Answers  


from where we will retrieve data for data driven tests in qtp?

3 Answers  


In what occasion we can specify global sheet and action sheet?

0 Answers  


I'm facing this problem while automating my application..its a web based apps.. In my application there are few webtables are displaying in the page.In the different cells there are links and action buttons.Problem is there is link in different web tables corresponding to one name.Hence the properties of the objects(say a link) are same except the x,y co ordinate of the object.So my script is not able to distinguish between the two links present in different cells of web tables with same name.Kindly help on this..

3 Answers  


Hi guys, Please suggest some thing these points are correct???, Is UFT 12 and QTP outdated ??? and also VBscript is also deleted/Removed from QTP ???? Javascript is added latest and tool name is called JFT ??? From this year ??

2 Answers  


Categories