Forum Discussion

Poornimak79's avatar
Poornimak79
Occasional Contributor
5 years ago
Solved

while recording a keyword test in Mapped objects i see that three different browsers are created

hi 

 

i have intially recorded in a environment A and i see that the Mapped objects had created a hierarchy of Sys -> Browser.

i had set the URL as Project variable and was switching to see if the test cases recorded were getting executed successfully in Environment B.

 

but some Text Properties were not getting identified in any environemnts so i tried to recapture the objects in Environment A, but i see that now the mapped objects are getting created under Sys -> Broswer2.

 

Can someone help me with where or what i am doing wrong.

 

 

  • You're going to need to remove any mappings that are duplications.  The wildcard should correct the problem moving forward but you still need to clean up your existing mapping.

6 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    Yes... you need to edit your NameMapping for the page URL to be wildcarded.

     

    For example, let's say I have two web enironments

     

    http://testEnvOne.mysite.com/myPage

    http://testEnvTwo.mysite.com/myPage

     

    Recording on the first one will map using that URL.  Go in to NameMapping, edit the page, and replace the URL with

     

    http://testEnv*.mysite.com/myPage

     

    That will have the page mapping find the same page regardless of environment.

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        IF you're going to use the project variable, set the variable to the URL, not to the asterisk.  Asterisk is for wild-carding a string.