Results 1 to 8 of 8

Thread: Tool is not identifying location changing object

  1. #1
    Geek_Guest
    Guest

    Tool is not identifying location changing object

    Question asked by visitor udaykanth

    Object location changing in the screen. Tool is not identifying that object ....
    Then how to identify that object in QTP.. tell me all the possible cases to identify ..


  2. #2
    Contributing Member
    Join Date
    Feb 2007
    Answers
    61

    Re: Tool is not identifying location changing object

    Hi,
    Try to add the object manually to the repository(Hope u know how to do that) or else
    You can try creating Virtual objects
    Please let me know if u want the info in detail

    kamal


  3. #3
    Expert Member
    Join Date
    Apr 2007
    Answers
    147

    Re: Tool is not identifying location changing object

    If it is that only the object location is changing then adding the object to OR and then scripting will be enough. But if the object property is changing then it might be a problem


  4. #4
    Junior Member
    Join Date
    Feb 2008
    Answers
    7

    Re: Tool is not identifying location changing object

    Hey.. i have a similar problem,
    I have to automate a test case where i have to Check some data in a table on a web page..
    The problem is i am identifying the table based on location only,and storing it in GUI map.
    for eg : the description of any table will be like
    {
    class: object,
    MSW_class: html_table,
    location: 18
    }
    ..
    Is there any method where i can make the object location independent??
    For example, can i add ID of the table (which will be unique in the web page) to this description somehow and avoid identifying the table by its location alone>>>??
    It will of a great help to me since the location keeps changing..!!


  5. #5
    Expert Member
    Join Date
    Sep 2007
    Answers
    110

    Re: Tool is not identifying location changing object

    Hi,
    If object location is keeps changing then you have to
    Remove x,y coordinates from object repository.
    Then run, it will work..

    Arunsingh Rajaputra

    Last edited by rajaputra; 02-28-2008 at 05:59 AM.

  6. #6
    Junior Member
    Join Date
    Feb 2008
    Answers
    7

    Re: Tool is not identifying location changing object

    Hey..
    Thanks for the help..!
    I am very new to automation and i really dont know about QTP, object repository etc.I better learn and get back.

    Perhaps i should reframe my question this way.
    What i wanted to know was if i can somehow make the script identify the table even when the location changes,
    for eg:
    (Obj_exists(tableLogicalName)==E_OK)
    gives false when location changes,

    when i learn the table from UI,to copy it to the GUI map,i get the description of the table as
    {
    class: object,
    MSW_class: html_table,
    location: 6
    } or similar, only the location of the table changes for each table in the UI.

    i thought if i can perhaps delete the location from the description and add id of the table or something which is unique for a table,even if the location changes,
    my script will identify the table, and
    (Obj_exists(tableLogicalName)==E_OK) would return me true.,,

    Can i edit the GUI map somehow to make the table independent of location, but dependent on ID of the table??

    Thanks...!


  7. #7
    Junior Member
    Join Date
    Feb 2008
    Answers
    12

    Re: Tool is not identifying location changing object

    Quote Originally Posted by Geek_Guest View Post
    Question asked by visitor udaykanth

    Object location changing in the screen. Tool is not identifying that object ....
    Then how to identify that object in QTP.. tell me all the possible cases to identify ..
    Use Discriptive Programming,, definately ur problem will slove.


  8. #8
    Junior Member
    Join Date
    Feb 2008
    Answers
    7

    Re: Tool is not identifying location changing object

    Ill have to learn it.

    Thanks..!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact