Forum Discussion

wynandb1's avatar
wynandb1
Contributor
11 years ago

Name Mapping

Hi 

 

I need help with a TC project. 

 

I have 2 keyword tests in the project testing a windows application. The application version number changed recently, and now when I run the test for the windows application it stops as soos as the login has passed. So in other words the test goes as far as to login into the application and stops there. I suspect its got to do with the version that changed. 

 

I have nothing in my name mapping section in the project. What can I do to resolve this ? 

 

Please help 

 

Thank you

Wynand

9 Replies

  • This is going to be because in the root of your name mapping for the application, the new version has a property difference. I am guessing this will be the version number of the application. Find that in the root of your application's name mapping and replace it with a '*' (without apostrophises) wildcard. For example if it read 'Ver2.8.6.5' change that to 'Ver*'.

    This article has more information.

    • wynandb1's avatar
      wynandb1
      Contributor

      THe Name Mapping in this project is empty. None of the name mapping ticks in the options was selected when I did this project. 

       

      Thus I cannot change anything in the project name mapping. Is there any other way to resolve application version difference ? 

    • wynandb1's avatar
      wynandb1
      Contributor

      Yes I get a error message in TC. 

       

      Error Msg = : Could not obtain the window with the window class 

      • Marsha_R's avatar
        Marsha_R
        Icon for Champion Level 3 rankChampion Level 3

        In the statement that generates that error, do you have FindChild or some similar command?  You'll need to make the object that you're searching for more generic (similar to what Brook was suggesting).   

         

        Can you post that statement here so we can see the details?