Forum Discussion

Ish's avatar
Ish
Occasional Contributor
13 days ago
Solved

Object spy can't recognize spring boot app JTable

Recently our java application has been upgraded to spring boot app and all the testcases are failing after the upgrade. TC Object spy recognize only the part of the JTable content but previously it could highlight the correct JTable area. The first image shows how the object spy identify the JTable area in the older version of our app and the 2nd image shows how it shows in the upgraded version of the spring boot app. When executing Click action on the first row of the JTable, TC clicks on the column header. So TC recognize wrong area as the JTable. How can I fix this? Please help.

JTable creation is in ClassA and previously the application runs by calling ClassA. but after the spring boot upgrade, they have created a new main class ClassB and they are calling the ClassB methods from ClassA. After upgrade, application runs by calling Class B but all the table creation are still in ClassA.

 

 

3 Replies

  • Hassan_Ballan's avatar
    Hassan_Ballan
    Icon for Champion Level 1 rankChampion Level 1

    That is an interesting situation, and not sure my input would be of help. However, TestComplete documentation for JTable https://support.smartbear.com/testcomplete/docs/app-objects/specific-tasks/grids/jtable/index.html has a note about access to internal methods and properties of the JTable object reference two plugins are must be installed and enabled. Have a look, and if in doubt, to be sure you can uninstall TestComplete and reinstall it, that would clear all your TestComplete customization and go back to default install.

    One more thing, I used ChatGPT and got interesting results. You can do the same and ask: Our java application has been upgraded to spring boot app and now all TestComplete testcases are failing. The Object spy recognize only the part of the JTable content but previously it could highlight the correct JTable area. 
    What is wrong? or how to address?

    • Ish's avatar
      Ish
      Occasional Contributor

      Thanks. I changed the display resolution to 1680x1050 and it worked.