How you test the object which is dynamically changes its
location?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
What are the Disadvantages of shared object repository?
what r the 3 basic factor on which we determine to perform automation
How to interact tool & application build in QTP?
In Descriptive programing if i use this below code will it work for login window or flight Res Window. Shud i add the properties like attached text=login and text=Agent Name in the object repository and define a new object first. Pls tell me the procedure in clear inorder to execute this script. Dialog("title:=Login").WinEdit("attached text:=Agent Name:").set"agent123" Dialog("title:=Login").WinEdit("attached text:=Password:").set"mercury" Dialog("attached text:=Login").winbutton("text:=OK").click
Once the Actions are splitted , is there any way to merge them
How to export QTP results to an .xls file?
What is the use of an object spy tool in qtp?
How u call functions in QTP Function to calculate the length of characters in a word -
Hi all, In Every interview interview asking one question what type of challenges you have been faced in your project?
7. Given scenario is like this: One Web table is there and you have to search and retrieve a cell data which is equal to the given number say:123. Assume you have given with the column name/id of the table where the number may exist. So now you have to go to the given column and search for the number 123 and retrieve it along with the row number of it.
What are Test case selection criteria for Automation?
describe common problems of test automation?