Contributions
Re: Test Complete somtimes uses 30 - 60 sec. to perform one action
I did, and that haven't helped. The problem isn't that TC is always slow ... it is that, once in a while, tasks that normally take it milliseconds to do, suddenly takes 30-60 sec. ... meaning that scripts that are supposed to take 5-10 min. to complete, can take a whole day (or maybe even more). I have to restart TestComplete to make it move at ordinary speed again.990Views0likes0CommentsTest Complete somtimes uses 30 - 60 sec. to perform one action
I am having something of an annoying issue with TC7.52. Once in a while, TestComplete suddenly slows down and spends 30-60 sec. on each action, which normally would take a few hundred milliseconds to do. This is happening more and more often on my test machine, and the only fix is to close TC and restart it. Does anyone else experience this??15KViews0likes6CommentsRe: how to ignore breakpoints
Thanks for the suggestions :) But then i guess there is no way of doing this through code?? As I forget to remove breakpoints, I also forget to disable debugging. Basically I want the breakpoints I put in to work when I am not running my main script. But if I run the main script I would like to have it ignore any breakpoints it encounters without me having to remember to turn debugging on and off.1.2KViews0likes0Commentshow to ignore breakpoints
I have a tendency to use breakpoints for debugging, and then forgetting to remove it again afterwards. Then when I run a big script overnight, it pauses at one of said breakpoints and nothing is finished when I check the next morning. It is a bit annoying, and aside form trying to start remembering to remove them all, is there a way I can get TC to ignore breakpoints during a run?? Is there a piece of code I can use that will tell my mainscript to ignore any breakpoints it might encounter??22KViews0likes4CommentsSplitting up my exported logs
As my logs tend to grow quite big, and opening them outside TestComplete can take a long time, I would like to split up the logs when exporting them. Currently I have all my test cases in one Project, and I have code that eports the log at the end of the Main script run. But I would rather that two logs were exported, one for the platform tests (about half the test cases) and one for the Printers and Storage tests (the other half). Can this be done when they are both in the same project?? If I use log.SaveResultsAs after each half, would the second one, not just still contain the entire log of the first half?? ... or is there a way I can end the test log, export, and then start another within the same project??23KViews0likes5CommentsRe: v8.00 TC doesn't wait for WebObjects like 7.52 did??
Well after a busy period where I have not had time to look at this, I have decided to try and get my scripts to v8.00 I am still having issues with this of course. Now what we have decided is that we somehow need to wait for the frame to finish loading, but I am unsure what to look for. Now I can make code for each time I need to wait, and then make it wait for a specific object for that page, but I would rather make a general function that works no matter which page I open, and no matter which objects are available on that page. At the bottom of the ie8 browser there is the usual load progress bar, that shows when the page is ready. Is this information stored in any of the properties of the frame object, or is it in the process or somewhere else?? Does anyone have any "Best Practices" when testing in a browser?? ... some things to remember or good ideas?? There are a few IE properties that might work: 'ReadyState' and 'Busy'. Can these be used to determine if the frame is done loading?? Any help is greatly appreciated1.4KViews0likes0CommentsRe: Out of Memory error
I am very interesting in an answer on this issue, as I seem to run into massive memory leaks in TC when running my MainScript. I can run my test cases individually all day long and there are no problems, but on two different PCs we encounter 'Out of memory' errors in TC when running the MainScript (calling all test scripts), as TC eventually eats up 1,7Gb of RAM and our system runs out of memory. I run my MainScript at night when I leave the office, and the next morning everything hangs and I got hundreds of those error messages in TC. All I can do is kill TC process in Task Manager. We are currently using v7.52.1.8KViews0likes0CommentsFinding IP-Address of test machine
I have to make a test where I am simulating my own test machine as a network printer, and thus need to enter my ip-address instead of the actual Network Printer address. Now I can do this with a simple string containing my test machine's IP Address, but I want it to be dynamic, so it can run on any machine without the need to change anything. So how would I go about finding the correct address?? Now I searched in the Support section, but all I found was how to extract the address from the Windows TCP/IP setup of network connections. I would prefer one where I don't have to start up things in the Control Panel to find the information. ... or is the above the easiest way to get the address?? Thanks in advance12KViews0likes1CommentRe: v8.00 TC doesn't wait for WebObjects like 7.52 did??
Hey Jared I compared the Autowait values in both v8 and v7, and they are the same, so I still don't understand how v7 waits for my frame to load properly, while v8 doesn't. As for your second suggestion, I guess I would have to use either WaitAliasChild, WaitNamedChild or WaitChild depending on whether it is mapped or not?? ... that would mean that any function or procedure I have, has to test on WaitChild.exists to be usable in v8?? Damn ... that is going to require a lot of rewriting of all my basic code to work.1.4KViews0likes0CommentsRe: v8.00 TC doesn't wait for WebObjects like 7.52 did??
Here is an example of how I would get to a certain page on our website: // ---------------------------------------- // Test for SmartBear // ---------------------------------------- procedure StartIExplorer; begin gLastTab := ''; gLastMenu := ''; MainBrowserProcess := Sys.WaitProcess('iexplore',500); browserProcess := Sys.WaitProcess('iexplore',500,2); if browserProcess.exists then begin if browserProcess.WaitWindow('#32770','*',-1,500).exists then browserProcess.Window('#32770').Window('Button','Cancel').Click; MainBrowserProcess.Close; sleep(1500); TestedApps.iexplore.Run; MainBrowserProcess := Sys.WaitProcess('iexplore',500); browserProcess := Sys.WaitProcess('iexplore',500,2); end else TestedApps.iexplore.Run; end; function FindMFObject(ObjectName: OleVariant); begin iexplore := Aliases.iexplore; result := iexplore.pageNetcom.NetcomFrame.FindChild('Name','item(' + ObjectName + ')',60); end; procedure ActWebObj(ObjName: string); var WebObj: OleVariant; begin WebObj := FindMFObject(ObjName); WebObj.Keys('[Enter]'); end; procedure NavPage(TabName, MenuName: string); begin browserProcess := Sys.Process('iexplore'); MainFrame := Aliases.iexplore.pageNetcom.NetcomFrame; if not (gLastTab = TabName) then begin ActWebObj(TabName); gLastTab := TabName; end; MainPageFrame := MainFrame.page.Frame; if not (gLastMenu = MenuName) then begin if not (MenuName = '') then begin ActWebObj(MenuName); gLastMenu := MenuName; end; end; end; procedure OpenWebPageTest; begin StartIExplorer; NavPage(pgConfigDev,pgAppControl); end; // ---------------------------------------------------------- Basically what I do, is open my Browser to the web page we want, then I activate first the Menu item (in the banner). Then the left panel is loaded (this can take a second or two sometimes), and while that is loading TC7 would wait with the next part of the NavPage procedure until it was loaded. Then it would find and activate the Tab item from the Left Panel. Then the Main frame would load, and again it would wait with further execution (now past the NavPage procedure). v8.00 doesn't wait. It just continues the script, and as it can't find my objects, then the test fails, and I am not sure why it doesn't wait like v7 does.1.4KViews0likes0Comments