TestComplete http://smartbear.com/forums Automated testing of Shortcuts <p> Hello,<br /> <br /> I have managed to get test complete to open my application and login successfully. I would now like to explore the best way of testing the shortcuts that my application provides.<br /> <br /> I&#39;ve been using a Data Driven loop which uses the shortcuts I would like to test supplied by a CSV file. I use a &quot;Keys&quot; operation which reads in my variable.<br /> <br /> Here is a sample from my CSV file:<br /> <br /> shortcut,dialog<br /> [Alt]unsu, New Data Process Wizard<br /> <br /> Most shortcuts will spawn a dialog, I have provided the title of the dialog in the dialog column.<br /> <br /> Once the dialog has been launched I would like to log that it has worked and then return the application to before the dialog is show.<br /> <br /> What is the best way to test my applications shortcuts.<br /> &nbsp;</p> <p> Thanks,<br /> <br /> Alex</p> http://smartbear.com/forums/f74/t94981/Automated-testing-of-Shortcuts 10/2/2014 9:10:09 AM Alex Jones 51f6ea29-61c1-4897-a911-c7936c55da06 How to record with full native object names generated I have some scripts whose objects were recorded under 8.7, which were converted to 9.3. I would like to have my new script objects generated with full objects names instead of Aliases... In researching this, it appears that the Tools|Options Use extended find when possible is the key; all you have to do is uncheck it.&nbsp; However, the documentation says that this will work for NEW projects and does not effect existing projects.&nbsp; The item is gray - not changeable - and is checked.&nbsp;<br /> <br /> So How does one go about changing this for recording new added tests and updating existing ones where full object names are generated?<br /> <br /> Thanks. http://smartbear.com/forums/f81/t94980/How-to-record-with-full-native-object-names-gen 10/2/2014 8:14:48 AM Harlan Mosley 25c1f30b-973c-4d9b-bbad-0b6125833920 RE: is TC 10.40 compatible with 10.30? Hi All, <div> &nbsp;</div> <div> @PAUL, pay attention to the [i]Discontinued Support[/i] section of [url=http://smartbear.com/viewarticle/64368/]this article[/url] - TestComplete 10.40 stops supporting several technologies.</div> <div> &nbsp;</div> <div> @SØREN, it looks like you faced a known issue. I posted the details [url=http://smartbear.com/forums/f76/t94838/browser-is-not-found-with-testexecute-10-4/#94919]here[/url].</div> http://smartbear.com/forums/f81/t94804/RE-is-TC-10-40-compatible-with-10-30 10/2/2014 7:19:26 AM Tanya Gorbunova e00a3224-90d4-4524-87b1-a90a01988a65 RE: Bugs and new ideas <p> Great thanks Helen! It difinately closes 2.&nbsp;</p> <p> Wow it&#39;s even the button to import settings from Visual Studio in one click. Very nice)</p> http://smartbear.com/forums/f81/t94944/RE-Bugs-and-new-ideas 10/2/2014 6:40:09 AM Aleksander Kirichek 9021deeb-d02e-4cfb-bd03-75a04df23774 RE: Version of executable or library Use aqFileSystem.GetFileInfo(path).[url=http://support.smartbear.com/viewarticle/55467/]VersionInfo[/url]:<br /> [code]<br /> function Test()<br /> {<br /> &nbsp; var strFileName = &quot;C:\\Windows\\notepad.exe&quot;;<br /> &nbsp; var oVerInfo = aqFileSystem.GetFileInfo(strFileName).VersionInfo;<br /> &nbsp; var strVersion =<br /> &nbsp; &nbsp; &nbsp; oVerInfo.FileMajorVersion + &quot;.&quot; +<br /> &nbsp; &nbsp; &nbsp; oVerInfo.FileMinorVersion + &quot;.&quot; +<br /> &nbsp; &nbsp; &nbsp; oVerInfo.FileBuildVersion + &quot;.&quot; +<br /> &nbsp; &nbsp; &nbsp; oVerInfo.FileRevisionVersion;<br /> &nbsp; Log.Message(strVersion);<br /> }<br /> [/code]<br /> http://smartbear.com/forums/f74/t94975/RE-Version-of-executable-or-library 10/2/2014 5:37:03 AM Helen Kosova 67004cea-0c0f-4db0-a539-b35d1450e15d Version of executable or library I would like to get version of EXE or DLL in JScript.<br /> What is the solution? http://smartbear.com/forums/f74/t94975/Version-of-executable-or-library 10/2/2014 5:13:05 AM Chris Wafer f8b5dfd2-cc20-4f66-9906-b4a844ec2262 RE: Bugs and new ideas [quote=Aleksander Kirichek]2. Syntax highlighting, i think, can be improved.[/quote]How exactly improved? What highlighting features are you missing now?<br /> <br /> We&#39;ve got alternative [url=http://smartbear.com/forums/f81/t77623/the-best-testcomplete-s-ui-scheme/]syntax highlighting schemes[/url] &ndash; maybe you&#39;ll like one of these better. http://smartbear.com/forums/f81/t94944/RE-Bugs-and-new-ideas 10/2/2014 4:03:56 AM Helen Kosova 783451e0-5945-4cbf-b891-bf4b93225e22 RE: Know if current user has &quot;admin rights&quot; Hi Chris,<br /> <br /> The solution depends on what you mean by &quot;admin rights&quot; &ndash; being a member of the Administrators group, or running something elevated under UAC. These are different things.<br /> <br /> To check if your test script is running elevated, you can use the following HasAdminRights function (based on [url=http://csi-windows.com/toolkit/csi-isadmin]this script[/url]). It returns True for XP admins, but for Vista+ admins it returns True only if TestComplete is also running as Administrator:[code]<br /> function Main()<br /> {<br /> &nbsp; Log.Message(&quot;Has admin rights? &quot; + HasAdminRights());<br /> }<br /> <br /> function HasAdminRights()<br /> {<br /> &nbsp; var hasAdminRights;<br /> &nbsp; try {<br /> &nbsp; &nbsp; Sys.OleObject(&quot;WScript.Shell&quot;).RegRead(&quot;HKEY_USERS\\S-1-5-19\\Environment\\TEMP&quot;);<br /> &nbsp; &nbsp; hasAdminRights = true;<br /> &nbsp; }<br /> &nbsp; catch (e) {<br /> &nbsp; &nbsp; hasAdminRights = false;<br /> &nbsp; }<br /> &nbsp; return hasAdminRights;<br /> }[/code]<br /> To check if the user is a local admin (a member of the built-in Administrators group), use this. But it doesn&#39;t tell you if your test script is running elevated.[code]<br /> function Main()<br /> {<br /> &nbsp; if (IsLocalAdministrator())<br /> &nbsp; &nbsp; Log.Message(Sys.UserName + &quot; is a local administrator.&quot;)<br /> &nbsp; else<br /> &nbsp; &nbsp; Log.Message(Sys.UserName + &quot; is not a local administrator.&quot;)<br /> }<br /> <br /> function IsLocalAdministrator()<br /> {<br /> &nbsp; var oGroup = GetObject(&quot;WinNT://&quot; + Sys.HostName + &quot;/Administrators&quot;);<br /> <br /> &nbsp; var enumAdmins = new Enumerator(oGroup.Members());<br /> &nbsp; for ( ; !enumAdmins.atEnd(); enumAdmins.moveNext())<br /> &nbsp; {<br /> &nbsp; &nbsp; if (enumAdmins.item().Name.toLowerCase() == Sys.UserName.toLowerCase())<br /> &nbsp; &nbsp; {<br /> &nbsp; &nbsp; &nbsp; return true;<br /> &nbsp; &nbsp; }<br /> &nbsp; }<br /> &nbsp; return false;<br /> }<br /> [/code] http://smartbear.com/forums/f74/t94960/RE-Know-if-current-user-has-quot;admin-rights 10/2/2014 3:48:03 AM Helen Kosova af9b7405-9b53-44d7-bfc4-dbe9436c1425 RE: TestComplete Certification Hm-m-m... Wondering why answer d) is not considered to be correct along with b) for question #3? http://smartbear.com/forums/f74/t94554/RE-TestComplete-Certification 10/2/2014 3:46:12 AM Alexei Karas 645c55c3-095a-495e-a182-fb9b08f83ba6 RE: Page.Find method returns the last object. Hi Jason, <div> &nbsp;</div> <div> I would suggest that you add one more identification property to the method so that it returns one desired object.</div> <div> &nbsp;</div> http://smartbear.com/forums/f74/t94844/RE-Page-Find-method-returns-the-last-object 10/2/2014 3:41:54 AM Tanya Gorbunova 1751c112-8fb6-48fa-bca5-dc0699ba8c73 RE: Test Complete doesn't support webservice that uses authentication with security token? Hi Bharat,<br /> <br /> Refer to the mentioned article (<a href="http://support.smartbear.com/viewarticle/55655/">http://support.smartbear.com/viewarticle/55655/</a>), it describes what is supported by the latest TestComplete version and try if it works for your web service. http://smartbear.com/forums/f74/t78213/RE-Test-Complete-doesn-t-support-webservice-th 10/2/2014 3:32:26 AM Alexei Karas aec6c835-bd6a-4234-abaf-2ccd5aa18297 RE: TestComplete 10.3 is live! Hi Ravi,<br /> <br /> &gt; Is there any concept for recovery scenario in Test Complete 10.x version ???<br /> I am pretty sure it is, but the details depend on what, where, why&nbsp;and how you are going to recover. http://smartbear.com/forums/f74/t90800/RE-TestComplete-10-3-is-live! 10/2/2014 3:28:22 AM Alexei Karas 00b5e479-8d60-4943-a2b2-e944bcef8bc2 RE: Android application not being recognized as an instrumented application Hi Andrew, <div> &nbsp;</div> <div> Make sure that you are using TestComplete 10.40 - the latest product version.</div> <div> If the issue persists on this version, answer the following questions:</div> <div> 1. What IDE was used to create the app?</div> <div> 2. What Android version is installed on the device?</div> <div> &nbsp;</div> http://smartbear.com/forums/f80/t94958/RE-Android-application-not-being-recognized-as 10/2/2014 3:20:24 AM Tanya Gorbunova 329278ff-9479-4a12-8fc7-fdc07de0d32f RE: TestComplete Certification Hi Community, <div> &nbsp;</div> <div> It&#39;s better if you contact your sales rep and ask him/her about the certification program.</div> <div> &nbsp;</div> <div> At the moment, I can share with you a PDF file that can give you some info about:</div> <div> &nbsp;-- Examples of questions</div> <div> &nbsp;-- Technical tips to know</div> <div> &nbsp;-- What to expect with the TC Certification</div> <div> &nbsp;</div> <div> See the attached file.</div> http://smartbear.com/forums/f74/t94554/RE-TestComplete-Certification 10/2/2014 3:19:00 AM Tanya Gorbunova a7efd16f-b1a2-4b87-816b-b6474708287f RE: OnStartTest and OnStopTest occasionally not executing Hi Matt, <div> &nbsp;</div> <div> The OnStartTest event should occur when you start a script routine or a keyword test from TestComplete GUI and when each test item starts executing.</div> <div> Thus, if you run only one test item, the event will be fired only once. Please check this.</div> <div> &nbsp;</div> http://smartbear.com/forums/f75/t94536/RE-OnStartTest-and-OnStopTest-occasionally-not 10/2/2014 3:18:37 AM Tanya Gorbunova 0bd83f2c-ad97-4831-adff-1f27b67fb277