Contributions
Test execution hangs on standard Open file... dialog opening
Hello! I have a test in whichmenu item is clicked &standard Open file dialog is opened after that. Here's a piece of code: 10 var MenuItemLevel3 = MenuItemLevel2.DropDownItems.Item_2(l) 20 MenuItemLevel3.PerformClick() 30 is_found = true 40 break The click in string 20 is successfully performed so that I have standard Open file dialog opened but execution just stops therewhile Open file dialog is opened (without any errors). So that string 30 is never reached. After closing of Open file dailog execution continues. I tried to add WaitWindow for Open file dialog ( WaitWindow("#32770", "*", 1, 500) ) after string 30 but execution still never reaches it. Please advice.23KViews0likes1CommentSQL Query results export (CreateADOQuery, exec xp_cmdshell bcp)
Hello! I'm trying to execute SQL-query which export the result to txt-file: var Qry = ADO.CreateADOQuery(); Qry.SQL = "exec xp_cmdshell \'bcp \"SELECT * FROM EpicorDBEtalon.dbo.COA\" queryout \"c:\\sqlout.txt\" -c -Usa -P!****1\'"; Qry.Open(); Result: [object Error]: Parameter object is improperly defined. Inconsistent or incomplete information was provided The samequery is successfully executed in SQL Server Management Studio. Also simple queries are successfully executed from TestComplete script. Please, advice. Probably there are another objects in TestComplete which support queries of this type.21KViews0likes1CommentRe: Drag action fails from time to time
Hi, thanks for your answer! I'm trying to drag tree nodes within the same control (ultre tree).So that I call Drag method for tree control: tree.Drag(X, Y, deltaX, deltaY) where (X, Y)- source tree nodecoordinates (nodeDrag.Bounds.Left+nodeDrag.Bounds.Width/2; nodeDrag.Bounds.Top+nodeDrag.Bounds.Height/2); (DeltaX,DeltaY) - the difference betweendestination tree node and source tree node. Tree nodes are properly identified and clicked - it can be seen during playback. So that I guess coordinates are correct. I also tried to adopt your code for my script and it looks like no effect (I can't see any actions during playback).934Views0likes0CommentsDrag action fails from time to time
Hello! I'm using Drag action for dragging nodes of Infragistic ultratree control. It works fine during debug & mostly fails during playback. I've tried to set delay before Drag action execution and also played with Project delays (dragging delay, etc.) - nothing works. Please, advise. Thanks! In my script I do the following: 1. Select startnode and finish one, expand them if necessary(works stable). 2. Get nodes' bounds. 3.Calculate start/finish points (left+width/2;top+height/2). 4. Calculate moving distance. 5. Call Drag action applying it to tree control.15KViews0likes4Comments