ContributionsMost RecentMost LikesSolutionsPerformance comparison between FindChildByXpath and EvaluateXpath Hi, Can someone please help me understand if there is any difference between FindChildByXpath and EvaluateXpath functions with respect to performance? My understanding of these functions from documentation is that EvaluateXpath would search all web elements and would store all matching elements into an array. On the other hand FindChildByXpath would try to search all web elements but if it encounters any object matching the Xpath, it would stop search and return the object. Going ahead with this understanding I expect FindChildByXpath to work faster than EvaluateXpath if there are 3050 input type web elements in a page. So i wrote below code to test for it sub mytest XPath = "//input[@id='test']" set PageObj = Sys.Browser("iexplore").Page("*") set ParObj = PageObj.FindChildByXpath(".//*[@id='test2']") startTime = Timer() set myEle = ParObj.FindChildByXPath(Xpath) endTime = Timer() if not myEle is Nothing then log.Message "Time to find object using FindChildByXpath: " + FormatNumber(endTime - startTime, 2) end if startTime = Timer() myEle = ParObj.EvaluateXpath(Xpath) endTime = Timer() if not isNull(myEle)then log.Message "Time to find object using EvaluateXpath: " + FormatNumber(endTime - startTime, 2) end if end sub OUTPUT: Iteration:1 Time to find object using FindChildByXpath: 12.01 Time to find object using EvaluateXpath: 12.17 Iteration:2 Time to find object using FindChildByXpath: 12.24 Time to find object using EvaluateXpath: 11.88 Iteration:3 Time to find object using FindChildByXpath: 11.95 Time to find object using EvaluateXpath: 12.21 Iteration:4 Time to find object using FindChildByXpath: 12.14 Time to find object using EvaluateXpath: 11.97 I am confused with the output because alternatively it seems evaluateXpath works better than findChildByXpath. Is it a bug? Is it the case that FindChildByXpath still searches through the whole web page elements even if it encountered the matched object and only after finishing search it returns the object? Problem is I have set of testscripts which currently uses EvaluateXpath and TC takes roughly 10-14 secs to find and perform single operation. As a result i have to wait for almost an hour for test execution to finish. If i do the same testcase manually, it would roughly take 15 - 20 minutes to finish. Hence I was thinking to change EvaluteXpath to FindChildByXpath as most of the controls have unique id. I have already implemented other performance improvement tips suggested by TC CollabNet Subversion 1.6.6 or 1.7.3–1.7.9 integration with TestComplete 10Hi, I am trying to use SVN for my TestComplete projects. Thers is SVN server already setup in company and I have got access to repository which system team has created for me. System Team told me that it is CollabNet Subversion but I dont know what version it is Now I have checked with Tortoise SVN client on my personal machine and I can access the repository. On other machine(Windows 7 VM) where TestComplete 10 is installed, I have tried installing Subversion 1.6.23 (Windows 32-bit) and Subversion 1.6.23 + Apache Server (Windows 32-bit) from http://www.collab.net/downloads/svn-other site. Questions: When I start TestComplete I dont see anything is listed in "Select SCC Provider" Dialog? Do I need to install just the client or the server or both on machine where TestComplete is Installed? Where do I find Installers for "32-bit edition of CollabNet Subversion 1.6.6 or 1.7.3–1.7.9"as mentioned in "Integration with Subversion" guide? I tried google but cannot find exact versions as above. What Configuration do i need to do in SVN before TestComplete can recogize it? I have never setup SVN before only used clients like Tortoise SVN to checkout and commit things. A little help will be greatly appreciated. Many Thanks, Aazim Re: TestComplete 10 fails to identify textblock inside ScrollViewer controlHi Tanya, Sorry for late reply. Please see attached screenshot for the properties visible in SilverlightSpy for the textblock control. Because I am using free version of the tool, I do not see all the properties of control but if I switch to view pane on the tool, I can see the text of textblock control. Regards, AazimTestComplete 10 fails to identify textblock inside ScrollViewer control Hi, I am facing problems where TestComplete cannot identify textblock control and its contents inside ScrollViewer Control My application is running on IE10 and Silverlight 5 My TestComplete version is 10.10.752.7 Scripting Language: VBScript Preferred Style: Keyword Scripting I am trying to record a script to read Build Number information from About popup control of my application. The about popup is a simple control which includes version information and system Requirements details. Now when I used TestComplete Object Browser I can see few buttons and ScrollViewer control (please see TestCompleteObjectBrowser.png) If I use free version of http://firstfloorsoftware.com/silverlightspy , then I can see that Text which I am after, this text is inside TextBlock Control which is inside this ScrollViewer control. (Please see silverlightspyObjectBrowser.png) I am sure that I have patched my application with tcAgPatcher.exe utility and I have also tried FindAllChildren method but it didnt return me required object sub getText() dim p, w, textblock, i set p = Aliases.browser.page.formForm1.object textblock = p.FindAllChildren("SlFullClassName","System.Windows.Controls.TextBlock",1) if UBound(textblock) >= 0 Then For i = 0 To UBound(textblock) Log.Message("Text: " & textblock(i).Text) Next Else Log.Error("No TextBlock found.") End If end sub How can I solve this issue? Any suggestion/help will be greatly appreciated Many Thanks Aazim WScript.Arguments equivalent in testComplete vbscriptHi, I am trying to write few restore scripts for my tests. I am using VBscript language for my scripts in TestComplete. Because it is a restore script , I was trying to add some error checks for arguments passed are unset (for example "") arguments passed are NULL I would like my function to be something similar to Function mytest(args1,args2) for each x in WScript.Arguments if (IsNull(x)) then log.error("Argument: " + x + "is NULL") Runner.Stop end if Next end Function Wscript is the root object of windows scripting host and I think it cannot be directly used in testcomplete without initialization. Whenever I run my script i get following error in TestComplete Microsoft VBScript runtime error Object required: 'WScript' Is there any such object in TestComplete's vbscript environment which holds all arguments passed onto procedures? for workaround what I cheated by creating an array of arguments in function itself like below Function mytest(args1,args2) argList=Array(args1,args2) for each x in argList if (IsNull(x)) then log.error("Argument: " + x + "is NULL") Runner.Stop end if Next end Function This works ok for me but was wondering if there is any default object which I can useRe: TestComplete10 fails to record script against silverlight 5Hi Tanya, Thanks for the suggestion. I will post my query to TestComplete Support team as well. We are trying to evaluate TestComplete against our web products and found it very useful until now. We have been using Telerik's Test Studio so far and had quite a few problems with reliable playback. Funny thing is Test Studio does record and playback this scenario very well. So I don't think this is related to application. It might be the case that no one else using TestComplete has ever tried this scenario. Best Regards, AazimTestComplete10 fails to record script against silverlight 5 Hi there, I am facing an issue where TestComplete10 stops recording any user action on controls. My application is running on IE10 and Silverlight 5. My TestComplete version is 10.0.531.7 I have patched xap files with tcAgPatcher.exe utility as mentioned in below link: Preparing Silverlight Applications for TestCOmplete and i can see native control information (please see attached screenshot "native-silverlight-controls.PNG") Details of issue: Following is the test which I am trying to record Open web app click on button to open popup-1 popup-1 has a button called add. click on it popup-2 opens up, which actually a wizard with series of step to add item. step-1 of wizard is to select a table from list and click on next button. step-2 of wizard is to specify name and description for table and click on next button step-3 of wizard is to select columns for table. Continue towards finishing wizard My problem is that TestComplete records everything till testcase step-6 and then it stops recording any useraction I perform from step-7 onwards. I have tried several things like restarting TestComplete, restarting my machine, creating new test script, creating new project suite etc. I have even tried following method: 1. Record with Testcomplete till step-6 and then stop recording 2. Manually click on next so that it reaches state for step-7 3. Start recording again I have used objectspy and it does recognize controls on this page of wizard. The only way I could get it working is by Using object spy to get the control information of object. and then writing a jscript to click on it (or do some operation) For my project more stress is given on Keyword scripting, and that does not work in this case. Has anyone faced such problem? If you can please guide me as to how this can be solved, it would be wonderful. Many Thanks, Aazim