TestComplete http://smartbear.com/forums RE: how to make the connection path for a DBTable generic Still looking for suggestions... http://smartbear.com/forums/f81/t92324/RE-how-to-make-the-connection-path-for-a-DBTab 7/29/2014 11:29:45 AM Marsha Robertson fa05097a-9cc8-4b37-af80-68dd2c387109 RE: How to search for quoted strings <p> I want to Execute a regular expression search against all object names on a web page and post those collection of Matches to log. Earlier, I was adviced to look for &quot;contentDocument&quot; and &quot;innerText&quot; properties of my application but because those properties doesnt show any values in my Object browser I cant use them. I used find method but it finds just one object in object browser that contains regular expression and posts it to log whereas I want all the objects on a webpage to be idenfied regardless of which property holds that string. Any workaround on this or even if different method to solve the issue is most welcome. Thanks for any comment.</p> http://smartbear.com/forums/f75/t91122/RE-How-to-search-for-quoted-strings 7/29/2014 10:32:38 AM P kumar 5efbf234-d416-4cd8-a958-46227bcc7f32 RE: Provider cannot be found. It may not be properly installed Hi Oleg,<br /> <br /> I also seem to have the same problem on 64-bit machine some time ago. The reason was that required 32-bit&nbsp;(because of TC&#39;s bitness) Microsoft.Jet.OLEDB provider was not installed and it looks like that latest 64-bit OS installers does not contain 32-bit ADO binaries. I did a very quick googling and found that the mentioned &quot;microsoft office access database engine <strong>2007</strong>&quot; installer should contain the needed provider. I installed it and so far everything works as expected.<br /> I think that I could use old good 32-bit ADO installer and it had to do the things as well, but it was just faster for me to install the mentioned db engine. http://smartbear.com/forums/f81/t92405/RE-Provider-cannot-be-found-It-may-not-be-pro 7/29/2014 10:11:19 AM Alexei Karas e784e06a-9c50-48ea-aacb-1edd93ceaff0 RE: prevent stopping on handled vbs errors Manfred,<br /> <br /> &gt; DlgCtrl.SystemMenu.Items(ItemId): undefined.<br /> Just a wild guess - was DlgCtrl initialized with some value? Also, does SystemMenu object have Items[] property? And I hope that ItemId variable also contains correct value.<br /> <br /> &gt; Your assumption about the SYS object is not true, because we not are working on a control but on a menu.<br /> Not sure I completely understood this...<br /> What I meant was that all objects that are accessible via TC&#39;s test engine are instantiated from the Sys root (or Device one in case of the mobile application). For those objects TC adds its support properties, wrappers, etc. TC also can work with regular COM objects (e.g. like Shell.Application one), but in this case it can use only methods/properties provided by the given COM object.<br /> <br /> My suggestion will be to set a breakpoint on the Set Item = ... line and investigate DlgCtrl and DlgCtrl.SystemMenu objects using the Evaluate window. Both of them must be valid objects with the .Exists property set to True (I assume that the full name you provided for the DlgObject was actually for DlgCtrl object). http://smartbear.com/forums/f81/t92370/RE-prevent-stopping-on-handled-vbs-errors 7/29/2014 9:40:52 AM Alexei Karas 992dadba-b6c8-4d9f-ab98-c9078af2d884 RE: Provider cannot be found. It may not be properly installed Hi Alexei,<br /> But the problem is that I have Office 2013, and I must install &quot;microsoft office access database engine <strong>2007</strong>&quot;. There is no way for me to know that I need to install older version.<br /> <br /> Anyway, thanks for fast response. http://smartbear.com/forums/f81/t92405/RE-Provider-cannot-be-found-It-may-not-be-pro 7/29/2014 9:30:18 AM Oleg Sigalov 9f4e1666-9d4f-45ef-bf8e-05c0e6740f5c RE: prevent stopping on handled vbs errors Hi Alexei,<br /> <br /> I&#39;m happy to be able to give You some info back for Your effort ;-)<br /> <br /> Yes, I&#39;m sure, that the code line in question Triggers the error. Navigating from the log gets me there, and I inserted an Output which Shows me the err objects state behind the line.<br /> If I step to the line, I get in the evaluate window for DlgCtrl.SystemMenu.Items(ItemId): undefined. vbs expects an object or Nothing and thus throws the error, I think.<br /> <br /> The DlgObject&#39;s full Name is &lt;Sys.Process(&quot;pva&quot;).Window(&quot;SVMDIFRAME&quot;, &quot;Open LS6000 PVA&quot;, 1).Window(&quot;MDIClient&quot;, &quot;&quot;, 1).Window(&quot;SVMDICHILD&quot;, &quot;&lt;4&gt; In Bearbeitung - Fasler\BDE_TEST_2.LDG&quot;, 1)&gt;<br /> <br /> My code was:<br /> <p> <font face="Courier New" size="2"><font face="Courier New" size="2"><b>On</b> Error <b>Resume</b> <b>Next</b></font></font><br /> <font face="Courier New" size="2"><font face="Courier New" size="2"><b>Set</b> Item = DlgCtrl.SystemMenu.Items(ItemId)</font></font><br /> <font face="Courier New" size="2"><font face="Courier New" size="2"><b>Log.Message Err.Number &amp; &quot; &quot; &amp; Err.Description<br /> On</b> Error <b>GoTo</b> 0</font></font></p> (run with Stop On Error = false). The <font size="2">PVA_0.Basis.ObjectIsSet(</font>) function just delivers True for an object set and false for Nothing or non-objects.<br /> <br /> Your assumption about the SYS object is not true, because we not are working on a control but on a menu. The exists property doesn&#39;t apply.<br /> <br /> The log is (Stop on error False):<br /> Error: The control item &#39;asdf&#39; not found.&nbsp;16:12:13&nbsp;Normal&nbsp;&nbsp;[from line Set Item..]<br /> Message: 424 Objekt erforderlich&nbsp;16:12:13&nbsp;Normal&nbsp;&nbsp;&nbsp; [from Log.Message Err.Number]<br /> Error: Dialog &lt;4&gt; In Bearbeitung - Fasler\BDE_TEST_2.LDG Systemmenue, &#39;asdf&#39; nicht gefunden&nbsp;16:12:14&nbsp;Normal&nbsp;&nbsp;[from Log.Error ...]<br /> <br /> Kind Regards,<br /> <br /> Manfred http://smartbear.com/forums/f81/t92370/RE-prevent-stopping-on-handled-vbs-errors 7/29/2014 9:16:37 AM Manfred F 10697b79-210f-4d8f-8287-9102f732e412 RE: No external TDS file for 64 bit in Delphi XE2? Hi Allen,<br /> <br /> Thank you for the update. Good to know that StripTDS works for 64-bit binaries as well. http://smartbear.com/forums/f81/t91852/RE-No-external-TDS-file-for-64-bit-in-Delphi-X 7/29/2014 9:15:52 AM Alexei Karas 62326bbd-9912-4999-8ae8-e29808bf54a0 RE: Provider cannot be found. It may not be properly installed Hi Oleg,<br /> <br /> To access different data sources different providers may be required, so it is not aesy to name all of them in the help system. Especially, considering that this is not TestComplete&#39;s functionality, but operating system&#39;s one.<br /> <br /> Please also note, that usually installation program installs provider that corresponds to the bitness of the operating system. But because TestComplete is 32-bit application, you must install 32-bit version of the corresponding provider. http://smartbear.com/forums/f81/t92405/RE-Provider-cannot-be-found-It-may-not-be-pro 7/29/2014 9:05:15 AM Alexei Karas b0b2565f-3ab6-4832-845a-79f0fc7e608b RE: prevent stopping on handled vbs errors Hi Manfred,<br /> <br /> &gt;&gt; Well, Yes, there is a runtime error with err.Number 424 &quot;Object required&quot;. [...]<br /> To say the truth, I am really surprised. There must not be such error here. Are you sure that the error is triggered exactly by the mentioned line of code? Have you double-checked this using TC&#39;s debugger? (TestComplete will navigate to the code line that posted the error to the test log if you double-click the error line in the test log and the Call Stack tab in the test log contains the complete call stack (also with the clickable lines)&nbsp;that led to the error.)<br /> <br /> The reason for my questions is that, assuming that DlgCtrl is some tested&nbsp;object descendant from the Sys one (can you post here the full name of the DlgCtrl object?), it must not trigger runtime error.<br /> On the other hand, (and I am pretty sure that you already know this) the Err object is reset after execution of every script code line. Because of this (and this is illustrated in my code example), the value of the Err.Number *must* be saved to the variable and analyzed *immediately* after execution of the line of code that can trigger an exception. I don&#39;t see this in the code you provided. If value 424 is returned by the <font size="2">PVA_0.Basis.ObjectIsSet(</font>) function, this may mean that the actual problem occurs within this function, but is not triggered by the Set Item = ... line.<br /> <br /> My current understanding of what happens in your code is like this:<br /> a) On Error Resume Next line turns on VBS error handling<br /> b) Set Item = DlgCtrl.SystemMenu.Items(ItemNameOrIx) code line is executed but some object within the hierarchy is not found, thus the returned Item object contains only .Exists property which is set to False. At the same time, because you are using &#39;absolute&#39; object identification and not using TC&#39;s OnLogError handler the error about not found object is posted to the test log by TC&#39;s engine;<br /> c) On Error GoTo 0 line turns off VBS error handling;<br /> d) The call to&nbsp;PVA_0.Basis.ObjectIsSet(Item) triggers exception in the ObjectIsSet() function (because it obtains invalid object) and this exception is posted to the test log and stops the overall test run (because of the disabled VBS error handling).<br /> <br /> Can you post here the error messages from TC&#39;s test log? http://smartbear.com/forums/f81/t92370/RE-prevent-stopping-on-handled-vbs-errors 7/29/2014 8:26:52 AM Alexei Karas 922a36f0-73a4-4cba-a056-53288c8c29e1 RE: prevent stopping on handled vbs errors Hi Alexei,<br /> <br /> thank You, once again, for Your Explanation.<br /> In fact, Your solution b) is Close to what I have implemented now.<br /> So far, OK.<br /> <br /> I&#39;ve got one last remark:<br /> You said &lt;In the case of the<br /> Set Item = DlgCtrl.SystemMenu.Items(ItemNameOrIx)<br /> code line, this is perfectly valid line of code that does not trigger any exception. And thus the On Error handler will not be called by the VBScript runtime engine just because no exception was triggered.<br /> So, there is no runtime error in this case.&gt;<br /> <br /> Well, Yes, there is a runtime error with err.Number 424 &quot;Object required&quot;. This vb error would be handled perfectly by vbs, if TC would allow to do so (Stop on Error = FALSE), otherwise the run stops.<br /> <br /> I&#39;ve posted a Feature request for this issue.<br /> <br /> Thank You again<br /> <br /> Kind Regards<br /> <br /> Manfred http://smartbear.com/forums/f81/t92370/RE-prevent-stopping-on-handled-vbs-errors 7/29/2014 8:13:23 AM Manfred F 46afff93-6cbe-49e1-9bce-c79da47bb3e9 RE: Problems with TestComplete 10.3 and Android 4.4.2 Hi Tanya,<br /> <br /> I did that but it&#39;s not the issue.<br /> The problem appears when TestComplete open a window or an activity with a focus on a text box. At this moment, the keyboard appears and it&#39;s impossible to click on it or on the return button.<br /> <br /> We find this : [url=http://support.smartbear.com/viewarticle/62875/?utm_source=site-search&amp;utm_medium=search-results&amp;utm_campaign=site-search-c&amp;utm_term=galaxy+note+3]Support Galaxy note 3[/url]<br /> And we disabled the parameters but it don&#39;t work...<br /> <br /> <br /> http://smartbear.com/forums/f80/t92366/RE-Problems-with-TestComplete-10-3-and-Android 7/29/2014 7:26:46 AM Roxane Alibert 6bfa701e-e3a5-4a94-a87a-d16f682d0c5f RE: Test that generate Test? Forgot the parameter at the moment, let say I just need to pass a string in parameter.<br /> <br /> What is blocking and I need to resolve is that:<br style="font-family: Arial; color: rgb(0, 0, 0); font-size: 13px; line-height: 18px;" /> <br style="font-family: Arial; color: rgb(0, 0, 0); font-size: 13px; line-height: 18px;" /> <em><span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px; line-height: 18px;">Script1 (which is in a test item) run multiple Test2, I want &quot;stop on error&quot; with Test2, but I don&#39;t want it to stop the execution of&nbsp;Script1</span><br style="font-family: Arial; color: rgb(0, 0, 0); font-size: 13px; line-height: 18px;" /> <br style="font-family: Arial; color: rgb(0, 0, 0); font-size: 13px; line-height: 18px;" /> <span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px; line-height: 18px;">ex:</span><br style="font-family: Arial; color: rgb(0, 0, 0); font-size: 13px; line-height: 18px;" /> <br style="font-family: Arial; color: rgb(0, 0, 0); font-size: 13px; line-height: 18px;" /> <span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px; line-height: 18px;">Script1 Start:</span><br style="font-family: Arial; color: rgb(0, 0, 0); font-size: 13px; line-height: 18px;" /> <span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px; line-height: 18px;">&nbsp; &nbsp; Test2_00 sucesss</span><br style="font-family: Arial; color: rgb(0, 0, 0); font-size: 13px; line-height: 18px;" /> <span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px; line-height: 18px;">&nbsp; &nbsp; Test2_01 fail</span><br style="font-family: Arial; color: rgb(0, 0, 0); font-size: 13px; line-height: 18px;" /> <span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px; line-height: 18px;">&nbsp; &nbsp; Test2_02 sucesss</span><br style="font-family: Arial; color: rgb(0, 0, 0); font-size: 13px; line-height: 18px;" /> <span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px; line-height: 18px;">&nbsp; &nbsp; Test2_03 sucesss</span></em><br /> <br /> <span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 13px; line-height: 18px;">Thanks!</span><br /> <br style="font-family: Arial; color: rgb(0, 0, 0); font-size: 13px; line-height: 18px;" /> http://smartbear.com/forums/f74/t92262/RE-Test-that-generate-Test 7/29/2014 7:13:00 AM Mathieu LeBlanc 961d0cbd-e814-42ab-94fe-49d7394cd75f RE: Problems with TestComplete 10.3 and Android 4.4.2 Hi Roxane, <div> &nbsp;</div> <div> TestComplete 10.30 can instrument the tested application by adding the needed modules to apk automatically. There is no need to get access to the application code in this case. Refer to the [url=http://support.smartbear.com/viewarticle/63997/]&quot;Instrumenting Android Applications in TestComplete&quot;[/url] article for more information.</div> <div> &nbsp;</div> http://smartbear.com/forums/f80/t92366/RE-Problems-with-TestComplete-10-3-and-Android 7/29/2014 6:49:16 AM Tanya Gorbunova ba91ff03-e2b7-40b7-8ec2-0bbb84686059 RE: Provider cannot be found. It may not be properly installed <div> RESOLVED:</div> <div> I needed to install &quot;Microsoft Office Access database engine 2007&quot;.</div> <div> I&#39;m disappointed that you didn&#39;t mantined this on the installation guide. I&#39;ve wasted a lot of time because of this.</div> http://smartbear.com/forums/f81/t92405/RE-Provider-cannot-be-found-It-may-not-be-pro 7/29/2014 5:57:06 AM Oleg Sigalov cd3eed09-22a7-48b7-a1e6-44dd4bd61c4c RE: Provider cannot be found. It may not be properly installed I&#39;m trying to get string from Excel file. I have Microsoft Office 2013 installed.<br /> Maybe this issue because of the Office &quot;driver&quot; or somthing like that...? http://smartbear.com/forums/f81/t92405/RE-Provider-cannot-be-found-It-may-not-be-pro 7/29/2014 5:49:42 AM Oleg Sigalov 587d7128-3949-4af6-9004-047e783c69bd