Contributions
How to register user defined functions?
In QTP we use to create user define function for eg: button,textfield....etc and register them. So that while coding we will make use of those user defined functions (Eg: button--> click) Like wise we need to create some user defined functions in test complete. MayI know the steps to do this?16KViews0likes1CommentRe: How to map description to custom name using Name mapping?
Hi, I want to replace the full description with a single customname. Is that possible? if possible how? Eg: Object description Aliases.Printgroove_POD_Ready.HwndSource_CPGRMainWnd.CPGRMainWnd.grManinWindowGrid.sbEuropaStatusBar.StatusBarItem1.btnStatusPage.VisibleOnScreen I want toreplace "Aliases.Printgroove_POD_Ready.HwndSource_CPGRMainWnd.CPGRMainWnd.grManinWindowGrid.sbEuropaStatusBar.StatusBarItem1.btnStatusPage" to "EuropaStatusBar" (single name) using name mapping then code becomes: EuropaStatusBar.VisibleOnScreen1KViews0likes0CommentsRegion Checkpoint not working
We are using region compare checkpoint to compare a specified region in windows based application. We found below mentioned issues When we try to use this checkpoint its working fine for the first couple of attempts but it’s not consistent (checkpoint failed – “Regions are not same”) we could also see some red colour lines which are differences. Also we tried using tolerance of 10 and transparence to overcome this inconsistent behavior Eg:1 Call Regions.Compare("EvenPageView", Aliases.Printgroove_POD_Ready.HwndSource_CPGRMainWnd.CPGRMainWnd.grManinWindowGrid.dpPageAreaPanel.dockManager.Grid.Grid.gridDocking.zpanel.Grid1.Grid.DockablePane.DockPanel.Border.Grid.cpClientWindowContent.grDocumentPanelGrid.tbcDocumentPanel.grDocumentTabGrid.scvDocumentTree.tvDocDisplay.Picture(39, 43, 87, 230, False), False, False, True, 10) Also we tried using picture.compare Eg:2 a=Aliases.Printgroove_POD_Ready.HwndSource_CPGRMainWnd.CPGRMainWnd.grManinWindowGrid.dpPageAreaPanel.dockManager.Grid.Grid.gridDocking.zpanel.Grid1.Grid.DockablePane.DockPanel.Border.Grid.cpClientWindowContent.grDocumentPanelGrid.tbcDocumentPanel.Picture.SaveToFile("F:\test\even1.PNG") b="F:\test\even.PNG" if( Aliases.Printgroove_POD_Ready.HwndSource_CPGRMainWnd.CPGRMainWnd.grManinWindowGrid.dpPageAreaPanel.dockManager.Grid.Grid.gridDocking.zpanel.Grid1.Grid.DockablePane.DockPanel.Border.Grid.cpClientWindowContent.grDocumentPanelGrid.tbcDocumentPanel.Picture.Compare(b,a))then Log.message("test pass") Else Log.Message("test failed") end If Is there any alternate to ensure that image verification is consistent for every run. Also let us know if anything to be done at PC configuration level to eliminate this image comparison failure.14KViews0likes1CommentHow to map description to custom name using Name mapping?
Steps to map complete object description to custom name using name mapping (Also attached screenshot for more info) Eg: Object Description Aliases.Printgroove_POD_Ready.HwndSource_CPGRMainWnd.CPGRMainWnd.grManinWindowGrid.sbEuropaStatusBar.StatusBarItem1.btnStatusPage.VisibleOnScreen14KViews0likes3CommentsHow to post custom message to log when checkpoint pass/fail?
Condition ---- visibleonscreen of "page" button property is true --- verified using property checkpoint Call aqObject.CompareProperty(Aliases.Printgroove_POD_Ready.HwndSource_CPGRMainWnd.CPGRMainWnd.grManinWindowGrid.dpPageAreaPanel.dockManager.Grid.Grid.gridDocking.zpanel.Grid1.Grid.DockablePane.DockPanel.PaneHeader.DockPanel.tbTitle.VisibleOnScreen, cmpEqual, True, False) .CompareProperty(.Printgroove_POD_Ready.HwndSource_CPGRMainWnd.CPGRMainWnd.grManinWindowGrid.dpPageAreaPanel.dockManager.Grid.Grid.gridDocking.zpanel.Grid1.Grid.DockablePane.DockPanel.PaneHeader.DockPanel.tbTitle.VisibleOnScreen, cmpEqual, , )17KViews0likes3Comments