Contributions
Re: Prompt message in TestComplete without any buttons
Hi, Temporarly got solution, Created userform with the label "Device is not Ready.. Please wait" and this has been called whenever it is required and displayed for few secs and disable the window. if someone has different methods also welcome. Regards, Venkat853Views0likes0CommentsPrompt message in TestComplete without any buttons
Hi, I'm developing a code to open URL, if Obj is not exists want to prompt message "Device is not Ready.. Please wait" without any button and then close the message window and then open URL again until obj.Exists Need help on how to prompt a message window for defined time without any button. Sub Test ip_add = www.google.com Do Call Browsers.Item(i).Run(ip_add) Set obj = Sys.Browser("iexplore").Window("#32770", "Windows Security", 1) If not obj.Exists then aqDlg.ShowMessage("Device is not Ready.. Please wait") delay(2000) End if Loop Until obj.Exists End sub20KViews0likes2CommentsRe: Declaring array in Testcomplete using VBscript
Thanks to all. Got solution. when we declare dynamic array DIM arr() and try to asign the value before declaring the array dimension. we willget error message. Ex. To read Excel data Sub Temp Dim arr() ''' Statements to beadded ''''' x= Excel.Application.Activesheet.Usedrange.rows.count y= Excel.Application.Activesheet.Usedrange.columns.count ReDim arr(x) For i=0 to x Forj=0 to arr(i,j)=Excel.cells(i+1,j+1) Next Next End Sub Regards, Venkates K3.8KViews0likes0CommentsRe: Declaring array in Testcomplete using VBscript
Thanks Hugo Well, split() function is good when i know my array with pre-defined delimiter, suppose if i want read cell values from excel and want to put it an array elements. In that case we may not know array size so we need to read from for loop. Ex. Sub array Dim arr() For i=0 to 10 a(i)= Excel.cells(i,1) ' gettingerrorin a(i) Next End sub Regards, venkates k3.8KViews0likes0CommentsError: Window is invisible and thus cannot be activated
I need to change the values of each cell in Table view window (attached the image file). I'm not able to read each cell or control properties of Table view window so i decided, first event is click on State 1 cell then use key functions to move up/down across the cells and change the values of each cell. Problem: First encountered error: "The window was destroyed during method execution." so i introduced delay functions to each event now second error is "The '0 output(s) active' window is invisible and thus cannot be activated."Dim wndAfx Dim V1,V2,V3,IP1,IP2,IP3 V1=23 V2=32 V3=45 IP1=0 IP2="-120" IP3=120 I1=1 I2=2 I3=3 VP1=0 VP2="-120" VP3=0 Dim afxFrameOrView80u Dim gxedit Set wndAfx = Aliases.OMSeq.wndAfx.MDIClient.wndAfx1 Call wndAfx.Click(138, 9) Set afxFrameOrView80u = wndAfx.AfxFrameOrView80u Set gxedit = afxFrameOrView80u.GXEDIT1 Call afxFrameOrView80u.Click(90, 38) 'Call afxFrameOrView80u.Keys("[F2]") aqutils.Delay 50 Call gxedit.Keys("[Home]![End]") aqutils.Delay 50 call gxedit.keys("[Del]") aqutils.Delay 50 call gxedit.Keys(V1) aqutils.Delay 50 Call gxedit.Keys("[Down]") aqutils.Delay 50 Call afxFrameOrView80u.Keys("[F2]") Call gxedit.Keys("![End]") aqutils.Delay 50 call gxedit.keys("[Del]") aqutils.Delay 50 call gxedit.Keys(V2) aqutils.Delay 50 Call gxedit.Keys("[Down]") End sub Regards, Venkateswaran K18KViews0likes2CommentsRe: Declaring array in Testcomplete using VBscript
Thanks Alexei, Any other method of declaring. F.Ex.if we get'n' no of elements from the userand wants to process each element by readingit fromfor loop and do some action depends on case logic. Ex: User Input: 1,5,8,6,9,10....n Code: Sub Expectedinfo( array_input) Dim arr() arr()= array_input a=ubound(arr()) 'toidentify array size For i=0 to a '' Statements Next End Sub Regards, Venkates K3.8KViews0likes0CommentsDeclaring array in Testcomplete using VBscript
I need to declare an array of 7 integer elements using VB script, I getting "error 110: syntax error while lexinf character:" Tried below codes: 1. Dim arr={1,2,3,4,5,6,7} 2.Dim arr(6)={1,2,3,4,5,6,7} 3.Dim arr() = {1,2,3,4,5,6,7} Regards, venkateswaran K23KViews0likes6CommentsExecute Remote PC TestComplete scripts by calling from Server PC TC scripts
Hi, I hope somone can help me onthis requirement. I have x, y, z TC scriptson server PC and a,b, c scripts on Remote PC. When runing the task, I want scripts has to be executed as following x,a,y,b,z & c. Note. TestExecute is installed on remote PC. Need script to open Remote PC and executes the specific routine to control the functional flow. Regards, Venkateswaran K20KViews0likes2Comments