Forum Discussion

sshah1's avatar
sshah1
Contributor
7 years ago

Projects migrated to TestComplete 12 failing to run

Trying to run existing project (developed in C#) in TestComplete 12 (converted from TC11). It opens tested application, but not identifying objects and then it freezes, can not stop the test. Need to close TestComplete forcefully.

How can I make it work?

6 Replies

  • cunderw's avatar
    cunderw
    Community Hero

    Which version of 12?

    What type of application?

    What does the code look like that it's failing on?

    What does your name mapping or object finding methods look like?

     

    We can probably help figure out the problem, but we'll need more information to start. 

     

    • sshah1's avatar
      sshah1
      Contributor

       

      Which version of 12?

      -- Version: 12.42.3048.7 x64

       

      What type of application?

      -- Desktop application (most likely C++)

       

      What does the code look like that it's failing on?

      ***************************************

      // if Recover Last Test window appears
      if(powerdb["dlgRecoverLastTest"]["WaitProperty"]("Exists", true, 3000))
      {
      Delay(1000)
      ClickTag("DontLoadTest",5); // Click "No"
      Delay(1000)

       

      When I commented out above code, it failed at different point

       powerdb["dlgSaveAs"]["SaveFile"](sFilePath, "PowerDB XML File (*.PdbXml)");

       

      It seems it is failing to identify dialogs..

      ***************************************

      What does your name mapping or object finding methods look like?

      --- Not sure what information you need here..but I have attached screenshot

       

      Thanks for your help..

      • cunderw's avatar
        cunderw
        Community Hero

        Ok, we're getting somewhere then, knowing that it's not finding objects.

         

        Namemapping screenshot is definitely helpful, can you post what the application and one of the objects your test can find looks like in the object browser? 

  • See attached screenshot of the application form. I believe this is the last screen namemapping identifies and everything after this is failing. 

    In order to get to this page, it opens application, selects instrument and then selects form from the list in a pop up dialog. All these actions working fine.

     

    • cunderw's avatar
      cunderw
      Community Hero

      Can you post your namemapping and object browser for one of the objects it does not find? 

  • Test Complete freezes every time I try to open Object browser. Then I have to forcefully close Test Complete using Task Manager. See attached NameMapping SS for Save As dialog.