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

Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji

1572


breef description of batch testing ?

1906


Hi, I'm a beginner in QTP and planning of a certification in QTP, but have no idea about it :P. Could anyone please tell me what certifications that a QTP- beginner can take? What is the fees and the syllabus for the certification? Please reply soon. Thanks Vidhya

1648


Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris

1983


write a script for allinterview-submit Question first we've to select Choose Category,second select Sub- Category(Which is comes in to runtime)third select Question Type.for that give some descriptive and vb script

1607


What are the key elements available in test result window?

902


Explain about datafile/verification of date file when file is not available in local system?

2501


what testplan contents and what test strategy contents,what is the diff b/w them

1895


What are the features supported by UFT?

866


Can we run multiple QTP scripts one after the other without manual intervention? How?

808


How to capture a window in QTP?

1738


what is ODC and GDC?

7624


How to Open FireFox using descriptive programing? If my question is not clear, i will give an Example To Open Internet Explorer, We use Set IE = CreateObject(InternetExplorer.Application) IE.Navigate "www.yahoo.com In the same i need to open yahoo.com in firefox. Can any one tell me what is the server name of firefox to create an object

2777


How to build scripts that access data from external sources?

1848


Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,

1587