Sie sind auf Seite 1von 15

VB Script and QTP - Part1 | Quick Test Professional(QTP) Page 1 of 15

Search

Home About QTP Forums QTP Jobs QTP Training

Ads by Google V B S c ri p t a n d Q T P - P a r t1 Download QTP


QTP Trial Version
eBook!
QTP Scripting
QTP Tutorials
Scripts
Recent Posts

Automating Word
Documents Part-3
Automating MS Word
Documents – Part 2
Automating Word Subscribe to QTP
Documents: Part 1
Blog
Happy Diwali
QTP Training On-
Demand is Now Enter your email address
Available
Subscribe

Going forward, I am starting a series of posts on using VBScript with QTP.


It will start from the basics of VB Script and move to the advanced course.
Miscellaneous
What is VBScript?
Concepts on QTP
VBScript is a subset of Visual Basic 4.0 language. It was developed by Beginners on QTP
Some Useful Tips with Microsoft to provide more processing power to Web pages. VBScript can be
QTP Step by step guide to
used to write both server side and client side scripting. (If you already
learn QTP for beginners
Best practises while know Visual Basic or Visual Basic for Applications (VBA), VBScript will be
writing QTP scripts very familiar. Even if you do not New Features in QTP 11
Are You Sure You Want know Visual Basic, once you learn New Features in QTP 9.5
To Use QTP? VBScript, you are on your way to
Difference between
Refresher on how QTP programming with the whole family QTP8.2 and QTP9.0/9.2
Identifies Objects? of Visual Basic languages.)
If QTP does not record
Using Relative path in on any applications
QTP Data types
Testing puzzle that
Identify broken links VBScript supports only one data type puzzled General Motors
using QTP
called ‘Variant’. The variant data type Best Lateral Thinking
File handling using QTP is a special kind of data type that can Puzzle
QTP and Reporter contain different kinds of information. It is the default data type returned
Objects by all functions in VBScript. A variant behaves as a number when it is used
in a numeric context and as a string when used in a string context. It is
Points to take care with
QTP and TD/QC possible to make numbers behave as strings by enclosing them within
quotes.
Points to take care with
Siebel add-in
Variables
Points to take care with
Oracle/Java add-in A variable is a placeholder that refers to a memory location that stores
Points to take care with program information that may change at run time. A variable is referred to
Active X add-in by its name for accessing the value stored or to modify its value.
Points to take care with
Visual Basic add-in Variable Declaration
Understanding enigmatic Variables in VBScript can be declared in three ways:
TO and RO property
Identification vs 1. Dim Statement
Execution of checkpoint 2. Public Statement
3. Private Statement
Descriptive Programming
Simplified For example:
Ways to Launch Dim No_Passenger
Application Multiple variables can be declared by separating each variable name with a
comma. For example:

http://mercuryquicktestprofessional.blogspot.com/2007/10/vb-script-and-qtp-part1.html 1/4/2011
VB Script and QTP - Part1 | Quick Test Professional(QTP) Page 2 of 15

Regular Expression
Regularized!!! You can also declare a variable implicitly by simply using its name
How to count total no of in your script. That is not generally a good practice because you
rows when all are not could misspell the variable name in one or more places, causing
visible? unexpected results when your script is run. For that reason, the
Integrating ECATT and Option Explicit statement is available to require explicit declaration of all
QTP variables. The Option Explicit statement should be the first statement in
Sending SOAP XML your script.
message using QTP Note:
Variables declared with Dim at the script level are available to all
Use keyboard to send
input to your application procedures within the script. At the procedure level, variables are available
only within the procedure.
Limitations of DataTable
Public statement variables are available to all procedures in all scripts.
Recovery Scenarios in Private statement variables are available only to the script in which they
QTP are declared.

Naming Convention
About Me
There are standard rules for naming variables in VBScript. A variable
View my name:
complete
1. · Must begin with an alphabetic character.
profile 2. · Cannot contain an embedded period.
3. · Must not exceed 255 characters.
4. · Must be unique in the scope in which it is declared.

