Contributions
How to use Test complete Floating Licence
Hi All, We have a Query on Test complete Floating Licence through VPN. We read the following article. http://support.smartbear.com/viewarticle/15210/ My client has few Floating Licenses for the Test complete. He want to use few of them ‘Using Test Complete in Virtual Private Networks’ . Both of our offices are in different country. So do we need to Install Test Complete in our office, and through VPN and settings mentioned as per abovelink ?Is this the process?17KViews0likes1CommentRe: How to Find() the object by its property if its changing dynamically
Hi Jared, Now it is working with both the ways: "BackColor.Name" and "BackColor.Name.OleValue" The only thing I needed to change was that, while doing any operation like RClick(), Click(), DblClick().... I have to give the whole path of the object, like obj. Winformasobject("DimensionalNewUC").Winformsobject("gridControl").Click(); Thanks Jared. Will bother you again for a new problem :)1.8KViews0likes0CommentsRe: How to Find() the object by its property if its changing dynamically
Hi Jared, Actually, all the objects in the tree, for eg: xTabProject, DimensionalBrowserUC, QuestPanel, gridControl... have BackColor.Name property. At a time, I tried to find only a single object i.e. either DimensionalBrowserUC / gridControl which have BackColor.Name = "GradientActiveCaption" Isent you the screenshot of xTabProject just to show you the preperties of parent object. But actually I want to search DimensionalBrowserUCwhoseBackColor.Name = "GradientActiveCaption" and then I can click on its respective gridControl. because if there are multiple QuestPanels dropped then it does not know which gridControl is active and which one to click.1.8KViews0likes0CommentsRe: How to Find() the object by its property if its changing dynamically
Here is the code which i used: function DimViewDragFieldToActiveGrid(itemPath) { Aliases.QBIS.MainMirandaConsole.Activate(); var PropNames, PropValues,ds; PropNames = new Array("BackColor.Name","Name"); PropValues = new Array("GradientActiveCaption","WinFormsObject(\"DimensionTableNewUC\")"); var obj = Aliases.QBIS.MainMirandaConsole.MdiClient.Find(PropNames, PropValues, 1000, true); var grid = obj.WinFormsObject("gridControl"); var gridTop = grid.ScreenLeft; var gridLeft = grid.ScreenTop; PropNames = new Array("Name","VisibleOnScreen"); PropValues = new Array("WinFormsObject(\"tvFields\")",true); ds = Aliases.QBIS.MainMirandaConsole.MdiClient.Find(PropNames, PropValues, 1000, true); ds.ClickItem(itemPath,0); var node = ds.SelectedNode; var nPnt = ds.WindowToScreen(node.Bounds.X,node.Bounds.Y); var dropX = gridLeft - (nPnt.X); var dropY = gridTop - (nPnt.Y); ds.Drag(node.Bounds.X+5,node.Bounds.Y+5,dropX,dropY); }1.8KViews0likes0CommentsRe: How to access child objects from a Parent object?
Hi Jay, I have not understood this part of your code: GetTabRect(index)... Is there a method in test complete like this? I used your code but TC searches for GetTabRect(index) and could not find this object. How do I mention the rectangle area of tabs in xTabProject object? I got one property of xTabproject, which is 'DisplayRectangle', does this property shows Top,Left,Height,Width of Tabs? Is this of use in any way, here? Iknow Utils.Rect which returns a reference to a new empty rectobject, but I dont know whther that would be useful here.1.3KViews0likes0CommentsRe: How to Find() the object by its property if its changing dynamically
Hi Krushna, Thanks for replying... I tried your combination but its not working... because "Name" is one unique property and another unique property is its "BackColor"... which is again an object... means BackColor is a property which is itselfan object, which has again a property called Name in it. Means Object ("gridControl") has two unique properties "Name" and "BackColor.Name" but Idont know how to use this"BackColor.Name" property... It is not recognizing it...1.8KViews0likes0CommentsHow to Find() the object by its property if its changing dynamically
Hi, Below is the path of the oblect which I need to find. its basically a window pane with a grid in it. There are multiple grids on the screen and only one of them is active andI have to find such a window pane and right click on the gridcell. Sys.Process("QBIS").WinFormsObject("MainMirandaConsole").WinFormsObject("MdiClient", "").WinFormsObject("UnitTest.qbis").WinFormsObject("xTabProject").WinFormsObject("XtraTabPage", "Dimensional View2").WinFormsObject("DimensionalBrowserUC").WinFormsObject("xtraScrollableControl").WinFormsObject("QuestPanel", "", 2).WinFormsObject("DimensionTableNewUC").WinFormsObject("gridControl"); From the above path, this part changes frequently: WinFormsObject("QuestPanel", "", 1).WinFormsObject("DimensionTableNewUC").WinFormsObject("gridControl"); OR WinFormsObject("QuestPanel", "", 3).WinFormsObject("DimensionTableNewUC").WinFormsObject("gridControl"); etc.... and to find a active grid, there is only one property ofgridControl which is "BackColor.Name" and : (BackColor=(Object),Name= "GradientActive") I tried every possibility like: used FindChild(), Used Extended find, Used Find function and searched the obj by using PropName as "BackColor.Name".... But it did not work. Can anyone please tell me how to do it? OR please give the link, material on which this type of problem is discussed, article for the solution.... :(19KViews0likes8CommentsRe: How to access child objects from a Parent object?
Thanks Jay, I could get all the properties of tabs, but after finding the child object, apart from ClickTab(), there is no other method for working with tabs. Like I was expecting DblClickTab(), RClickTab(), etc. methods which could work same as ClickTab() and can be worked out after passing just the tab index But i had to find the co-ordinates and the use DblClick and RClick Is there any way toget the co-ordinates (X,Y) where the mouse justclicked on the application? so that i can use ClickTab() and the get the co-ordinates where it clicked and then can pass those co-ordinates for DblClick() and RClick() :)1.3KViews0likes0CommentsHow to access child objects from a Parent object?
Suppose if we have a Parent object eg: A WinFormsObject("xTabProject") which has child object like Tab controls.I used Find method to find the parent object and then in that object i need to access its child object like double clicking on Tabs/right click on tabs. I tried using the .Net properties to get the selectedtab index, tab count, etc. but couldn't do. Can anyone help me on this, please?18KViews0likes7Comments