How to handle dynamic objects in QTP?
Answers were Sorted based on User's Feedback
Answer / vijay
by using reguler expressions we can handle dynamic objects
in qtp
Is This Answer Correct ? | 14 Yes | 2 No |
Answer / srujan
By using smart idetification and regular expressions
Is This Answer Correct ? | 11 Yes | 1 No |
Answer / sreeprasad
QTP has a unique feature called Smart Object
Identification/recognition. QTP generally identifies an
object by matching its test object and run time object
properties. QTP may fail to recognise the dynamic objects
whose properties change during run time. Hence it has an
option of enabling Smart Identification, wherein it can
identify the objects even if their properties changes
during run time.
Check this out-
If QuickTest is unable to find any object that matches the
recorded object description, or if it finds more than one
object that fits the description, then QuickTest ignores
the recorded description, and uses the Smart Identification
mechanism to try to identify the object.
While the Smart Identification mechanism is more complex,
it is more flexible, and thus, if configured logically, a
Smart Identification definition can probably help QuickTest
identify an object, if it is present, even when the
recorded description fails.
The Smart Identification mechanism uses two types of
properties:
Base filter properties?The most fundamental properties of a
particular test object class; those whose values cannot be
changed without changing the essence of the original
object. For example, if a Web link's tag was changed from
to any other value, you could no longer call it the same
object. Optional filter properties?Other properties that
can help identify objects of a particular class as they are
unlikely to change on a regular basis, but which can be
ignored if they are no longer applicable.
Is This Answer Correct ? | 14 Yes | 6 No |
Answer / krishnateja muppalla
Some times you can make use of Location and Index based on requirement.
Is This Answer Correct ? | 3 Yes | 5 No |
can a Function return more than one value..??? if so please give me the code for that.
5 Answers DST Global Solutions,
what is keyword driven testing in qtp?n how is it useful?
can we take 'dim my pen is good' as a paramerter
Hi Guys...I just started working with QTP now.The frame work they use hear is Write all the functions in function libraries and pass data using data dictionary either from data table or excel .I kind of understood evrthing but one thing I need to know is How do they recognize objects .Do they use object spy and recognize objects or record them ..Does soemone have any idea how they generally do this is such kind of framework
what is vmodel?advantages and disadvantages of vmodel?
what is standalone database
How to test a web application using QTP?there is no any .exe file in web app,then how we can take the application for testing
write code to read and write data from file?
How to open an application through scripting?
Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.
How to catch the TOol Tip Dyanamically changing values using the qtp script by Descriptive Programming Scenario: ======== 1. when i press the submit button 2. The Tool tip first shows the value "Validating...." 3. Next the value is changed in tooltip "Logging....." ------ And the class is webElement SO , how can i catch both values During Run time using Dp
Hi, I got error message as "object does not support this property or method: "Test.Actions" when i execute the following line of script on QTP 9.0 Dim qtApp, qtRep Set qtApp = CreateObject("QuickTest.Application") Set qtRep = qtApp.Test.Actions("Action1").ObjectRepositories Can anyone tell me where i am wrong.