Contributions
Distributed Testing using TeamCity
Hello, I am trying to set up distributed testing using several agent machines. The goal of the test is to have a web server set up on a master computer, then have several agent/client machines which will access the server either via a web browser or via a desktop application. All client machines will access the server at the same time by running the same TestComplete test and while the tests are running we want to check the performance of the server on the master computer. To understand this better, I was checking the distributed testing section in TestComplete. It says that the "Network Suite" feature is now deprecated and that we should now use aCI/CD system instead for distributed testing. We use TeamCity in our company for CI/CD so I am trying to understand how to setup this workflowvia TeamCity. Are there any steps for this? I have used TeamCity before to setup the smoke tests on an agent machine every timethere is a new build on TeamCity; but this is different where I need to trigger the same tests at the same time on several agent machines. Also, can I use a single TestComplete license (for master computer) and run TestExecute on all client machines? Or do I need separate TestComplete license for each client machine because that would make this operation very expensive. Any other tips are appreciated! Thanks!622Views0likes1CommentUsing Text Recognition Technology with Qt objects
Hello, I am trying to use the text recognition technology "Using Text Recognition Technology" (link below) https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/text-recognition/a.bout.html However, in the above link, see under "Enabling Text Recognition for Your Application" > point#5. It says "It must be the class name returned by the WndClass property of the object, to which your window or control corresponds.". Does this mean that it will not work for Qt objects? The desktop application that I am testing is Qt based. Therefore when I select a window/dialog using object spy, it returns 'QtClassName' and not a 'WndClass'. Therefore, when I try to invoke the 'TextObject' method, it does not work. Is there still a way that I can use this feature in my case? From object spy: Full Name = Sys.Process("myApp").QtObject("MainFrame").QtObject("TopWidget").......QtObject("TreeView").QtObject("qt_scrollarea_viewport") Thanks!Solved1.1KViews0likes2CommentsRe: How to add and identify custom Qt controls
After talking with our developer, I was told: We have a custom widget"TreeWidget"that is derived from "QWidget" (base class). And that has a custom widget member "QTreeWidget" that is derived from QTreeView (base class). Does this help?678Views0likes3CommentsRe: How to add and identify custom Qt controls
I am not sure about that. How can I find that out? When I select my control with the object spy, it gives QtClassName=QWidget (see attached screenshot from object spy). It does not give the type of QWidget. I will check with my developers also.2.2KViews0likes4CommentsRe: How to add and identify custom Qt controls
I tried adding the custom control in 2 ways: 1. First I tried adding a custom control "TreeWidget" under Qt Controls>Tree widget. After saving changes, I try to select my control using object spy but there is no change. It still cannot highlight the items inside my control. 2. Second I tried the first approach in the below link i.e. find your custom control's base class in the object mapping window and select the "derived classes" checkbox. This enables TestComplete to find your derived classes/custom controls from that base class. However, my base class is "QWidget" and this base class is not listed in the Object Mapping window, therefore I cannot do this approach. https://smartbear-cc.force.com/portal/KbArticleViewer?name=TestComplete-doesn-t-recognize-items-in-my-control-What-should-I-do&sp=testcomplete Please let me know if I am missing something. Thanks!2.3KViews0likes6Comments- 2.3KViews0likes8Comments
Re: How to add and identify custom Qt controls
Hello, I am trying to pick objects inside of a Qt control. Object spy catches the entire box but is unable to catch the objects inside of it. Object spy returns this with the box selection: Sys.Process("Abc").....QtObject("TreeView").QtObject("qt_scrollarea_viewport") This is a custom Qt control (or a derived class) which is derived from the base class "QWidget". When I go to "Object Mapping" in TestComplete, I can't find the base class "QWidget" and therefore cannot check the "derived classes" checkbox which may solve my problem. Under "Object Mapping" > "Qt Controls" > "Tree Widget", there is only one object "QTreeWidget". Therefore my question is, how can I add my custom control or derived class which is derived from the base class "QWidget"? Or how can I make TestComplete catch the items inside of my custom control? Without this ability, my only option is to use xy coordinates on the control which makes my tests unstable and hard to maintain. I also explored the option of using the "Text Recognition Technology" in TestComplete by calling the "TextObject" method but it looks like It must use the class name returned by the WndClass property of the object and since my control is Qt object it only has QtClass and therefore it is not able to invoke the TextObject method. Is there a way to use the "Text Recognition Technology" with Qt objects? Thanks in advance!2.3KViews0likes10CommentsRe: How to add and identify custom Qt controls
Thanks Marsha! I checked the info in this link but can't find the solution to my problem. To be more specific about the problem,we have a custom Qt control (or a derived class) which is derived from the base class "QWidget". When I go to "Object Mapping" in TestComplete, I can't find the base class "QWidget" and therefore cannot check the "derived classes" checkbox which may solve my problem. Under "Object Mapping" > "Qt Controls" > "Tree Widget", there is only one object "QTreeWidget". Therefore my question is, how can I add my custom control or derived class which is derived from the base class "QWidget"? Or how can I make TestComplete catch the items inside of my custom control? Without this ability, my only option is to use xy coordinates on the control which makes my tests unstable and hard to maintain. Thanks!2.3KViews0likes11CommentsHow to add and identify custom Qt controls
Hello, I am using TestComplete to test a desktop application. Object spy catches an entire box but no objects inside of it. It is Qt based. I already tried a a couple of ways but they are not working. Object spy returns this with the box selection: Sys.Process("Abc").....QtObject("TreeView").QtObject("qt_scrollarea_viewport") First I tried adding a custom Qt control in my projects object mapping page (based on the below link). After adding the custom control and saving, object spy still can't find the inside objects. https://support.smartbear.com/testcomplete/docs/general-info/supported-technologies/controls/qt.html Then I tried using theText Recognition Technology in TestComplete (based on the below link) by calling the TextObject method but it looks likeIt must use the class name returned by theWndClassproperty of the object and since my control is Qt object it only has QtClass and therefore it is not able to invoke the TextObject method. https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/text-recognition/about.html Any ideas how we can do this for Qt controls? Thanks!2.9KViews0likes13Comments