WHAT IS THE DESCRIPTIVE programming when it is useful? &
when to use this ?
Answers were Sorted based on User's Feedback
Answer / sreeprasad
1st Descriptive Programming is all about identifying an object
uniquely.
descriptive programming in QTP means whenever qtp facing
dificulty with obj identification then we will go with
regular exp or desc prog it means identifying obj unique
prop from the script itself.ex:vbwindow("").vbedit
("attached text:=username").set cdbjd
2nd answer
without using the objectrepository, and by using the
objectspy we will write the DESCRIPTIVE programming .when
ever we will go to DESCRIPTIVE programming :-
(1).when ever objects are dynamicaly changing.
(2).when ever QTP is not going to recognise the objects.
(3).when ever objectrepository size is huge automatically QTP
wil get down slow.
(4).when ever not yet develop the build then only we will use
DESCRIPTIVE programming .
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / anand
without using object repository and writing the script
using properties of objects is the descriptive programming.
by using this programming we can write the sscript at the
time of design itself.no need to wait for completion of
code and we can save the memory of object
repository,because the repository stores properties of
every objects at each occurence.due to this there may be
slow down of tool performance.we should have one project
experiance for writing the script at design phase.
if any queries call me at
9293739871
Anand
Is This Answer Correct ? | 0 Yes | 0 No |
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 maximum size of Object Repository in QTP 8.2?
HI How to take screenshots of a Webpage and saving it in a external word document using QTP.
An object is created, i dont know the methods available for that object, i want to find methods available for that object and use the required method. How i can do this???
Define Canvas view of UFT?
In google i'm going to search something like "rose", i usually get 10 results in the first page and in 2nd page 10 results and in 3rd 10 results so on upto 10th page 10 results. so if i want to open all the 10 pages 10 results i.e., 100 results and close..what is the DP for this? pls can anyone answer my Question..PLZZZZZ...
How to create log file in qtp?
what is defination of intergration testing?
In an Excel sheet take two fields as agentname and password and type some valid agentname and password.call that excel sheet in qtp so that qtp opens the flightreservation window taking into consideration how many records are entered in the excel sheet.For example if 3 records are entered today it will open 3 FR windows,if in near future the records are more than 3 then it will open that number of times.
What is Step generator in qtp? wt is the use? can u any body explain me? plz
What is time parameter?
hai friend's .. my question is a[0]=I a[1]=N a[2]=D LIKE IT GO'S i need output INDIA ,using simple string how will u do? can any one tell really need full..
4 Answers Mind Tree, Tech Mahindra,