what is descriptive programming in QTP? How can be done?

Answer Posted / vishakhab

Similar way,
for web programming:
suppose you are testing: Google Sign up page.
"https://www.google.com/accounts/NewAccount?"
To recognize the Text box: "Your current email address:"
The follow statement:
Browser("Google Accounts").Page("Google Accounts").WebEdit
("name:=Email","id:=Email").Set "vishakhavijay23@yahoo.com"

won't work without defining the object in the repository.

You need to modify the above statement as:
set emlTxt=Browser("Google Accounts").Page("Google
Accounts").WebEdit("name:=Email")
emlTxt.Set "vishakha@yahoo.com"

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

whenever U using QTP,Test Director, Why we using separate Bug tracking tool?

1845


Explain how qtp identifies objects?

779


HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...

2620


how to post xml data from QTP scripts to any application?

1742


i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click

1746


how will load the object during runtime?

1809


Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers

1828


What is the file extension of the code file and object repository file in QTP?

848


How does quicktest professional (qtp) identifies the object in the application?

775


What is the difference between Keyword Driven test and Data Driven test?

1996


Explain the features and benefits of quick test pro(qtp)?

727


How the exception handling can be done using quicktest professional (qtp)?

759


What is Cross browser testing? Does UFT support it?

809


how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

1819


How may types of defects identify application or your currently working application?pls give me answer..

1730