Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Can any one give me some basic VB script used in QTP ?As i
am new in QTP.Give sample VB script used in QTP? PLZ

Answers were Sorted based on User's Feedback



Can any one give me some basic VB script used in QTP ?As i am new in QTP.Give sample VB script use..

Answer / dhana

first of all u need to add Objects in u r Application on
which u want to perform Operations to Object repository.

For ex:u need to Add Browser,Page,Frame,Webedit
(Username,Password),webbutton objects to objectRepository
then once u write "Browser" in Expert view,QTP
automatically vl popup the Browsername so as for page and
for Subsequent objects also...


for ex:

Browser("Browsername").Page("Pagename").frame
("Framename").webedit("Username").set 12345

Browser("Browsername").Page("Pagename").frame
("Framename").webedit("Password").setsecure asdahsxcasjd2362

Browser("Browsername").Page("Pagename").frame
("Framename").webbutton("Login").click

Is This Answer Correct ?    4 Yes 1 No

Can any one give me some basic VB script used in QTP ?As i am new in QTP.Give sample VB script use..

Answer / mike w.

An EXCELLENT resource is http://www.w3schools.com/VBscript/default.asp

Is This Answer Correct ?    1 Yes 0 No

Can any one give me some basic VB script used in QTP ?As i am new in QTP.Give sample VB script use..

Answer / dhanapal

Dim - For variable/object declaration
set - assigning value to the variable/object/property.
Ubound - upper bound value of an array.
Lbound - lower bound value of an array.
len(var_name) - to find the length of the variable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Which environments are supported by hp qtp?

0 Answers  


how to validate email?email ie correct or not ?with below conditions. 1)before @(symbol) only alphbates and min 4 char to max 15 chars. 2)before @(symbol) only alphabates dont use ant special chars or numarics 3) after @(symbol) only one dot(.)symbol for ex:abc@gmail.com it is valid email or not based above conditons

2 Answers   Aspire,


1.explain end to end process of qc,2.how many tabs are in qc9.0,qc10.0 3.what is review, how many reviews are following in aproject 4.how will you get the requirements 5.why do we choose testing 6.how to export tc's and requirements to qc through add-ins

0 Answers  


Explain object spy in qtp.

0 Answers  


1) How will you associate SOR in Runtime? ( u had written 10 lines of code from 11th line u want associate what code u will write) 2) How will close n number of browser expect only one which is has to test? ( First tell me how will you identify how many browser are opened ) what logic u will use? 3) In web Table u want to click on link ( Link Name Mohamed ) you dont know in which row and column that link is there. how wil u identify and click on that link.

2 Answers  


Distinguish between manual testing and automation testing

2 Answers   HCL,


How to create an Action Template?

1 Answers  


What is the difference between QTP 8.2 and QTP 9.2

1 Answers  


why use Description programming? what is advantages and disadvantage of this methods?

2 Answers  


How would you directly trigger javascript in a test?

0 Answers   eBay,


How to handle Recovery scenario in QTP. give detailed explanation about recovery scenario.

1 Answers  


Explain in brief about the QTP Automation Object Model.

1 Answers   Crea,


Categories