ContributionsMost RecentMost LikesSolutionsHow to solve "Prepare object recognition hint" cost a lot of time on used object Greeting! i am testing on Java application. after upgrade to TC 12.42, i found it keepstuck at"Prepare object recognition hint" , which cost a lot of time to go throught. scenario is perform a butto click on a dialog and it closed after done. but code keeping waiting saying "Prepare object recognition hint" Below is my simple sample: def Test1(): java = Aliases.java summaryGrid = java.Workspace.RootPane.null_layeredPane.null_contentPane.ContentContainer.MainContainer.Panel.MainDockingContainer.DefaultDockingManager_DockedHiddenSlidingContainer.DockedHiddenContainer.ContainerContainer.DockedFrameContainer.Panel.ContainerContainer.FrameContainer.View_AutoTest_Summary.RootPane.null_layeredPane.null_contentPane.HTPanel.Panel.Panel.GridPane.Viewport.Summary summaryGrid.Click(461, 23) summaryGrid.Keys("[F9]") button = java.JideDialogProvider_6.RootPane.null_layeredPane.null_contentPane.StandardDialog_DefaultStandardDialogPane.NewBuySellPanel.Panel.OrderDialog_3.Panel.Panel.CustomColorButton button.click() after button click, TC not stop but keep waiting.... NameMapping: as screenshot Re: How to solve "Prepare object recognition hint" cost a lot of time on used object Hello, from the code above, i just replay the script i recorded, not checking its existence. Re: How to solve "Prepare object recognition hint" cost a lot of time on used object Thank you! Did you mean call clear cache before test case? seem i have no luck with it. Still same waiting message. Re: How to solve "Prepare object recognition hint" cost a lot of time on used object many thanks, how to clear Java cache in each run? can you give a code sample? Re: How to solve "Prepare object recognition hint" cost a lot of time on used object Thanks for quick respond,Shankar! i've read the solution what you mentioned below. 1) add "check existence", does not work like: while button.Exists: button.Click() 2) i recorded the action and pick up the only one tree for this object, as my screeshot, not work 3) acutally there is no warning in the log at all, it takes long time waiting, then case done successfully. Best regards, Re: Python - Send Email by OutLook 2010 failed when outlook is closed Hi Just FYI. i add mail.display() before mail.send(), then mail send out successfully but cost some time. i think it is a temp solution for me. Re: Python - Send Email by OutLook 2010 failed when outlook is closed Hi Alex, fail at the last line when Mail.Send(), and interesting thing is, if i debug the code, it can send out successfully, only fail when i run the code. Python - Send Email by OutLook 2010 failed when outlook is closed Hi , i want to use below code to send report by out look after test done. def send_to_mail(test_result): fmt = '%Y-%m-%d' report_time = time.strftime(fmt) outlook = Sys.OleObject["Outlook.Application"] mail = outlook.CreateItem(0) mail.To = test_result[0]['MailTo'] test_app = test_result[0]['Name'] mail.Subject = 'TestComplete - '+ test_app + ' Auto Test Report - ' + report_time mail.HTMLBody = test_result[1] mail.Send() it works if my outlook is open in desktop, but fail with error "Operation Failed" if outlook is closed. Can anyone help on this?? because we need runcases from remote PC which install outlook, but would not like it opened. Re: Python Module - ImportError No module named win32api Hi , i got the same issue, anyone look into this? or have any solution? Thank you very much. ClickItem works when record but fail when replay on Javax.swing.tree i encounter a very weird and urgent problem, when i use record script : def Test2(): tree = Aliases.Horizon.AbstractShowViewAction_ContentAssistDialog2.RootPane.null_layeredPane.MenuBar.Panel.ScrollPane.Viewport.Tree tree.ExpandItem("null|Add View:|Algo Trading") tree.CollapseItem("null|Add View:|Algo Trading") tree.ExpandItem("null|Add View:|Algo Trading") tree.ClickItem("null|Add View:|Algo Trading|Backtesting") tree.ExpandItem("null|Add View:|Algo Trading|Backtesting") tree.ClickItem("null|Add View:|Algo Trading|Backtesting|Backtest Manager") tree.ClickItem("null|Add View:|Algo Trading|Backtesting|Sessions Replayer") i can see ClickItem work well, but when i try replay it, it fails: error: The test run has stopped because the "Stop on Error" setting is enabled. Possible reasons: 1. The application stopped responding. 2. The application was compiled incorrectly (see the Open Applications topic in the help system). 3. An error occurred in TestComplete/TestExecute. Technical information: 527 0x80070057 (The parameter is incorrect.) . Tested object: Aliases.Horizon.AbstractShowViewAction_ContentAssistDialog2.RootPane.null_layeredPane.MenuBar.Panel.ScrollPane.Viewport.Tree (Sys.Process("java", 2).SwingObject("AbstractShowViewAction$ContentAssistDialog", "", -1, 4).SwingObject("JRootPane", "", 0).SwingObject("null.layeredPane").SwingObject("JMenuBar", "", 0).SwingObject("JPanel", "", 0).SwingObject("JScrollPane", "", 0).SwingObject("JViewport", "", 0).SwingObject("JTree", "", 0)) and i am sure before, it works !! i try to reinstall Test Complete, but doesn't work.. but test application not change at all. but case can't run.