TestComplete http://smartbear.com/forums How to know if the application is an open application and how to build an open application. I have a Delphi XE4 application which I need to test using test complete. But how do I know if the application is an open application or not.<br /> <br /> If it is not an open application,how differently&nbsp;do my developer need to build one. http://smartbear.com/forums/f74/t99082/How-to-know-if-the-application-is-an-open-appli 1/29/2015 2:02:02 AM Satya Konakalla 2cd37992-2b2b-4d87-8b3a-e2218b364b73 RE: Name Mapping Help !!!! Can we import all the object which is stored in xml or in excel file to Name Mapping.<br /> <br /> is there any way for importing external object into name mapping. http://smartbear.com/forums/f74/t98555/RE-Name-Mapping-Help-!!!! 1/29/2015 1:49:18 AM Ravi Khapre 9509eb0d-6e2f-4799-a50c-4a2196578744 Runtime Error when opening and closing Excel Spreadsheet continuously Dear All,<br /> <br /> &nbsp; &nbsp; &nbsp;When I executing my project, I get&nbsp;<span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 12.727272033691406px; line-height: 18px;">intermittent runtime errors&nbsp;</span>when opening and closing Excel Spreadsheet continuously. Below code I am using.<br /> <br /> <div class="line number1 index0 alt2" style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 12.727272033691406px; line-height: 14.300000190734863px; color: rgb(0, 0, 0); margin: 0px !important; padding: 0px 1em !important; border: 0px !important; vertical-align: baseline !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-left-radius: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; width: auto !important; box-sizing: content-box !important; min-height: inherit !important; white-space: pre !important; background-image: none !important; background-attachment: initial !important; background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"> <div> set xlobj= Sys.OleObject(&quot;Excel.Application&quot;)<br /> Set workbookObj=xlobj.Workbooks.Open(Project.Path + &quot;\Data_Input\Data_Input.xlsx&quot;)<br /> Set wrksheetObjtest1=workbookObj.Worksheets(SheetName)</div> <div> I saw a&nbsp;thread with same issue created in long back ago( http://smartbear.com/forums/f74/t53094/runtime-error-opening-excel-spreadsheet/ ) .<br /> <br /> Thanks in advance!</div> </div> . http://smartbear.com/forums/f81/t99078/Runtime-Error-when-opening-and-closing-Excel-Sp 1/28/2015 10:48:30 PM ranga venkata 30f8e735-2b26-4115-9911-ca7873fc35d6 RE: how to select sub-menu items on right-click item on web <span style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;">I am working on java desktop application I have to click on the submenu which is nested inside using test complete and Java script. Menu looks like this</span> <p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19.5px;"> Tools-&gt;1stlevel-&gt;Second level.</p> <p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 15px; clear: both; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19.5px;"> I am able to click till 1st level if second level not there. But if second level is persent script is not able to find 1st level itself.</p> http://smartbear.com/forums/f75/t60373/RE-how-to-select-sub-menu-items-on-right-click 1/28/2015 3:59:34 PM zaheer akhter 5122e973-e202-4e9f-b731-7610cd232ffb Accessing Sub menus using test complete for java based desktop application <div> &nbsp;</div> <div> &nbsp;</div> <div> I am working on java desktop application I have to click on the submenu which is nested inside using test complete and Java script. Menu looks like this</div> <div> &nbsp;</div> <div> Tools-&gt;1stlevel-&gt;Second level.</div> <div> &nbsp;</div> <div> I am able to click till 1st level if second level not there. But if second level is persent script is not able to find 1st level itself.</div> http://smartbear.com/forums/f74/t99075/Accessing-Sub-menus-using-test-complete-for-jav 1/28/2015 3:37:36 PM zaheer akhter def32556-faa4-4dcf-9ff7-778f28f3ba66 How to address tree view in ATL window? Trying to find a way to access the tree view in a splitter ATL window.&nbsp; Object Spy shows the object as having no children? Any way to expose these child objects?<br /> <br /> Running TC 10.30.1303.07 http://smartbear.com/forums/f81/t99074/How-to-address-tree-view-in-ATL-window 1/28/2015 3:31:05 PM Sean Lynch 65efa977-be09-4341-9285-778e33256491 RE: Compare two folders It seems I&#39;ve wandered in an old thread, but just in case someone (else) finds themselves here and wants to be able to compare folders recusively, I&#39;ve cooked up the following. Note that I included an &quot;isValid&quot; function; you can refactor it back in, but it seemed inconvenient to test both &quot;null&quot; and &quot;empty variant&quot; over and over manually.<br /> <br /> <br /> I&#39;ve tested this against the following cases:&nbsp;<br /> - One argument is invalid<br /> - One argument is a file, not a folder<br /> - Folders are identical with no subfolders<br /> - Folders are identical with subfolders containing files<br /> - Folders are different; subfolder has extra file<br /> - Folders are different; folder content matches but file content is different<br /> <br /> Hopefully that covers our bases...<br /> <br /> <br /> <br /> <br /> <br /> <br /> [code]<br /> <div> function CompareFolders(left, right)</div> <div> {</div> <div> &nbsp; &nbsp; //ensure arguments are not null</div> <div> &nbsp; &nbsp; if(!isValid(left) || !isValid(right)) { return false; }&nbsp;</div> <div> &nbsp; &nbsp;&nbsp;</div> <div> &nbsp; &nbsp; //verify arguments are valid folder paths</div> <div> &nbsp; &nbsp; if(!aqFileSystem.CheckAttributes(left, 16)) &nbsp;{ return false; }&nbsp;</div> <div> &nbsp; &nbsp; if(!aqFileSystem.CheckAttributes(right, 16)) { return false; }&nbsp;</div> <div> &nbsp; &nbsp;&nbsp;</div> <div> &nbsp; &nbsp;&nbsp;</div> <div> &nbsp; &nbsp; //get subfolders and files</div> <div> &nbsp; &nbsp; var leftSub = aqFileSystem.GetFolderInfo(left).SubFolders;</div> <div> &nbsp; &nbsp; var leftFiles = aqFileSystem.GetFolderInfo(left).Files;</div> <div> &nbsp; &nbsp;&nbsp;</div> <div> &nbsp; &nbsp; var rightSub = aqFileSystem.GetFolderInfo(right).SubFolders;</div> <div> &nbsp; &nbsp; var rightFiles = aqFileSystem.GetFolderInfo(right).Files;</div> <div> &nbsp; &nbsp;&nbsp;</div> <div> &nbsp; &nbsp; //verify file and subfolder presence</div> <div> &nbsp; &nbsp; if(isValid(leftSub) != isValid(rightSub)) { return false; }&nbsp;</div> <div> &nbsp; &nbsp;&nbsp;</div> <div> &nbsp; &nbsp; if(isValid(leftSub))</div> <div> &nbsp; &nbsp; {</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; //verify subfolder count</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; if(leftSub.Count != rightSub.Count) { return false;}&nbsp;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; for(var i = 0; i &lt; leftSub.Count; i++)</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; {</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //verify subfolder name and content</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(leftSub.Item(i).Name != rightSub.Item(i).Name) { return false; }</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(!CompareFolders(leftSub.Item(i).Path, rightSub.Item(i).Path)) { return false; }&nbsp;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; }</div> <div> &nbsp; &nbsp; }</div> <div> &nbsp; &nbsp;&nbsp;</div> <div> &nbsp; &nbsp; if(isValid(leftFiles))</div> <div> &nbsp; &nbsp; {</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; //verify file count</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; if(leftFiles.Count != rightFiles.Count) { return false; }</div> <div> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; for(var i = 0; i &lt; leftFiles.Count; i++)</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; {</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var leftItem = leftFiles.Item(i);</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var rightItem = rightFiles.Item(i);</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //verify file name and content</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(leftItem.ShortName != rightItem.ShortName) { return false; }&nbsp;</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(!aqFile.Compare(leftItem.Path, rightItem.Path)) { return false; }</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; }</div> <div> &nbsp; &nbsp; }</div> <div> &nbsp; &nbsp;&nbsp;</div> <div> &nbsp; &nbsp; return true;</div> <div> }</div> <div> &nbsp;</div> <div> &nbsp;</div> <div> function isValid(obj)</div> <div> {</div> <div> &nbsp; &nbsp; if(obj == null) { return false; }&nbsp;</div> <div> &nbsp; &nbsp; if(obj == aqObject.EmptyVariant) { return false; }&nbsp;</div> <div> &nbsp; &nbsp;&nbsp;</div> <div> &nbsp; &nbsp; return true;</div> <div> }<br /> [/code]</div> http://smartbear.com/forums/f75/t61936/RE-Compare-two-folders 1/28/2015 12:04:44 PM Howie Catlin e86f0bb7-e394-4d29-9954-a2d0f01b6a05 RE: JScript vs JavaScript differences doc? @Simon, that is helpful too! I am still hoping we can find a page about differences JScript vs ECMA javascript. I am new to all the flavors of JS so that would help me alot. http://smartbear.com/forums/f74/t98969/RE-JScript-vs-JavaScript-differences-doc 1/28/2015 10:59:18 AM Anne Moroney ec2042c0-7c5b-4fb2-88f6-351b4c718d73 RE: Smartbear Doc pages: root and search? Actually the root &quot;TestComplete&quot; link in the left-side table of contents should go the start page. The fact that it pointed to the release notes was a bug. It&#39;s fixed now, thanks for the heads up! http://smartbear.com/forums/f74/t99041/RE-Smartbear-Doc-pages-root-and-search 1/28/2015 10:18:22 AM Helen Kosova e1efd093-adf0-4d25-aff4-1b9bfa27ab74 RE: Changing Properties in a Property Checkpoint <em>TC will pretend it has no idea what you are talking about</em>?<br /> <br /> lmao http://smartbear.com/forums/f74/t99038/RE-Changing-Properties-in-a-Property-Checkpoin 1/28/2015 9:07:00 AM martin facchini b089b81f-c3e6-468e-a26c-108987560571 RE: Smartbear Doc pages: root and search? ty @Helen! in case the web can be changed, I would suggest adding a link to the root level of the product docs to each subset page. Sometimes I was on a rootless doc page, and I couldn&#39;t easily figure out how to get back. From your info , I would need to go to the root of all docs and then click on TC, getting me back in two clicks and a mouse :). http://smartbear.com/forums/f74/t99041/RE-Smartbear-Doc-pages-root-and-search 1/28/2015 9:03:22 AM Anne Moroney a5fb44bb-9d4b-4aa1-84d5-86e4da014175 RE: Always run cleanup script at end? @Helen , ty, your solution worked great!<br /> Refs;<br /> 2.[] This ticket; ; ; ; ; X.SmartBear Forums - SmartBear Software ; ; http://smartbear.com/forums/f74/t98898/always-run-cleanup-script-at-end/?replyto=98898<br /> 3.[] ;Doc question, related&nbsp; ; ; ; ; X.Smartbear Doc pages: root and search? ; ; http://smartbear.com/forums/f74/t99041/smartbear-doc-pages-root-and-search/#99041<br /> 4.[] ; How onStop test works; it does fire for each test run; ; ; ; X.OnStopTest Event ; ; http://support.smartbear.com/viewarticle/55123/?_ga=1.12655479.1711506285.1417806782<br /> 5.[] ; ;In GUI, must ensure the root &#39;Events&#39; item exists ; ; ; X.Creating Event Handlers for TestComplete Events ; ; http://support.smartbear.com/viewarticle/56652/<br /> 6.[] ;Add an event ;1.In GUI, Drag the desired Event to be fired over to Handled items; 2.Double click it to tell what to use to handle it; 3.It puts one into the script ; ; ; X.Creating Event Handlers for TestComplete Events ; ; http://support.smartbear.com/viewarticle/56652/?_ga=1.12655479.1711506285.1417806782<br /> 7.[] ; Logging, etc all possible; ; ; ; X.Typical Event Handler Tasks ; ; http://support.smartbear.com/viewarticle/56940/ http://smartbear.com/forums/f74/t98898/RE-Always-run-cleanup-script-at-end 1/28/2015 8:46:31 AM Anne Moroney e61d3275-3c5f-4448-91c0-69c60583ca11 RE: Smartbear Doc pages: root and search? Hi Anne,<br /> <br /> 1. The entry point for all SmartBear product documentation is here:<br /> [url]http://support.smartbear.com/onlinehelp[/url]<br /> (or, select Support &gt; User Guides from the website&#39;s top menu)<br /> <br /> TestComplete docs start here:<br /> [url]http://support.smartbear.com/viewarticle/32760/?st=0[/url]<br /> <br /> <br /> 2. You can use the website search at the top right to search for the docs. Apply the &quot;Support&quot; and &quot;TestComplete&quot; filters to view the results from just the TestComplete docs.<br /> [img]http://smartbear.com/CMSModules/Forums/CMSPages/GetForumAttachment.aspx?fileguid=6479b6dd-500b-499a-bef3-6e6ce6b25285[/img]<br /> <br /> Or, you can use the Google or Bing search - append [b]site:support.smarbear.com[/b] to the search query:<br /> [url=https://www.google.com/search?q=finally+site:support.smartbear.com]finally site:support.smartbear.com[/url]<br /> <br /> Also, TestComplete&#39;s F1 help file is a copy of the online docs, so you can search there instead. http://smartbear.com/forums/f74/t99041/RE-Smartbear-Doc-pages-root-and-search 1/28/2015 5:27:11 AM Helen Kosova e997c77c-6c63-44ac-8a47-586b7114ee75 Question about speed startup <span id="result_box" lang="en"><span class="hps">when I</span> <span class="hps">start my</span> <span class="hps">application testing</span><span>,</span> <span class="hps">takes about 3</span> <span class="hps">minutes to start</span><span>?</span> <span class="hps">Anyone know</span> <span class="hps">how I can</span> <span class="hps">reduce this</span> <span class="hps">startup time</span><span>?</span></span> http://smartbear.com/forums/f81/t99065/Question-about-speed-startup 1/28/2015 4:30:08 AM Patrick Bremm 0eb5800b-2a22-43a4-8f91-ff619a16d1fb RE: &quot;Verification failed, the User is not logged in&quot; problem <span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px; line-height: 18px;">Thanks a lot! I&#39;ve been trying to figure out how to force Teamcity to run&nbsp; the agent&nbsp; as not a system user and found the answer&nbsp;in that link! It is finally running my tests! Thanks a lot!</span> http://smartbear.com/forums/f76/t97113/RE-quot;Verification-failed,-the-User-is-not 1/28/2015 4:14:16 AM chance pe c438511e-2267-494e-b041-b32821bc741b