Assigning Values to Variables


QTP Jobs
Exp: 1-13 Yrs.Sal : 4L to 15 L
Values are assigned to variables creating an expression as follows: the
PA Register & Get Multiple
Interviews variable is on the left side of the expression and the value you want to
TimesJobs.com/Upload_Resume assign to the variable is on the right. For example:

SQL Server Compare Tools B = 200


Compare and Synchronize
schema and data of SQL
Server quickly Scalar Variables and Array Variables
www.devart.com
Automation
Much of the time, you only want to assign a single value to a variable you
Does QTP support... have declared. A variable containing a single value is a scalar variable. Frameworks
Other times, it is convenient to assign more than one related value to a
...Adobe Flash/ Flex Understanding
single variable. Then you can create a variable that can contain a series of
applications? Framework
values. This is called an array variable. Array variables and scalar
...MS Vista? variables are declared in the same way, except that the declaration of an Whats your Automation
Framework?
array variable uses parentheses ( ) following the variable name. In the
...SAP Netweaver?
following example, a single-dimension array containing 11 elements is Building an Automation
declared: Framework around
Selenium
Some Common Dim A(10) Collection of Articles on
Test Automation
Errors/ Issues Although the number shown in the parentheses is 10, all arrays in VBScript
are zero-based, so this array actually contains 11 elements. In a zero-
Place screenshot in
Results viewer based array, the number of array elements is always the number shown in
HP Related Links
parentheses plus one. This kind of array is called a fixed-size array.
QTP unable to identify Download Trial Version of
pop up window Constants QTP and Related Addins

A constant is a meaningful name that takes the place of a number or a QTP certification details
Visual C++ Run time
string, and never changes. VBScript in itself has a number of defined Training and Certification
library error
intrinsic constants like vbOK, vbCancel, vbTrue, vbFalse and so on.
You create user-defined constants in VBScript using the Const statement.
General Run Error
Using the Const statement, you can create string or numeric constants Translate
with meaningful names and assign them literal values. For example: Select Language
Const MyString = "This is my string."Const MyAge = 49 Gadgets powered by
Test Yourself on QTP Google
Note that the string literal is enclosed in quotation marks (" "). Also note
QTP Quiz: Objective Q & that constants are public by default. Automation Object
A Within procedures, constants are always private; their visibility can't be Model
changed.
Technical Interview Next post we will deal with constructs and arrays. Basics of AOM
Questions on QTP
Run QTP Scripts at
If you want to keep track of further articles on QTP. I recommend you to Scheduled Time
subscribe via RSS Feed. You can also subscribe by Email and have new QTP
Check already running
articles sent directly to your inbox. process
Posted by Ankur

http://mercuryquicktestprofessional.blogspot.com/2007/10/vb-script-and-qtp-part1.html 1/4/2011
VB Script and QTP - Part1 | Quick Test Professional(QTP) Page 3 of 15

Forums - All Forums VB Script and QTP

Functional Specification VB Script and QTP - Part


78 comments: 1
Template for QTP
Multipule Browsers VB Script and QTP - Part
testing 2
Nikhila said...
Web Service VB Script and QTP - Part
Ankur 3
Automation error
Word text formatting I am interested in knowing about the QuickTest
Professional 9.0 Specialist Exam. I want to know about
Operation happening QTP and Excel
1) cost of the exam
while selecting
"GetItem" 2) is it a web based
3) what kind of questions will be asked like is it a multiple QTP and Excel Part1
choice or theory or practical
QTP and Excel Part2
4)How much knowledge do you need in qtp to crack this
exam. QTP and Excel Part3

Please email me at princess_barbie6@yahoo.com

12:43 AM, October 05, 2007

shilpi said...

Hi Ankur,
Ankur i want to know that wats the best way to write an
automation script in QTP. Actually i am a beginner so am
totaly scared about to write a script. So please help me
out..

10:05 AM, October 22, 2007

ponraj said...

hi nikhila,

i m the begineer of learning QTP 8.2. which site is best


one to learn properly with VBscript..

12:18 PM, November 16, 2007

