ContributionsMost RecentMost LikesSolutionsRe: Takes a long time to get MemUsage info for 1 of 2 processesHi Irina, I have been given a higher priority task, so this issue is temporarily on "hold". :( For what it is worth, a coworker pointed out to me that the service "proc1" is owned by" SYSTEM" (running Windows 2003, SP2) but the service "proc2" has been configured to "Log On" as another user so it can be remotely started by DCOM. The belief is that this problem has been seen before and that it may be related to a permissions issue. I will probably pursue that idea once I'm back on this project. Thank you. SteveRe: Takes a long time to get MemUsage info for 1 of 2 processesHi Irina, Thanks for the reply! proc1 is an OPC Client Adapter, and proc2 is an OPC Server Adapter. Both are registered as Windows services. If this info is not helpful, I will contact SmartBear Software Support. I suspect that the problem is related to something in proc2, but can't imagine what the process could be doing that would make the memory usage information unavailable from Windows. Steve Re: Takes a long time to get MemUsage info for 1 of 2 processesI should have noted that I am running the script under TestExecute 8.0 Takes a long time to get MemUsage info for 1 of 2 processesI have a system that is running a number of processes, and would like to record the memory usage of two processes over a brief period of time. I have used the following code to write the information to a file: for (i = 0; i < 10; i++) { text = aqString.Format("% 3i:\t%i\t%i\t\r\n", i, Sys.Process(proc1).MemUsage, Sys.Process(proc2).MemUsage); //text = aqString.Format("% 3i:\t%i\t\r\n", i, Sys.Process(proc1).MemUsage); //text = aqString.Format("% 3i:\t%i\t\r\n", i, Sys.Process(proc2).MemUsage); aqFile.WriteToTextFile(sPath, text, aqFile.ctUTF8); Delay(1000); } Whenever I use "Sys.Process(proc2).MemUsage", there is a delay of about 10 seconds and a message "Waiting for proc2" appears in the upper right corner of the screen (I guess that is the status of the executing script); whenever I use "Sys.Process(proc1).MemUsage" the action seems to be immediate. I can see in Task Manager that both processes are running. When I use either line that just writes memory usage for a single process, I only see the ~10 second delay for proc2. I'm guessing that the code above is okay since it works for one process, so I'm wondering what could be different about proc2 that incurs this long delay? Both process are using in the range of 2% to 7% of the processor, which is running at between 15% and 22%. Any ideas or suggestions would be greatly appreciated! (The numbers that I see for memory usage for both processes are consistent with what Task Manager is showing, so I do seem to be getting the correct data...) Re: Unable to find the objectThank you, that does exactly what I want! From your example, I saw that I was misusing WaitFrame. Being new to TestComplete, I did not understand how to use WaitFrame and was unable to find any examples that I could relate to. I did something like the following to get the error message (it may have been "object expected"): //BAD CODE if WaitFrame(Sys.Process("iexplore", 2).Page("https://192.168.1.100/abc/defg/login.do?action=secure")."navigation", 1000).Exists) //BAD CODE Many thanks. :) Unable to find the objectDepending on whether or not a user has previously logged in to a remote website's application, either of 2 web objects will be present. I want to determine whether or not the user was already logged in so I can do different testing. Below is the code that I tried to use, looking for one of the 2 possible web objects: if (Sys.Process("iexplore", 2).Page("https://192.168.1.100/abc/defg/login.do?action=secure").Frame("navigation").Exists) { Log.Event("new login"); } else { Log.Event("existing login"); } If the "navigation" frame does not exist, I receive an error [Unable to find the object Frame("navigation")]. How should I be testing for something that may or may not exist? I've tried WaitFrame, but that also generates an error message. It seems like this is something simple that testers would want to do. What am I missing here? Any help greatly appreciated - thank you!