rraghvaniChampion Level 3Joined 3 years ago4361 Posts1214 LikesLikes received529 SolutionsView All Badges
ContributionsMost RecentMost LikesSolutionsRe: capture variable from the popup in Desktop application Using Regular Expression, you can do something like this function test1() { var messageBox = "Client 121157871 Atul Patil Sancheti has been successfully added."; // RegEx var regex = /Client\s+(\d+)\s+(.+?)\s+has been successfully added\./; var match = regex.exec(messageBox); if (match != null) { var clientId = match[1]; // 121157871 var name = match[2]; // Atul Patil Sancheti Log.Message("Client ID: " + clientId); Log.Message("Name: " + name); } } Re: page.PagePicture - Screenshot duplication I've just tried this using the following code, function test() { var page = Sys.Browser("chrome").Page("https://getbootstrap.com/docs/4.0/components/dropdowns/"); var picture = page.PagePicture(0, 0, -1, -1); // Posts the image to the test log Log.Picture(picture); } and it works, Reasons for it may not work, is mentioned in PagePicture Method (Page Objects) Re: 'ADO' is not defined error - TC v15.79 There is something weird going on when using Python. If I run my function test() in Unit2 which purposely errors - def test(): result = Unit2.executeQuery("", []) Log.Message(f"{result}") Then when I run function test() in Unit1, which should pass, it errors with the following message - However, if I restart TestComplete or rerun test() in Unit1, then it passes It's definitely a bug, and I suggest you open a Support Ticket for this. Re: TestComplete 15.77 is broken - dont upgrade Either implement the workaround that I've provided, or wait for a status update from their Support Team. It's taken several minor releases, roughly 12 months to fix a click issue that I had reported! Re: Failed to connect to https://ocr.api.dev.smartbear.com. That's fine, then most likely your IT is blocking the traffic at the domain level - they will need to refer to the following information: https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/ocr/index.html https://support.smartbear.com/testcomplete/docs/general-info/configuring/windows-firewall.html Re: Failed to connect to https://ocr.api.dev.smartbear.com. Are you able to access https://ocr.api.dev.smartbear.com in your browser? Re: TestComplete 15.77 is broken - dont upgrade Thanks for the detailed information - what you have is correct, because I use a similar setup, but with JavaScript. After reading the following topics: https://support.smartbear.com/testcomplete/docs/scripting/calling-routines/declared-in-another-unit/from-gui.html https://support.smartbear.com/testcomplete/docs/scripting/calling-routines/declared-in-another-unit/python.html https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/project-items/sharing.html I think it should still be supported, but with the changes in Python 3.13.3, it may have broken this in TestComplete. Adding the full path to the list of directories in sys.path, works! It's worth opening a support ticket for this, as it could be a genuine bug. Re: Unable to run Keyword Tests after 15.80 The latest version of TestComplete comes with Python 3.13. Python has made a number of changes. One of them is treating global as regular scoped objects, which has impacted Python scripts used in TestComplete. See https://support.smartbear.com/testcomplete/docs/scripting/specifics/python_tc_globalobjects.html for more information. You need to update your Python scripts to accommodate this change. Here's an example, Re: Failed to connect to https://ocr.api.dev.smartbear.com. It's all described in the link that I have provided for Optical Character Recognition - Requirements. If your computer is part of a corporate network, then you'll need to get in contact with your IT. Otherwise, a quick internet search will explain how to go about setting up in/out-bound firewall connections. Re: TestComplete 15.77 is broken - dont upgrade What is the actual problem you are having issues with? Everything is clearly explained in the documentation of Working with TestComplete Global Objects in Python 3.13