smiles said...

hi am alby smiles. i want to know about qtp certification,


and the mock questions. can u plz provide me with this
details

9:18 PM, November 18, 2007

Anonymous said...

HI

can u tell me

1.Differences in qtp versions.


2. Differnce in testdirector and qualitycenter
3. Briefly explain abt qtp frameworks and which is the
better one

thank you

5:23 PM, November 19, 2007

Anonymous said...

HI

can u send me below details to


k.malakondaiah@gmail.com

1.Differences in qtp versions.


2. Differnce in testdirector and qualitycenter
3. Briefly explain abt qtp frameworks and which is the
better one

thank you

5:25 PM, November 19, 2007

abdal said...

http://mercuryquicktestprofessional.blogspot.com/2007/10/vb-script-and-qtp-part1.html 1/4/2011
VB Script and QTP - Part1 | Quick Test Professional(QTP) Page 4 of 15

Dear Ankur,
Search
I have gone through the VBScript material you have
provided in this site. It is very clear and easy to catch all
those defined. I want to write and execute some scripts on ABOUT | CONSULTING/ADVERTISING | QTP JOBS | QTP TRAINING | PRIVACY
my own. Is there any VBScript editor available for free. If POLICY
it is, please tell me the link from where I can get. Or
(© 2006- 2010) ANKUR JAIN. THE CONTENT IS COPYRIGHTED TO ANKUR JAIN
otherwise please tell the tool to write and execute AND SHOULD NOT BE REPRODUCED ON OTHER WEBSITES.
VBscipts. But I don't want to test through notepad and IE.

12:00 PM, November 20, 2007

Ankur said...

@ Anon:
You can refer my posts on Differences in QTP versions and
about frameworks

Refer
http://www.geekinterview.com/question_details/17367 for
difference between TD and QC

@ Abdal:
You can use QTP Expert View to practice on VB Script.

6:38 PM, November 20, 2007

tc said...

i have one year exp in manual testing. web testing.. and


also i know little bit about QTP.(how to use & all). but i
never used in any project..
so wt to do now..hw to learn more than this..
plz inform mr to my mail id..(tc.raghavendra@gmail.com)

3:44 PM, January 11, 2008

Kumari said...

Hi Ankur,

Thank you very much for this wonderful blogspot...


Continue this good work for the benefit of so many...
thanks a ton... I specially appreciate the style of your
writing. It has inspired me to read about QTP(I am a kind
of person who really runs away from technical stuff). But
your blog is truely magnificient.

Best Regards,
Vandy.

3:37 PM, February 20, 2008

srinivas said...

Hi Ankur

I am interested in knowing about the Quick Test


Professional 9.0 Specialist Exam. I want to know about
1) cost of the exam
2) is it a web based
3) what kind of questions will be asked like is it a multiple
choice or theory or practical
4)How much knowledge do you need in qtp to crack this
exam.

If u have any website send me my mail Address.

Please email me at srinivas_4444@yahoo.com

10:42 AM, February 22, 2008

neeharika said...

I am interested to know about testing cerftications like


CSTE. I want to know about cost of the exam,exam
pattern,how much knowledge do we need for this exam all
that stuff.
Please email me at neehavijay@gmail.com

9:25 PM, March 13, 2008

Kiran said...

http://mercuryquicktestprofessional.blogspot.com/2007/10/vb-script-and-qtp-part1.html 1/4/2011
VB Script and QTP - Part1 | Quick Test Professional(QTP) Page 5 of 15

This post is indeed very useful & Descriptive .Thanks

5:23 PM, March 16, 2008

laxminarayan said...

I am interested to know about testing cerftications like


CSTE. I want to know about cost of the exam,exam
pattern,how much knowledge do we need for this exam all
that stuff.
Please email me at buna.tester@gmail.com

2:42 PM, March 18, 2008

Anonymous said...

hi this is vish
my request is to send a complete flow of vb script for any
web appl.
for one flow or scenario.

thanking u.

3:04 AM, March 20, 2008

Anonymous said...

