SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    New Member
    Join Date
    Jan 2013
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    class is changed in webtable

    Hi,
    I'm testing one web application, Grid previously it was identified as WPFGRID class name we written in code every part as
    Browser(B).page(p).wpfgrid(x).exit
    but It's identifying as WBFGRID
    now we have to change in every part of the code is there any solutions for this .why it's identifying differently.
    how to solve this.
    Everytime we are loading .net addins correctly


    Thanks
    sarvi

  2. #2
    SQA Knight
    Join Date
    May 2006
    Location
    Playa Del Rey, California, United States
    Posts
    2,593
    Post Thanks / Like
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0
    It's ween a while since I used QTP. Most tools support of idea of Mapping, and aliasing.

    The idea is you map things in an object map, then you alias those objects when you reference them in a script. So when an object changes, you remap that object, but point your alias at the new object. This will give you a single point of maintenance for all object properties.
    David Lai
    SDET / Consultant
    LinkedIn profile

  3. #3
    Advanced Member venu.adhikesevan's Avatar
    Join Date
    Jun 2010
    Posts
    517
    Post Thanks / Like
    Mentioned
    2 Post(s)
    Tagged
    2 Thread(s)
    Total Downloaded
    0
    Same as above suggestion but a bit coding perspective...

    Set objGrid = Browser(B).page(p).wpfgrid(x)

    objGrid.click
    objGrid.Exit

    Whenever the grid object changes you can modify the name of the object at object creation level will reflect everywhere it is invoked.
    Venu
    Today is always better than Tomorrow
    My Blog
    My LinkedIn

  4. #4
    SQA Knight bklabel1's Avatar
    Join Date
    Sep 2012
    Location
    Kew Gardens, United States
    Posts
    2,596
    Post Thanks / Like
    Blog Entries
    1
    Mentioned
    2 Post(s)
    Tagged
    2 Thread(s)
    Total Downloaded
    0
    An idea that I have used in the past was to use descriptive programming in libraries. Then I used replace string (Ctrl + h) in the editor to globally change when descrptions change.

    I don't recommend this. But I have worked like this when I used existing code.

    If the properties are in the OR, I'd guess it would take a long time to locate and change each object. Maybe you could export to an XML file, do the replaces and import again. I have not tried this, but I think it would work.

    Thanks,

    Kevin

  5. #5
    SQA Knight
    Join Date
    May 2006
    Location
    Playa Del Rey, California, United States
    Posts
    2,593
    Post Thanks / Like
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0
    Descriptive programing is good for deep object trees. Mapping is suppose to help with a lot of the ID changes where changes tend to be in ID numbers, and element properties.

    Where descriptive programming is very helpful is when changes cause elements to move up and down levels on the hierarchy tree. With descriptive programming you can do deep find operations on nodes, and assign your elements relatively to say a parent frame/page that's further up the chain. This tends to be more reliable.

    Most record and playback will default to using absolute pathing because it's far faster. Native application automation tools don't perform well with deep find operations since they have to scan all the UI objects on the screen. That's why they are less used.

    The most commonly used middle ground is to first map the objects automatically, then assign those mapped object aliases that can be used in script code. When the objects change, you just remap everything, then point the aliases to their new mapped properties.
    David Lai
    SDET / Consultant
    LinkedIn profile

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:33 AM.

Copyright BetaSoft Inc.