I need my UtraTreeNodes share some their properties for Coded UI testing.
I cannot override Accessibility property. Could you please provide information regarding this topic? (I could not find anything in documentation)
Can you elaborate a bit on your requirement and the solution you are working to implement? When you say that you are trying to override the Accessibility property, do you mean that you have derived a class from UltraTreeNode and want to override one of the properties related to accessibility? If so, which property? Do you mean AccessibilityObject? This would be an unusual implementation, but it could be possible depending on exactly what you need to do.
Please let me know and I will do my best to assist you.
Thank you for your response.
What I actually need to do.
We are using UltraTree -> UltraTreeNodes.
During some operations we are changing colors of Nodes (node.Override.Appearance.BackColor)
Also Infragistics provides some libraries which allow to share properties for CodedUI testing.
But now we also need to provide our testers colors of Nodes. For simple Custom Controls we should do
protected override AccessibleObject CreateAccessibilityInstance()
return new ChartControlAccessibleObject(this);
But with UltraTreeNodes I cannot do like this.
I have already tried to derive class from UltraTree and override this method. But in this case I provide the color of all nodes in whole Tree Description which is not correct and lose some other properties.
Thank you very much!
CreateAccessibilityInstance is not available on UltraTreeNode as this method comes from the Control class and UltraTreeNode does not derive from Control.
It should work to provide this information from the Tree. What information ends up incorrect or missing?
While overriding whole tree I lose ability to test its nodes.
And also if I override the whole tree I should write on its description all nodes' colors. Which is also not so comfortable.
I discussed this issue with our CodedUI specialist and he mentioned that getting the background color would not be possible through CodedUI. We have internal Automation Provider classes that determine what information is available to the test framework. Since these classes are internal, they cannot be extended.
In order to include the styling information in your test, I recommend using our Test Automation product. Infragistics Test Automation is available for HP and RFT. This testing suite will give you much more versatility in your testing, including the ability to access the underlying object in order to access specific information such as the background color of a node.
Without moving to Test Automation, it will be necessary to check something other than the node's background color in order to verify your test.
Please let me know how you choose to proceed.