hi this is vish
my request is to send a complete flow of vb script for any
web appl.
for one flow or scenario.

thanking u.

pls mail me to kvishnu1281@yahoo.co.in

3:06 AM, March 20, 2008

snig said...

good post

12:20 AM, March 26, 2008

Anonymous said...

Thanks a bunch Ankur..!!

11:33 PM, April 10, 2008

Anonymous said...

Thanks Ankur...

11:22 PM, April 14, 2008

Anonymous said...

CAN ANY BODY POST ME SOME SCRIPS PREPARED ON


ANY WEB DOMAINS. SO THAT I'LL PRACTICE. YOU CAN
MAIL ME TO MY MAiL ID: kumar.k111@gmail.com

12:29 PM, April 24, 2008

Raj said...

hi this is raj,

we r trying to get the sum of price of tickets (in flight


application of QTP)with keeping order numbers in data
table.
we want to add the total of each order with their next
order and so on.
i=Window("text:=Flight Reservation").WinEdit(attached
text:=Total:").GetVisibleText
msgbox i
we r unable to write further so
please help us if u can.

u can send me to rajendra_js@yahoo.co.in

with thanks

http://mercuryquicktestprofessional.blogspot.com/2007/10/vb-script-and-qtp-part1.html 1/4/2011
VB Script and QTP - Part1 | Quick Test Professional(QTP) Page 6 of 15

Khalida said...

I want to know what certification i need to do in Testing.


What is the best method to learn and practice VBScripting.

Please let me know via email - khalidahuda@gmail.com

6:31 PM, April 25, 2008

Khalida said...

Hi Ankur,

I know Winrunner and currently learning QTP 9.2 on my


own. Not sure how to go ahead with it as i dont know VB
Scripting.
Also i need to know abt the certification... wht is it? How is
it? Does it have any weightage? How is the certification
help us? Cost and abt the exams of it?

Please let me know - khalidahuda@gmail.com

Thanks a lot...

6:39 PM, April 25, 2008

Anonymous said...

Hi Ankur,
Appreciate your help for creating this blogger.I'm using
QTP 9.2.If I need to run the tests by writing the
scripts,whats the command for calling object repository.
(as this will help the application in identifying the objects
during testing)In 8.0 we used the following syntax
App.test.settings.resources.objectrepositorypath =
"D:\bank_new\bank_obj_repo\bank.tsr"

where App is the variable defined as


Set App = Createobject("Quicktest.application").
Please help me with this.my email address is
prasannamadhuri@gmail.com
Thanks in advance

3:04 PM, April 30, 2008

amit said...

Set RepositoryTo = CreateObject


("Mercury.ObjectRepositoryUtil")
RepositoryTo.Load PathOfTSR

11:41 AM, May 23, 2008

PANDA said...

Hi there,
This is Pranav DAve I m new to QTP and i wann know how
to use VB script in QTP pls jsuggest me any link where i
can find any of the samples.
My Email ID is
parth.engineer@gmail.com

10:58 AM, June 17, 2008

Anonymous said...

Hi Guys,

Just would like to mention few things here.


Don't be scared of any automation tool.Once u get hold of
concept then they are prety same. Move in follwoing way:
Go throuh User guide it has everything in it.
1. Understand the QTP framework.
2. Understant the UI of QTP.
3. Practice lesson by lesson the QTP functionalization
namely:
a. Object declaration.
b. Create a UDF file (U need to include this in mail file
from where u run it)where u can declare global variables
and write User defined functions and proceedures.
c. record test cases.

http://mercuryquicktestprofessional.blogspot.com/2007/10/vb-script-and-qtp-part1.html 1/4/2011
VB Script and QTP - Part1 | Quick Test Professional(QTP) Page 7 of 15

identified by QTP.Once u record u will be able to see this.


e. Lear how to add check points,etc.
f. VB script is nothing but VB language.Learn some main
functions like getting windowhandles, control structure,
how to put custom messages in res file.
g. Synchronize test.

U will not learn it in day but if u go with pateince and give


it about 2 months u will be become an intermediate
expert.

Don't go into too complicated things initially. Like checking


is IIS is running wtc.U can do that later.

Best of luck.

Karan
kbsingh1@gmail.com

7:52 PM, July 08, 2008

sonika said...

Hi Ankur,

I am interested in knowing about the Quick Test


Professional 9.0 Specialist Exam. I want to know about
1) cost of the exam
2) is it a web based
3) what kind of questions will be asked like is it a multiple
choice or theory or practical
4)How much knowledge do you need in qtp to crack this
exam.

