ContributionsMost RecentMost LikesSolutionsRe: IExplorer Memory consumption with TestComplete 10.60 I would reccomend you automate closing and reopening the browser so that it can run automated. We created a script that would basically do that for us and then we coded all of our other scripts to check where they were and if they weren't at the correct screen, they would navigate to where they needed to be to run the script. It is more overhead but it was the only way we could get the scripts to run consistently. Re: IExplorer Memory consumption with TestComplete 10.60 No we never did get a resolution. We worked around it by doing a certain number of steps, killing all instances of IExplore, then starting the browser again. --Todd Re: Network Suite Job with multiple tasks not running consistently Hi Tanya, Yes I have gone through that document and I am using the same version on all machines. I just find it interesting that the run will complete without the error message and then when it runs again (with no changes to the computer) it will fail with that error message midway through the run. I'll have to do a bit more investigating to see why this might be occuring. Network Suite Job with multiple tasks not running consistently Hello, I have a project that runs a series of tests using distributed testing with multiple computers. There is a job set up that has two tasks. Each task runs the same suite of tests but runs the suite on a different computer. If I run this job from within TestComplete it runs successfully (ie it runs the suite on both computers simultaneously) We also schedule this job to run using a batch job and the following command: TestExecute.exe Script.pjs /p:Project /tNetworkSuite|Jobs|JobName|JobName /run /SilentMode /exit When running the job using the command prompt and TestExecute, the results are flaky. Some runs finish without problems. Other runs give error messages in the log: "The operation cannot be performed because the user session is disconnected." If I run the batch job to kick off the run again it normally runs successfully. I thought at first that it might be a timeout issue but looking at the runs that failed, it doesn't seem to be happening at the same time in the run (ie after 15 minutes.) One run will be okay under 25 minutes in, another will give the message closer to 45. Nothing is consistent with when the message is showing up. What is also weird is that it will continue to perform activities on the remote PC. In the included picture, after the error message, it still parses an install log on the workstation. Does anyone have any suggestions on how to fix this consistency issue? Name mapping outline box is off Has anyone ran into the name mapping box being offset from the actual object when testing web apps? I am only getting this with web applications; desktop applications map as expected. When using the object spy or name mapper, it highlights the object below and to the right of where it should be. It identifies the object correctly, but can't find objects are the far right as they are now technically off the screen. Everything was working yesterday so I'm not sure what system change could be causing this. I have tried restarting and repairing my installation of 10.6, but the same issue. Other computers are working correctly so it has to be a setting on my PC. Re: select/run test by test item using command line There is a way you can do this currently. See this article here: http://support.smartbear.com/viewarticle/54654/ Which can then be put into a console application as well to run as a scheduled task: class Program { static void Main(string[] args) { if (args.Length == 0) { Console.WriteLine("Expecting arguments"); Console.Write("Press any key to continue..."); Console.ReadLine(); } else { string testItemGroup = ""; string project = ""; for (int i = 0; i < args.Length; i++) { if (Regex.IsMatch(args[i], @"\/testitemgroup:", RegexOptions.IgnoreCase)) { testItemGroup = Regex.Replace(args[i], @"\/testitemgroup:", "", RegexOptions.IgnoreCase); } if (Regex.IsMatch(args[i], @"\/p:", RegexOptions.IgnoreCase)) { project = Regex.Replace(args[i], @"\/p:", "", RegexOptions.IgnoreCase); } if (Regex.IsMatch(args[i], @"\/project:", RegexOptions.IgnoreCase)) { project = Regex.Replace(args[i], @"\/project:", "", RegexOptions.IgnoreCase); } } TestFunc(args[0], project, testItemGroup); } } private static void TestFunc(string projectSuite, string project, string testItemGroup) { const string TCProgID = "TestComplete.TestCompleteApplication.10"; object TestCompleteObject = null; // Obtains access to TestComplete try { TestCompleteObject = Marshal.GetActiveObject(TCProgID); } catch { try { TestCompleteObject = Activator.CreateInstance(Type.GetTypeFromProgID(TCProgID)); } catch { } } if (TestCompleteObject == null) return; // Obtains ITestCompleteCOMManager TestComplete.ITestCompleteCOMManager TestCompleteManager = (TestComplete.ITestCompleteCOMManager)TestCompleteObject; // Obtains Integration object TestComplete.ItcIntegration IntegrationObject = TestCompleteManager.Integration; // We have a reference to the integration object. // Now we can use its methods and properties to automate TestComplete. // Loads the project suite IntegrationObject.OpenProjectSuite(projectSuite); // Checks whether the project suite was opened // If the project suite cannot be opened, closes TestComplete if (!IntegrationObject.IsProjectSuiteOpened()) { Console.WriteLine("Could not open the project suite."); // Closes TestComplete TestCompleteManager.Quit(); // Releases COM objects Marshal.ReleaseComObject(IntegrationObject); Marshal.ReleaseComObject(TestCompleteManager); Marshal.ReleaseComObject(TestCompleteObject); return; } try { // Runs the test IntegrationObject.RunProjectTestItem(project, testItemGroup); // Waits until testing is over while (IntegrationObject.IsRunning()) Thread.Sleep(5000); // Check the results switch (IntegrationObject.GetLastResultDescription().Status) { case TestComplete.TC_LOG_STATUS.lsOk: Console.WriteLine("The test run finished successfully."); break; case TestComplete.TC_LOG_STATUS.lsWarning: Console.WriteLine("Warning messages were posted to the test log."); break; case TestComplete.TC_LOG_STATUS.lsError: Console.WriteLine("Error messages were posted to the test log."); break; } } catch (System.Runtime.InteropServices.COMException ex) { Console.WriteLine("An exception occurred: " + ex.Message); } finally { // Closes TestComplete TestCompleteManager.Quit(); // Releases COM objects Marshal.ReleaseComObject(IntegrationObject); Marshal.ReleaseComObject(TestCompleteManager); Marshal.ReleaseComObject(TestCompleteObject); } } } Re: Is it possible to prevent a job from displaying the log in a browser on a distributed client? Yes, on the computer you don't want the log to open, open TestExecute or TestComplete and then go to options. Under Engines --> Log, there is an option to Activate after test run. Uncheck this option and the log won't open. Re: IExplorer Memory consumption with TestComplete 10.60 Yes it consumes an incredible amount of memory and doesn't seem to release it. When I run the same test suite manually, I do not run into the same issues. I have opened a ticket with TC support but have not had any success up to this point. Re: I need to install Test Complete - version 9.31 build 3889, can you please send me the link to it If you log into your account (my.smartbear.com) there will be a link that says 'Show other versions'. If you click that link you will be able to download the version you require. --Todd Copy project to slave not workingHas anyone run into the issue when manually copying a project to a slave of it actually not copying? In the directory I get a square folder, a bunch of chinese characters folder and t suite] folder. Please see the attached picture. If I change the base path and ensure the correct permissions, it will create the root directory but not copy anything. TestComplete will however say that the files were successfully copied to one host.