How you test the object which is dynamically changes its
location?

Answers were Sorted based on User's Feedback



How you test the object which is dynamically changes its location?..

Answer / shiva

By using descriptive programming, we can can handle dynamic
objects.

i am not sure,correct it if wrong

Is This Answer Correct ?    4 Yes 2 No

How you test the object which is dynamically changes its location?..

Answer / chivukula.kumar

Hi Shiv,

your correct.

when object properties and object implementation is
dynamicaly changing then we are using DP

for example object(text box) location is changed
dynamically, then we can findout with the help object
properties like (index or creationof time or name etc....)

when that object having the unique name the following code
is applicable

Set obj = description.create()
obj("name").value = "xxx"

Browser("browsername").page("pagename").Webedit
(obj).set"xxx"
Or
Set obj = description.create()
obj("index").value = "x"

Browser("browsername").page("pagename").Webedit
(obj).set"xxx"

Is This Answer Correct ?    4 Yes 2 No

How you test the object which is dynamically changes its location?..

Answer / kalyan

QTP use to identify the objects using physical properties (name, text, innertext, etc) of an object.
Even though, If object changes the location it won't be a problem for QTP to identify that object.
If you use the x,y co-ordinates or Ordinal identifier(Location), QTP will not identify the object, if object location get changes frequently.

Regards,
Kalyan,
Team Lead
ITC Infotech.
Any queries, catch me at mskalyan.smile@gmail.com

Is This Answer Correct ?    2 Yes 0 No

How you test the object which is dynamically changes its location?..

Answer / nataraj

Hi, I also faced this problem in my application. For this
problem to be rectified, u should go to "Tools->Object
Identification" and add "name" as assistive/mandatory
property. The name property will not be displayed by
default. i.e the reason we should add the name property.
You can get the value of the name property
through "GetROProperty". One constraint is that if the
object is already added then if the above mentioned step is
followed then the object will be identified as a new
object. So you should do this while adding the objects at
first.

Is This Answer Correct ?    1 Yes 1 No

How you test the object which is dynamically changes its location?..

Answer / venkateshwarlu

hi purni

its not good always to enable smart identification
mechanism at the time of recording the test because the
performance of tool get decreased as it is to capture all
properties.

i am confident that shiva, kumar given good answers.

thanx

Is This Answer Correct ?    1 Yes 2 No

How you test the object which is dynamically changes its location?..

Answer / purni

Dynamic objects change there property during the run time,
so QTP fails to recognise the object. In this case we have
to enable the smart identification. This will assign a
object with an assistive property which can be recognised
by the QTP. So it's always recommended to enable the smart
identification before the recording test.

Is This Answer Correct ?    0 Yes 3 No

How you test the object which is dynamically changes its location?..

Answer / prashi

Using regular expression

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More QTP Interview Questions

How to Compare the 2 xl-sheets in QTP? ple write the vb Script for the comparison?

1 Answers  


any one can explain about QTP proocess,means where to start and how to start Scripting.

3 Answers  


How to remove the associated function library?

0 Answers  


hi all here i have tab named "Workbench" By clicking on "workbench" tab.it displays 4 tabs like below workbench common cargo commercial charter "common" tab have 10tabs inside,"cargo" tab also haveing 15 tabs inside and remaining two tabs also having few tabs inside. when clicked on "common" tab.it displaying the script like tab("workbench").select"common" if i clicked on "cargo".it displaying the script like tab"workbench_2").select"cargo" if i clicked on "commercial".it displaying the script like tab"workbench_3").select"commercial" if i clicked on "charter".it displaying the script like tab"workbench_4").select"charter" I have used a "FOR LOOP" for common,commercial,cargo,charter tabs.it was stopped at second tab SO, CAN I RECOGNIZE "WORKBENCH_2,_3,_4" AS A SINGLE VARIABLE if not, can anyone plese help me to solve this

0 Answers   Livetek, NIIT,


In my QTP script I have a word in notepad that ends in a question mark, for example... "father?" As part of my script I want to delete the question mark. How do you delete a character in notepad?

4 Answers  






Is QTP Object Oriented language or Object Based language? What are the OOPS concepts it will support? Why it wont support all the OOPS concepts?

1 Answers   CTS,


write the regular expression for date format of mm/dd/yy?

10 Answers   CTS, HCL,


how we connect oracle or sql data server database to qtp. Hi Ram I was your answer for this. Can you kindly let me know in details steps on How we can connect to database. i am using QTP9.2 and SQL Server Database. I am new for QTP and this would be of great help.Thanks

2 Answers  


I have one bitmap image in my webpage. The bit map image is moving like 1 place to 2nd place and 2nd place to 3rd place Etc… in my webpage. I wanted to write script for dynamical objects like above example. Could you please send me the answer for above query.

9 Answers   IBM,


Whenever we r keeping mouse pointer under the image we r getting image name. In qtp how can we do this thing.weather that name is coming or not?

5 Answers  


How to set the function parameters as optional. Pls anybody can give the answer.. Thanks in advance...

2 Answers   Navis,


During test run,How will you copy/paste from/to clipboard?

3 Answers  


Categories