Contributions
Help - an Error occured, but i cannot find a way to prevent it from occuring
Possible reasons: 1. The application stopped responding. 2. The application was compiled incorrectly (see the Open Applications topic in the help system). 3. An error occurred in TestComplete. Technical information: 319 0x80020009 (Exception occurred.) 0 This operation was canceled because the method invoke timeout has expired. The above is the error message this is from clicking a tab (infragistic), the tab takes a bit to response so it freezes the application for a bit (lots of join tables likely). When the action takes place : Aliases["Application"]["main"]["Tabs"]["line"]["tabcontainer"]["ClickTab"]("Audit"); TC waits for the tab to be selected, and about 5second later it is now selected but still causes an error. This is from a script. I dont know how to go about this , i added a delay but the delay only occur after the above has error. i've added a tr{}catch{} and it doesnt catch the error either as there are no messge display of the error. Help ?1.8KViews0likes1CommentRe: TestComplete adds number to WPF object
Since we're discussing this: function fractal(innerobj,parent,properties,values) 'go through all child count=count+1 objChilds= innerobj.FindAllChildren(properties,values,1) if ubound(objChilds)=0 then log.Message innerobj.clrFullClassName else if ubound(objChilds)>1 then set childObj = new Objtest childobj.name = innerobj.fullname for i = 0 to ubound(objChilds) childObj.objList.Add objChilds(i) next for i=0 to childobj.objList.count-1 fractal childobj.ObjList.item(i),innerobj next end if end if end function class objtest public objList public name private sub Class_Initialize set objList=CreateObject("System.Collections.ArrayList") end sub end class This is one of the set of codes i use if ever that the GetObject returns more than one object. I normally run this separately on theparent object when a test shows more than oneresult exist, that way i can find all the object's name which identify where the discrepency comes from. I dont know if i can use it in DevX due to the way MVVM patterns and how those objects does not have a naming convention so objects of the same type will exist in multiple location.5.4KViews1like0CommentsRe: TestComplete adds number to WPF object
Do becareful using teh , 0, values as mentioned these are WPF components created based on components 'location' as its being generated (the xaml file) should descript where they are. if the designer change teh location of the component so does the indexes that it corresponse to, so the text boxes for first name, is binded to the view in your application moved to the second location and the last name is now teh first text box created, your ,0, index will now find the last name and not the first name. hopefully that makes sense your application designer should be able to add name to the component for you to pick up , but i m cannot say for sure on this as i am still waiting to test this out. if TC can pick up the name of the component then our designer will ahve to name all component use to make mapping of object easier and clearer for testing.5.4KViews0likes0CommentsRe: Ultrabutton and VK_LControl/VK_RControl
Thanks for the suggsetion, that was the only way i can get about it. Currently it is still using Set_Select(true) as the command to select the rows since its part of the function that is being used most of the grid related activities. In the future it can be updated but for now it will have to retain. I had to get teh x/y location using Accessibility object of the cell using an existing valid row's cell and then using LLPLayer to move and click while control is hold down, basically reclicking to select the row. This fix the issue with the Ultrabutton now working as it normally is suppose to. As per your guess, the set_select() automatically select the rows, but as there's no onclick action on the grid's row, and that could likely be the control that prevent the Ultrabutton's OnClick event' to not kick in place.3.1KViews2likes1CommentRe: TestComplete adds number to WPF object
Hi Ron, I don't know if this is the same but i've had something like this. Our view are generated dynatmically and can have more than one type open at the same time. As well diferent 'version' of teh view also exist and those also can exist multiple times on screen. I dont know if this will fix your problem but replace the [x] number with * other option if you are trying to locate the view via script codes, try using the Find() or FindChild() and use the property "ClrFullClassName" parent.findChild("clrFullClassname","TheFullClassNameOfTheObject",depth) also to becareful that if you have more than one object, both of these will return the first instance only. there's also theparent.FindAllChildren("clrFullClassName","thefullclassname",depth) and check if you have more than one using ubound() on the array .. sorry these are vbscript codes5.5KViews1like8Comments