13 years ago
Testing navigation in DevExpress application
Hello!
I have got a problem when creating test script (Test Complete version 9.20) for navigation in DevExpressApplication (version 12.1). First, I get access to navigation group using following statement:
var nav=Sys.Process("MyApp.Win").WinFormsObject("f39c6ddc-a8b1-4841-abb8-b77482bd61d3").WinFormsObject("dockPanelNavigation").WinFormsObject("dockPanelNavigation_Container").WinFormsObject("navigation").WinFormsObject("NavBarNavigationControl", "");
Then, I change the active group:
nav.ActiveGroup=nav.Groups.get_Item_2(1);
Then, I get access to tree list assiciated with navigation groups:
var tre=Sys.Process("OMMUral.Win").WinFormsObject("f39c6ddc-a8b1-4841-abb8-b77482bd61d3").WinFormsObject("dockPanelNavigation").WinFormsObject("dockPanelNavigation_Container").WinFormsObject("navigation").WinFormsObject("NavBarNavigationControl", "").WinFormsObject("NavBarGroupControlContainerWrapper", "").WinFormsObject("NavBarGroupControlContainer", "").WinFormsObject("TreeListNavigationControl", "");
The problem is the property Nodes of object tre (type TreeListNavigationControl) containg the tree list not for second group chosen active but for first group. As a result I can not simulate mouse click for items in TreeListNavigationControl. Moreover, for object nav (type NavBarNavigationControl) the method ClickItem described in documentation for TestComplete is not available.
Thanks in advance,
Onufry Tokarev
I have got a problem when creating test script (Test Complete version 9.20) for navigation in DevExpressApplication (version 12.1). First, I get access to navigation group using following statement:
var nav=Sys.Process("MyApp.Win").WinFormsObject("f39c6ddc-a8b1-4841-abb8-b77482bd61d3").WinFormsObject("dockPanelNavigation").WinFormsObject("dockPanelNavigation_Container").WinFormsObject("navigation").WinFormsObject("NavBarNavigationControl", "");
Then, I change the active group:
nav.ActiveGroup=nav.Groups.get_Item_2(1);
Then, I get access to tree list assiciated with navigation groups:
var tre=Sys.Process("OMMUral.Win").WinFormsObject("f39c6ddc-a8b1-4841-abb8-b77482bd61d3").WinFormsObject("dockPanelNavigation").WinFormsObject("dockPanelNavigation_Container").WinFormsObject("navigation").WinFormsObject("NavBarNavigationControl", "").WinFormsObject("NavBarGroupControlContainerWrapper", "").WinFormsObject("NavBarGroupControlContainer", "").WinFormsObject("TreeListNavigationControl", "");
The problem is the property Nodes of object tre (type TreeListNavigationControl) containg the tree list not for second group chosen active but for first group. As a result I can not simulate mouse click for items in TreeListNavigationControl. Moreover, for object nav (type NavBarNavigationControl) the method ClickItem described in documentation for TestComplete is not available.
Thanks in advance,
Onufry Tokarev