If u have any website send me my mail Address.

nickychoudhary@gmail.com

5:05 PM, July 22, 2008

srinivas said...

Can i get a reply for this Ankur..

Nikhila said...

Ankur

I am interested in knowing about the QuickTest


Professional 9.0 Specialist Exam. I want to know about
1) cost of the exam
2) is it a web based
3) what kind of questions will be asked like is it a multiple
choice or theory or practical
4)How much knowledge do you need in qtp to crack this
exam.

Please email me at princess_barbie6@yahoo.com


12:43 AM, October 05, 2007

Thanks
Sriniv

1:03 PM, July 24, 2008

dhruv said...

Hi Ankur,

Right now am using 9.5 version of QTP and am


automating swing based client server
application.Sometimes QTP is not recognizing the same
object which it recognised in its previous runs.
can you suggest a solution for this iisue.

thanks

dhruv

7:54 AM, August 12, 2008

nimi said...

http://mercuryquicktestprofessional.blogspot.com/2007/10/vb-script-and-qtp-part1.html 1/4/2011
VB Script and QTP - Part1 | Quick Test Professional(QTP) Page 8 of 15

I am interested in knowing about the QuickTest


Professional 9.0 Specialist Exam. I want to know about
1) cost of the exam
2) is it a web based
3) what kind of questions will be asked like is it a multiple
choice or theory or practical
4)How much knowledge do you need in qtp to crack this
exam.

Please email me at nishritha1018@gmail.com

2:26 PM, August 19, 2008

Ankur said...

@nimi: Please check the link-QTP certification details-


given on right hand side

3:21 PM, August 19, 2008

Anonymous said...

Nikhila/Srinivas
Please mail me the details that you had asked for to my id
2411985@gmail.com
Me too interested to know.
Thanks

2:15 PM, September 08, 2008

Anonymous said...

I have gone through the VBScript material you have


provided in this site. It is very clear and easy to catch all
those defined. I want to write and execute some scripts on
my own. Is there any VBScript editor available for free. If
it is, please tell me the link from where I can get. Or
otherwise please tell the tool to write and execute
VBscipts. But I don't want to test through notepad and IE.

5:38 PM, September 23, 2008

balur said...

Hi Ankur,
I am in a big problem i.e my system is restarting when i
start to record any application.
My system is working for QTP8.2 but when installing
9.1,9.2 or 9.5 it is the problem.
To out of this i have formated the system once even
though it is restarting again.
Plz send some solution to over come this to me on
balur.sangamesh@gamil.com
PLzzzzzzzzzzzzzzzzzzzzzzzzzz

6:23 PM, October 27, 2008

Anonymous said...

Hi there,
This is Ashish. I m new to QTP and i wanna know how to
use VB script in QTP pls suggest me any link where i can
find any of the samples.
My Email ID is
ashuniks@gmail.com

1:19 PM, November 04, 2008

Vandana Sharan said...

Hello ...

this is the link where u can easily learn the vbscript..

http://www.w3schools.com/Vbscript/vbscript_examples.as
p

