TestComplete cannot find visible buttons
Hello everybody, I'm testing an application using TestComplete 14.0 on a Windows 10 computer. The application is a software controller built using Qt 5.14.2 libraries and compiled using Visual Studio 2017. We recently upgraded the Qt libraries from Qt 5.8.0 and TestComplete cannot find some buttons anymore. Even though, those buttons are completely visible. I've run the Report Generator application and produced a report about this issue. Also I'm attaching a screenshot about what I'm talking about. Basically, Test complete says that it can't find a button on a Popup that is visibile, saying that is not. What could cause this issue? I've checked the button with the object inspector and the name of the button showed fits with the action selected. Any help is appreciated. Thanks!Solved2.3KViews0likes6CommentsClickCell() action returns "an error occured" while clicking on QTableWidget.
Hello everyone, we are testing a desktop application, built with Qt libraries and we stumbled in an issue when testing it with TestComplete (v14.60) Attached are few screens of what is the situation. The first one are the trials we made to execute the expected action. We tried using a python script, using a ClickCell with a script to find the right row or directly giving it the desiderate value (1, 1). All of those return the "An error occurred" issue. The script used to find the right row is the following: Aliases.RockSpotControllerGUI.ids_heron_HeronGUI.TabWidget.qt_tabwidget_stackedwidget.ids_heron_CentralWidgetSession.Widget.TabWidget.qt_tabwidget_stackedwidget.ids_heron_SessionWidget.TabWidget.qt_tabwidget_stackedwidget.ids_heron_SessionStatusWidget.ids_heron_AlarmsWarningsWidget.TableWidget.FindRow(2,"Camera 1 connection error (Error code 6004)") and returns the expected value, which is 1. This script is then used in the ClickCell() method as first parameter (row), the second parameter (column) is hardcoded as 1. Following there is a screen of part of the application, showing the table where the click is failing. The interested row is the second one "Camera 1 connection error...") We supposed it could be a problem of the "System Alarm - Critical" popup that is showing, like it could be an overlapping window, but even hiding it does not solve the issue. We also tried to click on the background before clicking on the desired cell but that does not change the result. The output of the generic error is the following: 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: 37 0x80004005 (Unspecified error) . Tested object: Aliases.RockSpotControllerGUI.ids_heron_HeronGUI.TabWidget.qt_tabwidget_stackedwidget.ids_heron_CentralWidgetSession.Widget.TabWidget.qt_tabwidget_stackedwidget.ids_heron_SessionWidget.TabWidget.qt_tabwidget_stackedwidget.ids_heron_SessionStatusWidget.ids_heron_AlarmsWarningsWidget.TableWidget (Sys.Process("RockSpotControllerGUI").QtObject("ids::heron::HeronGUI", "", 30).QtObject("QTabWidget", "", 3).QtObject("qt_tabwidget_stackedwidget").QtObject("ids::heron::CentralWidgetSession", "", 1).QtObject("QWidget", "", 1).QtObject("QTabWidget", "", 1).QtObject("qt_tabwidget_stackedwidget").QtObject("ids::heron::SessionWidget", "", 1).QtObject("QTabWidget", "", 2).QtObject("qt_tabwidget_stackedwidget").QtObject("ids::heron::SessionStatusWidget", "", 1).QtObject("ids::heron::AlarmsWarningsWidget", "", 5).QtObject("QTableWidget", "", 1)) Any help is really appreciated. Thanks.Solved1.8KViews0likes6CommentsProblem calling method of custom qt object with QMetaObject::invokeMethod
Hi Everyone, I am testing a Qt application with Test Complete, my context is : Application compiled with Qt 5.9.5 + MSVC 2015 64 bit Test Complete 12.50 with VBScript language In this example case, my application is only a QWidget with a QPushButton. When clicking on this button, a custon menu appears. This menu is a class CMenu, derived from QMenu CMenu is declared in object mapping under Qt Controls > Menu in Test Complete project properties (default and current) My need is : access some data of my CMenu. These data are in a QList<QString> private member of my CMenu class. So, I declared a public accessor in my class to get one item of my list by its index in the list. ... class CMenu : public QMenu { Q_OBJECT private: QList<QString> m_lstTestNames; public: ... Q_INVOKABLE QString getTestName(int index) const; ... }; ... QString CMenu::getTestName(int index) const { return this->m_lstTestNames.at(index); } It works fine, in the object browser of Test Complete, I found my object and this method Sys.Process("proto_cmenu").QtObject("CMenu", "", 1).getTestName Description : Function getTestName(Param1 as Integer) as Object Now I want to use this method in my test script. So, first I open my application and I click on the push button to display my menu, and then call my method like below for example(it's the line 46 of my script) : Log.Message "Test Name 0 = " & Sys.Process("proto_cmenu").QtObject("CMenu", "", 1).getTestName(0) My problem is : I got the following error : VBScript runtime error. Erreur non spécifiée Error location: Unit: "FELIX\FLX_TST_007\Script\MAIN" Line: 46 Column: 2. With the following message just above in the log : Debug String: QMetaObject::invokeMethod: No such method CMenu::getTestName(getTestName) Candidates are: getTestName(int) I don't understand this message, as you see above, I called my function with an integer in my script, why does it talk me about "CMenu::getTestName(getTestName)" ? Can someone give me some help to go through this problem ?1.5KViews0likes2CommentsProblem with Object Extended Properties and Actions recognition in one specific case
Hi all, We have a set of tests coded with TestComplete 12.50 (12.50.4142.7 to be perfectly exact), working with common functions, and one day, one of these tests started logging errors dealing with interaction with objects like Tree Widget or Line Edit, which are manipulated in common functions. I mean all tests except it keep working correctly. The problem is systematic since 3 weeks ago, we use SVN to versionning our test scripts and we did not identify any change on this test or on the common functions concerned when the problem appeared. More details below : - We have a project suite with one project for each test (each test has one test item running the test) - We develop test on VM with TestComplete and execute them on other VM with TestExecute - On VMs, OS is Microsoft Windows 10 Business, 64-bit (10.0 Build 17134) - The test runs well on my development VM, on another execution VM too (which is currently use for other tests), but fails on the execution VM which it has to run - The application we are testing is a Qt application - Objects causing problem are custom Tree Widget or Line Edit inherited from QTreeWidget or QLineEdit - These custom objects are well presents in our Object Mapping where they have to be (Qt Object Mapping, Tree Widget and Line Edit, for Current and Default Project Properties) - We get errors like : Unable to find the object wItems. See Additional Information for details. Additional Info : The object with the specified attributes does not exist. ... The object "wItems" does not exist. Additional Info : You are trying to call the "Item" method or property of the "wItems" object that does not exist. ... The object "wItems.Item("TESTCOMPLETE")" does not exist. Additional Info : You are trying to call the "Selected" method or property of the "wItems.Item("TESTCOMPLETE")" object that does not exist. ... Unable to find the object ClickItem("TESTCOMPLETE"). See Additional Information for details. Additional Info : The object with the specified attributes does not exist. ... Unable to find the object wText. See Additional Information for details. Additional Info : The object with the specified attributes does not exist. - In these messages note that "TESTCOMPLETE" is the caption of the item we want to click on; and we check the item currently selected before. Besides, note that for each error, we got a screenshot and our application is well opened ans visible (we tried to force it with a SetFocus call before trying to interact with but it did not change nothing) We do not manage to explain what could be the reason of this problem and what could bring it about suldenly. We tried to go through Object Mapping and other Project Properties, VMs OS versions, TestExecute version, comparing all these elements between each VM and each project (because other projects work well). We read many forums on SmartBear Community but although we tried some suggestions found for other problems, we did not find solution. Please, can somebody help us go through this problem ?Solved1.3KViews0likes2CommentsUsing multiple versions of Qt modules on TestComplete 12.41.2879
Hello, I have a project where I have to interact with a window developed by a third party company in Qt 4.8.x and our application it developed in Qt 5.9.x. How can I interact with both applications in the same project when the Qt version is different? Thank youSolved1.3KViews0likes2Comments