how u write vb script in qtp pls give me some basic script
and some material
Answers were Sorted based on User's Feedback
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 | 16 No |
Answer / vijay
PLz post me the testingtools Material for VB testing
which is having more examples also thanks in advance...,
Is This Answer Correct ? | 11 Yes | 5 No |
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 ? | 6 Yes | 3 No |
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 |
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 |
Answer / ashwin
Hey please send the Vb scripting material to
sri_ashwin2005@yahoo.co.in
Is This Answer Correct ? | 1 Yes | 0 No |
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 |
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 |
Answer / srinivas
hi mee too pls send me the vbscript material in qtp
Is This Answer Correct ? | 1 Yes | 1 No |
Now it appears to be more than enough... I have learn entire QTP, I did whatever I could do but still facing lots of problem and those problems could be removed only after working in professional atmosphere. But still unable to expose myself as professionaly. It is becoming panic, It has been two years I am in manual testing and looking for the change but all the recruiters ask for QTP, but my problem is I don't have working experience with QTP. Kindly suggest me I really need effective suggestions. I dont have more caliber to work with present organization cause of salary reasons...boo.. hooo...hooo. My email address is alkaa.dugaal@gmail.com
How can we conduct U-I Testing by using QTP??????
Have you worked with QC?
what is meant by automation tool?
how could i download qtp in which i get add-in support for 'oracle' is there any way to get it? i finding but not getting pls help me out :)
how to select the work for complete automation and one more thing when u are going to choose automation
what is throw object ?
how to test load test and block box testing an a web based application pls give ans briefly
In qtp,how to interact tool & application build?
how to export the result to notepad....for example i want to enter the user name and pass word and clicking on login button ......once you click on login button the corresponding page will open ...in that page you having one list box ...here you can get either success or failure ........friends here i want export the message what ever i got either success or failure .....how to export the result to note pad
what is the diff between Procedure and function
what QTP Options do you know?