SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Oct 2001
    Location
    San Francisco, CA
    Posts
    42
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    NameMapping Issue

    I have a problem with NameMapping. I have 4 environments where my script will run.

    http://qa01-environment/app/play.html
    http://qa02-environment/app/play.html
    http://qa03-environment/app/play.html
    http://qa04-environment/app/play.html

    Each page has the exact same objects, an image, and text field, and a button. I recorded a script test in the first environment. In the NameMapping, I changed the page object URL to a wild card. I am passing the URL in a variable to the toURL method. I expect the test to work for each of the environments. It only works for the first environment. For the others I get this error:


    An error occurred while calling the "SetText" method or property of the "textboxUsername" object.
    The object or one of its parent objects does not exist.

    Tested Object
    Alias: Aliases.iexplore1.pagePlay1.table.cellGraybg.table .cell.table.formLoginfrm.cell.table.cell1.textboxU sername
    Mapping item: NameMapping.Sys.iexplore1.pageWagerworks1.table.ce llGraybg.table.cell.table.formLoginfrm.cell.table. cell1.textboxUsername

    Missing Object
    Alias: Aliases.iexplore1.pagePlayworks1
    Mapping item: NameMapping.Sys.iexplore1.pagePlayrworks1

    When I view the objecst in the object tree, I notice the objects are not mapped for any the enviroments except the one recorded. Why does the object mapping not exist past the page object if all I'm doing is changing the URL?

  2. #2
    Moderator tristaanogre's Avatar
    Join Date
    Mar 2006
    Location
    Pennsylvania, USA
    Posts
    1,792
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: NameMapping Issue

    Without seeing your specific NameMapping of the page object, it's hard to say.

    I'm guessing that there are other factors at work here where I noticed that your NameMappingItem is PageWagerWorks1 for your tested object but your Missing Object is pagePlayrworks1.

    I'm guessing that, when recording, you're ending up re-mapping the object because of the broad wilidcarding of the URL.

    A suggestion: Instead of replacing the whole URL with the wildcard, try replacting only the variable portion. So you would have, in your object, "http://qa*-environment/app/play.html".
    -Robert Martin
    Automated Testing Evangelists
    TestComplete "expert"
    Definition expert - noun - Unknown drip under pressure

  3. #3
    Senior Member
    Join Date
    Aug 2006
    Posts
    1,920
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: NameMapping Issue

    Hi,

    Check property values by which objects from other web pages are mapped. Most probably, they are dynamic.
    Also, I recommend watchin this video.
    Jared - AQA Support

 

 

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 05:32 AM.

Copyright BetaSoft Inc.