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 |
How u send bugs to dev'lpment team all at once or one by one or waht is the process?
Should have experience in framework means?
Explain in brief about the QTP Automation Object Model.
I register user defined function in one test, I tried to call that function into other test. But that function not works in other test please give the direction for that.
How to see the screens after running test in QTP?
What are the file extensions for per-action, shared object repository files and what is the extension for library files?
How the smart identification is used in real time?Please explain with an example
How to extract the data in the below scenario and dump it in the excel? Link1 Link2 Link3 Link4 numberlink1 text text text numberlink2 text text text numberlink3 text text text numberlink4 text text text So, Here is my question? -- It is a matrix but is not a web table(QTP does not recognize it as a web table) -- Link1, link2 and link3 are links under which text is available -- numberlink1 to numberlink4 are again LINKS -- All the others displayed are text only I want to extract the data in the above scenario and dump it into an excel in the same scenario as it is displayed above. Kindly help.. Thank you
I had installed QTP 9.2. It is working fine but whenever I open QTP, it is trying to reinstall the below-mentioned files again and again "QTP92PS82UPGRADE.exe", "recogn.dll". If anybody has these files, please provide those files in this site or you can send that files to my mail id also (lravi4u@yahoo.com). If you don't know where the files will be in the QTP, search in the QTP software CD or path of QTP program installed (C:\Program Files\Mercury Interactive\QuickTest Professional)
How do you copy a value from a cell in an msexcel sheet saved on the desktop into QTP's datatable when the co-ordinates of cell are given?
How do you do batch testing in wr and is it possible to do in qtp, if so explain?
how do u get lib files into scripting files?