Contributions
Re: TestComplete 11 - memory leak (?)
We suspect the memory leak is also coming from the intellisence feature of TestComplete. if the leak happens during script development: @ Turn this off and you will notice a slight reduction in the leak. @ During development, manually create an error and have the script debugger show that error. Continue writing yourcode. memory leak should be reduced as well. if the leak happens during execution : @ Update to the latest 11.31. At least for python, execution memory leak has been significantly reduced. Not removed, but reduced. Other tips: 1. minimize logging to 10 log files 2. Run from Project items instead from the IDE4KViews0likes5CommentsRe: TestComplete 11 - memory leak (?)
I initially discovered the leak in 11.0 python scripting. We went through a cycle of patches and then 11.1-11.31 came along and the effect seems to be minimized FOR running suites and loading python libraries. HOWEVER, for libraries that are over 800 lines, we noticed that while we are adding new lines of code, the memory consumption bubbles up uncontrollably. We logged a support ticket which SB seems keen to fix. This is an unacceptable issue that needs to be resolved asap. We are basically on halt until this is resolved! Glad we are not the only ones reporting it though4KViews0likes6CommentsRe: Using BDD with TestComplete UI automation
Thank you for the suggestion. Yes we did look over the articles. They are more on the lines of running Cucumber or Spectacle scripts in TC. We have our own BDD tool that is in-housed. My query is more along the lines of examples, experiences, and approaches anyone in the community would like to share. Especially tag teaming ui automation w/TC and acceptance testing-integration testing w/aBDD tool.2.5KViews0likes2CommentsUsing BDD with TestComplete UI automation
Our firm is shifting more into agile mode and BDD is the hot talk of the town. The BDD approach will obviously not eliminate the necessity ofUI tests, but I am curious if anyone in the TestComplete universe has ever used BDD w/ TestComplete ui automation. What were your challenges\benefits? How was your setup? Here in our firm, the plan is to use BDD as more targeted acceptance tests with TestComplete ui automation to plug in any functional gaps. Any advice would be appreciated.2.6KViews0likes4CommentsTestComplete 11 - memory leak (?)
Friends: This issue is with TestComplete11-python I noticed that on my machine, the testcomplete memory does not get freed up after execution. In our org, we have a UI automation framework written in python. It uses OOP, classes and all that other good stuff. The framework itself is about 5 libraries with roughly 400-1500 lines of code in each file and about 5-10 classes each as well. The testers will basically import these libraries into their script units and call these ui functions. I do notice that after a run, TestComplete's process memory size is at least 30MB larger than from the start. Eventually it bombed out at 3.5GB, So when I load TestComplete and a project suite, it starts out at 150MB. Run 1 ends with 180MB roughly, Run 2 starts with 180MB and ends with roughly 205MB. Run 3 starts with 205MB and ends with roughly 240MB, and so on and so forth. Does anyone have any clues on this issue? Suppressing the logs, removing unnecessaryextensions etc. doesn't seem to help. Is garbarge collection being handled correctly? Native python handles GC automatically, however, in TestComplete do Ihave to explicitly call a destructor? Or, arethe import statements being too expensive to load?4.5KViews1like10CommentsAccessing popup menu items in DevExressGrids
Hey guys: So our applications are very grid centric, primarily using DevExpress type classes. Now in one of our functional flows, the user has to rightclick the cell (which invokes a popup menu) and select a menu item. As far as I can see from testcomplete literature, you have to use an index to select the popup menu. Is there any way thatI can use the actual string value of the menu item? so in my code I have : WindowObj.PopupMenu.Click(menuItem) - menuItem is a string like"[0]" where "0" denotes the first item. Instead of "[0]" i want to use the actual menu item value. WindowObj.PopupMenu.Click("Open") I tried GUI Spying on the popup window, and that gave me no info. When I did a recording, TestComplete recorded the event with code as WindowObj.PopupMenu.Click("[0]") Any ideas?1.4KViews0likes4CommentsRe: Selecting Combo Box items that are out of view
Tony: Unfortunately I don't see that function listed out there in the methods tab. Here is a list of the scrollable functions for the combobox object: ComboBox object: DoAutoScroll DoAutoScroll_2(startingItem As Object) The combox box item object alsodoes not have any scrollable functions. Now we do have a scroll bar for users to navigate to the item they require, but I tried getting that scroll bar via record-replay but couldn't.779Views0likes0CommentsSelecting Combo Box items that are out of view
Hi guys, So in several of our applications we have combo boxes that contain large number of items (like over 100). Now TestComplete in some cases cannot select items that are out of view. I understand that it is out view, but is there any way I can bring focus to that item and select it. Is there any other workaround? I have two code snippets that I tried: for each item in sItemList if Trim(item)=Trim(sEnterValue) Then oObj.ClickItem(x) Delay(1000) exit for End if x = x + 1 Next in the code above I extract the item list from the wItemList property and the seperator (wListSepreator property), and loop through the list. If I find the required value (sEnterValue variable) then I click it. This works perfectly for items IN VIEW.oObj is the comboBox object. iItemCount = oObj.Items.Count for x = 0 To iItemCount - 1 If Trim(LCase(oObj.Items.get_Item(x).OleValue))=Trim(LCase(sEnterValue)) Then 'oObj.Items.Refresh oObj.ClickItem(oObj.Items.get_Item(x)) Delay(1000) Exit for End If Next In this second code snippet, I am trying to get the item directly using the get_Item property. It seems to work for items in view as well as for a few items out of view, but definelty NOT for items that are say 100+ down the list. I see there is a navigatetoItem function as well as a set focus function for the combo box object. I am not sure what to pass in for those functions. I tried looking around the MSDN library but couldnt follow the liuterature there. My final solution would be to use the send keys. But, I would rather use that as a very last resort!! We have a .Net application so the objects are of System.Windows.Controls classes. We also tried record and replay, but still the item couldnt be selected.1.3KViews0likes3Comments