System checks for Object for every test
I had two projects in my project suite where one project is created as a base where all my desktop objects and the corresponding action for each and every control is written Controls are mapped in name mapping Scripts are written with Aliases being used I had created the second project where the scripts and name mapping from the first are used as it is and it includes some tests as well It is some kind of framework setup where the first project as a base project ( a kind of page object pattern ) and the second one re-uses the script and name mapping as linked items from the first If I am trying to run tests, each and every test tries to identify the objects that are declared as aliases in each script For example if I have something like var notepadwnd = Aliases["notepad"], the system is trying to find notepad for the default amount of time for each test. My tests are getting timeout as I have atleast 20 application which are like this and TestComplete is trying to find them increasing the test duration and thus failing the test due to timeout Is there anything that I am missing here44Views0likes3CommentsHow to run a powershell script from TestComplete with parameters ?
Maybe I am missing this in the documentation? Running PowerShell Scripts From TestComplete | TestComplete Documentation If possible, I was trying to find the syntax to go by for passing in single or multiple parameters.Solved66Views0likes5CommentsHow to stop TestComplete from failing a test when unrelated processes crash?
Hello! I've been hitting an issue for some time now where TestComplete will intermittently fail my test(s) because some unrelated process that I don't care about crashes. Typically these are Windows processes and they are 100% unrelated to my application or test running. Here's an example of it crashing for "GameBar.exe" which is a Windows process: I've searched extensively in these forums and there seems to be multiple threads over the last few years reporting the same frustrating behavior but I haven't found an example of how to configure TestComplete to not fail tests for this. I thought setting the "Process Filter Mode" to something like "Ignore all processes" would address this issue, but it seems to persist: Could anyone provide guidance on the proper way to prevent TestComplete from failing due to this? Thank you very much for any help!117Views0likes3CommentsImplementation of Built-in RightClickNextTo Function in OCR Module
We propose the addition of a new built-in function called RightClickNextTo in the OCR module of TestComplete. This function would work similarly to the existing ClickNextTo but would simulate a right-click action next to an identified text element based on its coordinates. Currently, we have implemented a custom RightClickNextTo function by leveraging the x1, y1, x2, y2, height, and width coordinates obtained from the Bounds function of the OCR object. After identifying the text, the function calculates the necessary offset and direction to perform the right-click action. However, we initially encountered challenges when applying this function to the BlockByText object due to coordinates errors. After further experimentation, we realized that the coordinates should be applied directly to the ClickR in the image object or the screen object identified through the TestComplete Object Spy, bypassing the OCR object's bounds error. While this solution works, we believe that incorporating this functionality as a native built-in feature within the OCR module would streamline the process and make it more accessible to all users. The RightClickNextTo function could be used for more precise interaction with text elements based on their coordinates, particularly for scenarios where right-clicking actions are needed, improving the flexibility and usability of the OCR module for automated testing. By making this a built-in function, TestComplete users would save time and avoid errors when trying to implement similar solution manually, improving overall productivity and reducing complexity in the automation process. Code Snippet: [ Refer the attached image] This code snippet demonstrates how the custom RightClickNextTo function calculates the coordinates and applies a right-click at the identified text's location using the image or screen object. We truly appreciate your consideration of this suggestion, as making it a built-in function would greatly enhance the usability of the OCR module for right-click action, benefiting users and simplifying the automation process.Shared user form between projects and event management
Hi all, I'm using a form that is shared between several projects. This form has 2 event handlers and I'm encountering a problem when executing it on the different projects. Assigning the event handler in the form works on the first project, but fails on the next. It's logical and due to the GUID attached between the form control and the event handler, which, as its name suggests, is unique to the project. To “get around” this technical constraint, I'd like to assign this handler dynamically from an initialization method, but I can't find any property that allows me to do so. Is there a solution to my problem other than duplicating my form file for each project? Thank you in advance for your help.55Views0likes2Commentsplease add Qt6.5 (LTS) Support
Qt6.5 (LTS) was released on April 3, 2023 and some bugs in Qt6.2 seem to be implemented only in Qt6.5. I believe Qt is widely used in desktop softwares and the demands of testings of softwares with newest Qt is large. However, TestComplete supports currently up to Qt6.2 and no update plan is published. We found that the newest TestComplete (15.54) cannot recognize any Qt-Objects in our software with Qt6.5. (Qt6-Objects are not recognized) Therefore, I would like to request Qt6.5 support urgently. Also, it would be helpful, if we could hear, when Qt6.5 is planned to be supported. Thank you.353Views6likes2CommentsPython help
Hello. I've been trying to get a value from a grid's specific location (row, column) using Python but seems to struggle finding the correct method. So far, the closest method I found is .SelectItem(), but it returns the row's entire value as one long string without white spaces. In javascript, I was easily able to achieve this using the .wItem(row, column) method. Would appreciate any leads.25Views0likes2CommentsDesktop Testing Parallelization for CI/CD
Right now, when we want to parallelize our desktop tests with TestComplete, we assign tags to various groups, then use GitHub Actions to run the various tags in parallel. While this works, it's also a very manual process that requires rebalancing test groups by hand. It would be ideal if there was some way to have TestComplete split groups of tests for running in batches, that I could then feed into our CI/CD Actions. This could work for non-Desktop tests as well, but I'm focusing on Desktop testing since there is at least some parallelization for web and mobile.7Views0likes0Comments