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 will internal and external links be validated and updated? how often?

0 Answers  


How to retrieve the data from database?

6 Answers   Wipro,


How we can import data from database?

0 Answers  


What is the difference between Accessibility Checkpoint and Bitmap Checkpoint in QTP? Note: I have read it in QTP help but i dont want answer from that.......

1 Answers  


Is it possible to map an image as standard Object or u've to treat as virtual? how to map an Dynamic image into standard object?

1 Answers  






How can we conduct U-I Testing by using QTP??????

0 Answers  


How do u connect database through QTP tell me both Ms Access and SQL

2 Answers   Livetek,


write script for , launching fr window,login and create 5 elements array and store 5 order numbers inthat array? and open order by using order no.s in array and find out maximum tickets booked by which order?

1 Answers   TCS,


Iam doing automation in Oracle App's using QTP? In App's because of some functional setup, keep on changing my script flow. for this how can i use the recovery sceanrio?? Please help me?

1 Answers  


I have to automate excel features using qtp in this i need to open instance of excel in different ways like double click on file, drag & drop options, File > open option but i know the 2 ways to open the excel instance 1 is by creating the object and another is to open the excel file in already opened instance of excel through sendkeys through qtp. But i m not geting how to open excel file through double click and drag and drop option through qtp script plz help me out anyone can thanks in advance

0 Answers  


Is it mandatory to know abt regular expression in descriptive programming

2 Answers  


Can any one please explain hwo to test client/server application using QTP?

3 Answers   Patni, Value Labs,


Categories