in QTP,how to write a descriptive program for "yahoo"
or "gmail" Login page

Answer Posted / thirumala reddy

Writing the script using object properties and execute teh script without using object repository is called Descriptive program

plz check this descriptive program for gmail
first you have to take unique properties of objects using object spy and write DP

Browser("name:=Gmail: Email from Google").Page("title:=Gmail: Email from Google").WebEdit("name:=Email").set "enter email address"
Browser("name:=Gmail: Email from Google").Page("title:=Gmail: Email from Google").WebEdit("name:=Passwd").Setsecure crypt.Encrypt("enter password")
Browser("name:=Gmail: Email from Google").Page("title:=Gmail: Email from Google").WebButton("name:=Sign in").Click

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are output values and why they are used ?

808


Explain in brief about the quicktest professional (qtp) automation object model?

762


when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next

3565


What is the difference between a Function and Action in QTP?

833


If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?

1760


How many tabs are available in debug viewer pane?

817


An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?

857


Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?

3170


Explain the features of quick test pro(qtp)?

762


When and why to use descriptive programming?

790


Explain how to use QTP to check broken links on a page?

765


What is checkpoint in qtp?

752


Is text area check point supports for web applications?

718


Dear sir, i want to perform a QTP automated testing for mechancial engineering software like msc adams, msc nastran this softwares will help for mechanical engineering design analysis>> i know oad runner win runner, test director, QTp>> but i dont know how to use for automation

1810


How to suppress warnings from the test results page?

791