Forum Discussion

alnita's avatar
alnita
New Contributor
12 years ago

Web test doesn't find mapped objects if URL changes

I am using TestComplete 8 and Internet Explorer 8. I created some functional tests for a web application developed in dotnet, mapping the names of many, but not all, objects. Now I am trying to run those tests on a web side that is identical to the first one, except for the main URL, which is an https site. (Of course, I changed the "iexplore.ToUrl" to the new URL.) The tests find the objects that weren't mapped, but not the ones that were mapped.  Is there a way to solve this problem without going back and remapping all the hundreds of objects? Thanks.

Mary Barnes

4 Replies

  • prakashk's avatar
    prakashk
    Occasional Contributor
    I am
    using TestComplete 8 and Internet Explorer 8. I created some functional
    tests for a web application developed in dotnet, mapping the names of
    many, but not all, objects. Now I am trying to run those tests on a web
    side that is identical to the first one, except for the main URL, which
    is an https site. (Of course, I changed the "iexplore.ToUrl" to the new
    URL.) The tests find the objects that weren't mapped, but not the ones
    that were mapped.  Is there a way to solve this problem without going
    back and remapping all the hundreds of objects? Thanks.



    Hi,



    Hope it will work, follow given steps:



    Go to Name Mapping

    Try to modify the URL (Replace '*' instead of dynamically changing the query strings)



    Example:
    Old URL = "https://www.hi.google.com/prakash.aspx"

                     New URL = "http://www.hello.google.com/ramesh.aspx"

    Here update the URL like "*//www.*google.com/*"



    Thanks

    Prakash
  • Anonymous's avatar
    Anonymous

    Prakash, thanks for your reply!



    Mary, did Prakash's suggestion help you?
  • mohameda's avatar
    mohameda
    New Contributor

    I want to list all objects in the Name Mapping window...

    I have used Child object with 'MappedName' property. .



    Its working when application is opened but i have objects from various windows and i want to list all in one shot.



    When application is closed or if i navigate to other pages i am not able to get the mapped name ... 



    Any one help me on this would be great .. Thanks in advance :)










  • Anonymous's avatar
    Anonymous

    Hi Mohamed,



    Your request isn't related to the original one. Please create a new thread. 

    BTW, this is not your first post to existing threads with a problem that differs from the one discussed in the threads. Please don't do this in the future. Otherwise, we may block your account.