Vandana`

12:21 PM, November 12, 2008

Anonymous said...

http://mercuryquicktestprofessional.blogspot.com/2007/10/vb-script-and-qtp-part1.html 1/4/2011
VB Script and QTP - Part1 | Quick Test Professional(QTP) Page 9 of 15

Hai

How to declare array variables as Global varibles.kindly let


me know its urgent.

I created a code but its showing type mismatch


error.Please chk this .

QTP Code
----------------------

Dim MyArray(2)

MyArray(0) = "Sunday"
MyArray(1) = "Monday"
MyArray(2) = "Tuesday"

Call callweekdays()

Function Code(QFL)
----------------
(Added to Test Resources)

Public Function callweekdays()

For i=0 to Ubound(MyArray)


Msgbox MyArray(i)
Next

End Function

After execution its showing type mismatch error.

Kindly reply to this mail ID "adithya.m.kumar@gmail.com"

Thanks
Adithya Kumar

3:28 PM, November 18, 2008

Anonymous said...

Hi Adithya Kumar,

Your VB script code looks to be perfect. Pls try executing it


again.

Thanks

Bharathi

6:56 AM, December 17, 2008

Anonymous said...

hi Ankur,
This is a great post,

although.. i've one question


while declaring fixed size arrays do we have to specify
only integer value as its subscript value?

e.g.,
subscriptval = 3
dim MyArray1(subscriptval)

cant we decalre array as above?

thanks in advance,
Prashant

3:17 PM, January 17, 2009

Anonymous said...

@adithya.m.kumar@gmail.com:
hi pass the array to your function available in the function

http://mercuryquicktestprofessional.blogspot.com/2007/10/vb-script-and-qtp-part1.html 1/4/2011
VB Script and QTP - Part1 | Quick Test Professional(QTP) Page 10 of 15

Dim myarray(2)
myarray(0) = "sunday"
myarray(1) = "monday"
myarray(2) = "tuesday"

Call xzy(myarray)

3:34 PM, January 17, 2009

Lopamudra said...

Hi Ankur,

i want to know from where I have to start QTP scripting.

8:47 PM, February 02, 2009

Shreyansh said...

hi,
i know the qtp but i never use it in any live project ..so pls
help me to use the QTP in live projects.If u have any links
regarding live project with QTp pls provide me..this is my
mail id malagouda1008@gmail.com

3:47 PM, February 12, 2009

umangi said...

Hi ankur,

Can you please please tell me a sample site which i can


start automating using QTP where i can exercise VBscript
most as i m totallw new to it.

12:37 PM, February 13, 2009

Ankur said...

@Shreyansh, umangi: You can hone your skills on the


windows based and web based applications that comes pre
-installed with QTP.

12:40 PM, February 13, 2009

Anonymous said...

I can use QTP to create automated tests using the GUI,


but I do not have an understanding of VBScript and
therefore I'm looking for a book which I can use to form
the foundations and compliment the series of VB Script
and QTP - Part1, Part 2, Part 3, etc on this website. Can
you please suggest the most relevant book for an absolute
beginning with no programming experince please.

2:04 PM, February 16, 2009

Anonymous said...

Hi Ankur,
In a recent interview i was asked a question to write a
VBScript for this

If provided the salary amount (ask for salary amount) and


calculate and output tax on the income using VB Script

Taxable income Tax on this income


"$0 – $6,000" Nil
"$6,001 – $34,000" 15c for each $1 over $6,000
"$34,001 – $80,000" $4,200 plus 30c for each $1 over
$34,000
"$80,001 – $180,000" $18,000 plus 40c for each $1 over
$80,000
"$180,001 and over" $58,000 plus 45c for each $1 over
$180,000

I wrote the code using select case, i'm not sure is i was
correct.
Could you please tell how to put this VBScript

7:37 AM, February 17, 2009

http://mercuryquicktestprofessional.blogspot.com/2007/10/vb-script-and-qtp-part1.html 1/4/2011
VB Script and QTP - Part1 | Quick Test Professional(QTP) Page 11 of 15

renuka said...

Hi Ankur,

I am trying to download the free trail version of QTP but


could not do it. Please help me how to install the free trial
version of QTP

3:28 PM, March 11, 2009

Anonymous said...

Hi Ankur ,
I was into Manual testing all these days , But Now My
Company has permited me to use Automation tool, Can
we test D2K Applications Using QTP, If Yes, Can I know
the Steps and Procedures for testing. i have QTP 8.2 Can i
Install this Version or do u recommend other Versions ?

5:31 PM, May 08, 2009

Deepa said...

Hi Ankur,

I am new to testing. I am interested in learning QTP..


Pls guide me how to start and how
to use QTP in live projects.
Thanks in advance.

12:55 AM, May 21, 2009

suru said...

hi ankur
m new to testing n m trying 2 learn qtp 9.0... i hv read sm
ppt of QTP but wanna learn hw 2 write scripts....cud u
send me sme material or documents n pls suggest me any
link where i can find any of the samples.
My Email ID is
suruchivirmani@gmail.com

6:56 PM, June 08, 2009

soni said...

Hi Ankur,

I am have been working into manual testing from last 1.5


yrs & have sum knowledge of QTP but i never used it.
I want to learn the scripting of QTP .can you plz provide
the guidelines for beginner.And also wnt to know is there
any tool we can use for Microsoft Dynamics AX since my
platform is AX.
Thnxs
mail id:vaishali.bankar@gmail.com

10:47 AM, June 10, 2009

Aman said...

hi,
i know the qtp but i never use it in any live project ..so pls
help me to use the QTP in live projects.If u have any links
regarding live project with QTp pls provide me..this is my
mail id richa.singh.mn@gmail.com

12:10 PM, June 20, 2009

Bamboo said...

Hi Ankur,
I am a tester and i worked in software testing for 2 years.
I always manual test software and never use test tool
before. Now, i want to learn QTP for my job but i don't
know how to start? Could you please show me the way to
learn QTP sufficiently?

9:25 AM, June 22, 2009

stacy said...

http://mercuryquicktestprofessional.blogspot.com/2007/10/vb-script-and-qtp-part1.html 1/4/2011
VB Script and QTP - Part1 | Quick Test Professional(QTP) Page 12 of 15

Hi Ankur
Can u ples send me some easy examples of qtp scripts .so
that i can do some R&D and learn about the process.I
need some scripts in whoch VB scripting is Used.
MY email ID is
xavierstacy0@gmail.com

Thnaks In advance

5:01 PM, July 02, 2009

richie said...

Hi Ankur
I Want to learn QTP...pls help me
i want to study testing...

Rich

8:14 AM, July 17, 2009

Imran said...

Hi Ankur,

Hope you are doing good. Could you please send me


couple of VB scripts for QTP use.

My Email address is imran.joy@gmail.com

2:44 PM, August 05, 2009

Sun said...

Hi,
Ankuar,
i have 2 years exp in Manual testing right now i interest to
study in Automation like winrunner and QTP. so please
send me the QTP testing books

4:40 PM, August 07, 2009

yogi said...

Hi Ankur ,

I have a question.

How to resize a single dimentional array, Is it possible to


resize it withut losing the data.
Ex:

dim a(5)
redim preserve a(10)

This is not working....?????

2:58 AM, August 12, 2009

yogi said...

Hi ankur ,

I have a question.
Is it possible to resize a single dimensional array without
losing the data

Ex:
dim a(3)
Redim preserve a(10)

it is not wokring for me........?

But
dim a(3,5)
redim preserve a(3,10)

it works.

3:00 AM, August 12, 2009

prit79 said...

http://mercuryquicktestprofessional.blogspot.com/2007/10/vb-script-and-qtp-part1.html 1/4/2011
VB Script and QTP - Part1 | Quick Test Professional(QTP) Page 13 of 15

Hi,
Ankuar,
i have 5 years exp in Manual testing right now i interest to
study in Automation like winrunner and QTP. Could you
please guide me through?

Thanks
Prit

12:16 PM, August 28, 2009

frens said...

Hi all,
can you able to tell how to invoke recovery scenario by
writing vbscript(method)

8:00 PM, September 08, 2009

girish mishra said...

Can anyone send me a total QTP Scripting eBook in the


form of pdf file.Please co-operate me.Send to my mail id.
My mail id-girishmshr7@gmail.com

Thank you

8:08 PM, September 10, 2009

Vinay Kumar Suman said...

Hi,
i want to know that whats the best way to write an
automation script in QTP. i am a 3+ yrs experence in
manual testing but want to upgrade my skill in
automation. i also done automation course but not clear,
so am totaly scared about to write a script. So please help
me.

12:48 PM, September 12, 2009

richa said...

hello ankur...

this is richa here.

i'm working on manual testing.....


i've never ever worked on any automation tools....
but today when i read ur article i found it very
interesting....
now i really want to learn QTP and implement it too.
thans a lot ankur....

10:49 AM, September 22, 2009

venu9955 said...

Great job Ankur!

10:01 PM, October 13, 2009

Deepak said...

(1)What is functions in QTP?


(2)How do we use it?
(3)What is the examples of functions?
(4)How do we call the functions?
(5)What is generic object in descriptive programming and
how it it created?

6:43 PM, November 09, 2009

Anonymous said...

Hi ankur,

Thais is Manish here,i am working in manual testing but


want to work in qtp so tell me how i can learn QTP....

Thanks,

5:07 PM, December 07, 2009

http://mercuryquicktestprofessional.blogspot.com/2007/10/vb-script-and-qtp-part1.html 1/4/2011
VB Script and QTP - Part1 | Quick Test Professional(QTP) Page 14 of 15

Anonymous said...

Hi Ankur,
Ankur i want to know that wats the best way to write an
automation script in QTP. Actually i am a beginner so am
totaly scared about to write a script.Right now i got
clearded 2 technical rounds in niit technology and others
company but niit technology have to 20 days time
prepartion for scripting langauges. So please help me out..

5:42 PM, December 22, 2009

Anonymous said...

Hello I am in New York is there a school here in NY that


offers QTP classes? If not where online can I take a QPT
class and be able to actually use QTP and its examples?
thank you

7:21 PM, January 20, 2010

pam said...

hi Ankur,
I am beginer in QTP 10.0,
So, i want to write the vbscript in QTP,what is the
procedure to write the script & run the same .plz reply me
on

Thanks

11:08 AM, May 17, 2010

sruthi said...

hi Ankur,
I am beginer in QTP 10.0,

So, i want to learn & write the vbscript in QTP,what is the


procedure to write the script & run the same .plz reply me
on

10:56 AM, July 22, 2010

Ranjansoftware.Co.ltd said...

hi rajesh,
I am beginer in QTP 9.5,

So, i want to learn & write the vbscript in QTP,what is the


procedure to write the script & run the same .plz reply me
on

10:43 PM, July 25, 2010

Anonymous said...

I am interested in knowing about the QuickTest


Professional 9.0 Specialist Exam. I want to know about
1) cost of the exam
2) is it a web based
3) what kind of questions will be asked like is it a multiple
choice or theory or practical
4)How much knowledge do you need in qtp to crack this
exam.

Please drop a mail to mailbox ID:viji.monisha@gmail.com

7:54 PM, August 07, 2010

RAME said...

Thank you very much for sharing vb script learning site....i


shall be grateful to you.

12:17 AM, August 23, 2010

Anonymous said...

Ankur

I am interested in knowing about the QuickTest


Professional 9.0 Specialist Exam. I want to know about

http://mercuryquicktestprofessional.blogspot.com/2007/10/vb-script-and-qtp-part1.html 1/4/2011
VB Script and QTP - Part1 | Quick Test Professional(QTP) Page 15 of 15

2) is it a web based
3) what kind of questions will be asked like is it a multiple
choice or theory or practical
4)How much knowledge do you need in qtp to crack this
exam.

Please email me at thilakprasadk@gmail.com

4:02 PM, September 02, 2010

sree said...

good info

7:50 PM, September 07, 2010

Bala said...

Hi Ankur,
Ankur i want to know that wats the best way to write an
automation script in QTP. Actually i am a beginner so am
totaly scared about to write a script. So please help me
out..

12:25 PM, October 27, 2010

Post a Comment

Newer Post Home Older Post

http://mercuryquicktestprofessional.blogspot.com/2007/10/vb-script-and-qtp-part1.html 1/4/2011

Das könnte Ihnen auch gefallen