Contributions
Minimizing browser window and work on some other
Hi All, Is there a way in TestComplete to minimize the browser window while doing functional web testing and do some other work while it is running? I know there is a way while we are working with remote desktop. But, I would like to know If I can work on some other while running the testcases on my own machine. Thanks in advance865Views0likes1CommentReading an ExcelSheet
Hi all, In our TestComplete JavaScript framework, I am placing all the objects with their Xpaths related to the webpage in one Excel. And I am writing the TestCases in another excel which contains keywords and object names. There is a driver script written in TestComplete which reads TestCase Excel and the Object Excel. I found that the execution speed is very slow as it has to hit the object excel for every object it founds in TestExcel while running TestCases. Is there anyway, I could make a better way to read the entire excel in one go or Any other suggestions on this to make the execution speed faster? I appreciate your help. Thanks,1.7KViews0likes7CommentsRe: Issue in Outlook when I am trying to send an email
Thank you so much Marsha for the response. I mean it just worked onetime randomly in the middle. I am not sure about the reason. Well, i would try as you said. Could you tell me what i need to add in the below code which is in javascript. // MS Outlook constants var olMailItem = 0; olByValue = 1; olContactItem = 2; var MsOutlook, NS, ContactFldr; function Outlook_Test() { if (!InitializeOutlook()) Log.Warning("Unable to initialize MS Outlook or its folders.", "", pmHigher); else { SendReport("source email", "destination email", "company", "D:\\Data\\TestDocument.txt"); } } // Initializes MS Outlook function InitializeOutlook() { try { try { MsOutlook = Sys.OleObject("Outlook.Application"); } catch(exception) { MsOutlook = Sys.OleObject("Outlook.Application.16"); } // NS = MsOutlook.GetNamespace("MAPI"); // ContactFldr=NS.AddressLists; //ContactFldr = NS.Folders("Personal Folders").Folders("Contacts"); } catch(exception) { Log.Warning(exception+"Unable to initialize MS Outlook.", "", pmHigher); return false; } return true; } // Sends a report to the user function SendReport(Name1, Name2, Company, FileNameToAttach) { var ObjItem, MI, i, CRLF; CRLF = "\n"; // Creates a new message MI = MsOutlook.CreateItem(olMailItem); // Sets the message subject MI.Subject = "Test Results"; MI.Body= "Sample test"; // Specifies the destination address MI.To = "Destination address"; // Attaches the script code MI.Attachments.Add(FileNameToAttach, olByValue, MI.Body.length, "Script"); MI.Display(); // This line displays the new mail on screen. // To send the mail, use the Send method MI.Send(); }1.4KViews0likes2CommentsIssue in Outlook when I am trying to send an email
Hi All, I am getting this error when i am trying to send a text document through email using outlook from TestComplete. It worked for one time and I received email. But, every time I am getting this error that is attached as screenshot. It is not at all working. I am not sure why it worked for only once. Please, help me with this. Thanks, Manu1.5KViews0likes4CommentsRe: Issue in jenkins build when integrated TestComplete
Yes, I am able to run TestComplete tests with out using jenkins. I don't see those log files why they are appearing. New log files are generating with updated number in console output if I run again and again. Please, help me how to resolve this.2.8KViews0likes2CommentsRe: Customized .html reports How to view in Jenkins
Hi baxatob, I have installed html publisher plugin. But, when i run the build it is displaying the source code in jenkins instead of .html page. If I try to open directly from jenkins folder, for instanceC:\Program Files (x86)\Jenkins\jobs\Test\builds\21\htmlreports\HTML_Report it is displaying the report fine. Please, help me how to resolve this.10KViews0likes1CommentIssue in jenkins build when integrated TestComplete
Hi, I made set up to run TestComplete project through jenkins. When i run the build I am getting the following errors. I tried all the possible ways. I couldn't figure it out the issue. Please help me to resolve this issue. Building in workspace C:\Program Files (x86)\Jenkins\workspace\TestProject [TestComplete] The test execution started (JenkinsTestSuite/JenkinsTestProject/Unit1/Testing). [TestComplete] Found TestComplete/TestExecute installations: Type: TC, Version: 12.41.2879.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 12\x64\bin\TestComplete.exe" [TestComplete] Selected TestComplete/TestExecute installation: Type: TC, Version: 12.41.2879.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 12\x64\bin\TestComplete.exe" [TestComplete] Launching the test runner. $ '"C:\Program Files (x86)\SmartBear\TestComplete 12\bin\TestCompleteService12.exe"' //LogonAndExecute //lDomain: "" //lName: "C844186" //lPassword: ******** //lTimeout: "3180000" //lUseActiveSession: "true" //lCommandLine: '""C:\Program Files (x86)\SmartBear\TestComplete 12\x64\bin\TestComplete.exe" C:\Users\C844186\Documents\TestComplete12Projects\JenkinsTestSuite\JenkinsTestSuite.pjs /run /SilentMode /ForceConversion /ns /exit "/ExportLog:C:\Program Files (x86)\Jenkins\workspace\TestProject\7488949.tclogx" "/ExportLog:C:\Program Files (x86)\Jenkins\workspace\TestProject\7488949.htmlx" "/ErrorLog:C:\Program Files (x86)\Jenkins\workspace\TestProject\7488949.txt" "/ExportLog:C:\Program Files (x86)\Jenkins\workspace\TestProject\7488949.mht" /Timeout:3000 /project:JenkinsTestProject /unit:Unit1 /routine:Testing"' [TestComplete] Test runner exit code: -15. [TestComplete] [WARNING] Unable to find the log file "7488949.tclogx". [TestComplete] [WARNING] Unable to find the log file "7488949.htmlx". [TestComplete] [WARNING] Unable to find the log file "7488949.mht". [TestComplete] [WARNING] Errors occurred during the test execution. [TestComplete] Marking the build as UNSTABLE. [TestComplete] [WARNING] Unable to publish test results (xml data is empty). [TestComplete] The test execution finished (JenkinsTestSuite/JenkinsTestProject/Unit1/Testing). Build step 'TestComplete Test' changed build result to UNSTABLE Finished: UNSTABLE2.8KViews0likes8Comments