Forum Discussion
I cannot share the code due to security reason. But its in following format
var gridWindow = Sys.Process("Our Project Application Name").SWTObject("Composite", "").etc
Above code recognise parent window of our application. There are child window / tabs which i recognised using Text Recognition.
So for Ex: my parent window class is suppose 'SWT_Window0'. So i have given this class name in Text recognition.
Now I m clicking one of my child window as - gridWindow.TextObject("OurChildWindowName").Click();
Here my application automatically gets closed.
After debugging it seems that if i do not run the script and just enters the class name in Text recognition window and tried to find the object using object spy then also my application gets closed. This issue is observed only on 64 bit Windows 7 system same thing is working on 32 bit Win 7.
Thanks in Advance,
Swapnali
Is there a reason why you need to use TextRecognition? While it works to give you access to things based upon the text labels on screen, it's really not the best way to access stuff on an object.
Since your object is recognized as a SWTObject, you should be able to access native properties and methods of your object to perform the tasks of clicking on tabs, etc., within the object. Have you tried investigating those areas of your object?
Probably a better solution would be to see if you can map your class to one of the already supported classes in your project | object mapping pane. Investigate your object again and look for WndClass, ClassName, ClrFullClassName, JavaFullClassName or QtClassName. You can then map the class and potentially get better reognition. See https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/improving/mapping.html
As to why you're having the problem you're having, my guess is that TC is somehow interacting improperly with your object because of the TextRecognition wrappers put around it. TC is a 32-bit application so if it's trying to put 32-bit stuff around a 64-bit app, that could potentially cause issues. Again, try the Object Mapping solution or using native methods and properties to be able to click on the tabs, etc., that you need
- swapnalinarkar8 years agoOccasional Contributor
Thanks for reply but my problem is In our application we are using nebula grid which test complete do not support. So I am using text recognition plugin to select the text of the grid. We need to perform actions on these text like click etc.
Using internal properties and methods of the grid i can find rows and col (https://community.smartbear.com/t5/TestComplete-Desktop-Testing/Unable-to-recognize-child-objects-of-Java-SWT-Application/m-p/95213#M2105) but cannot perform the Click action.So I have used text recognition.
But when I am trying to use text recognition on Win7 64 bit system application automatically gets closed.
Can 64 bit system support text recognition ?
Related Content
Recent Discussions
- 2 days agovladd1