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

Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.

1567


Hi Guys, I want to place all of my values which i am getting it from a loop in to a global shee. For that i had written the script like this For i = 1 to ECOs-1 ECO = List(i).GetROProperty("innertext") DataTable.AddSheet("ECOList") DataTable.GetSheet("ECOList").AddParameter "ECOList",ECO AbortECO = DataTable.GetSheet("ECOList").GetParameter ("ECOList").Value msgbox AbortECO DataTable.GetSheet("ECOList").SetNextRow Using the above script, whenever the loop iterates it is creating new column "ECOLIST" in the sheet called "ECOLIST". It means, the values are displaying in the column wise even though i added the script " DataTable.GetSheet("ECOList").SetNextRow" . The cursor is not moving to the next line. Anybody help me out how to pass the values from script to the excel(Global/Local) sheet. Pls let me know @ nbabu11@gmail.com if you are not clear about the question.

1500


explain keyword driven framework with banking domain?

1619


What is quick test pro? What is a quick test professional?

622


How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks

2832






What is recovery scenario in qtp?

653


What is the standard timing delay for web based application in qtp?

654


any body plz send health care domain project to me with explanation any two modules on that project. mail_id: ranjith_99reddy@yahoo.co.in

3504


what is the difference between the modular framework and datadriven frame work

1992


how to test Web application using QTP software

1402


Hoe can we do retesting using functions please give the code for it using login page

1624


How do you know the location Id of an object if you know its index id?

669


in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?

1421


1 Folders in VSS 2 In navigation script there are 100 script i want to run first 50 and 37th script also not needed to run how to do this 3 What is navigation script,Driver script, business script what we are loaded in this script 4 use of resource tab 5 Difference between verification and validation give real scenario example 6 file scripting object when to use it 7 what are the problems you are faced while testing web application 8 difference between expert view and keyword view 9 difference between QTP 8.2 and QTP 9.2 navigation frame work please answer these questions from real time working people as early as possible

1662


hi nani my doubt is how does qtp process metrix related to software process.

1621