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
What are output values and why they are used ?
Explain in brief about the quicktest professional (qtp) automation object model?
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
What is the difference between a Function and Action in QTP?
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?
How many tabs are available in debug viewer pane?
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?
Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?
Explain the features of quick test pro(qtp)?
When and why to use descriptive programming?
Explain how to use QTP to check broken links on a page?
What is checkpoint in qtp?
Is text area check point supports for web applications?
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
How to suppress warnings from the test results page?