Use object or UI control to test WPF UI?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2014
02:13 AM
02-27-2014
02:13 AM
Use object or UI control to test WPF UI?
Hi,
We are planningt o update GUI to WPF step by step in our desktop software. Now I am working on writing scripts for WPF controls in our new WPF UI. But I am a little confused about what is the right way to test WPF controls.This application is closed for me and I have no idea about its source code.
For example, we can spy one WPF object "TreeView" treeViewObj. We can access to each tree node by treeNode = treeViewObj.Items.Item(index).
WIth this, we can check treeNode.DisplayName. Actually this DisplayName is in its child contol "TextBlock". If I need to know this name in UI, should I find THAT "TextBlock" UI control or just use DisplayName from found "TreeView" object?
Are they the same or different?
Thanks
Best regards,
Liping
We are planningt o update GUI to WPF step by step in our desktop software. Now I am working on writing scripts for WPF controls in our new WPF UI. But I am a little confused about what is the right way to test WPF controls.This application is closed for me and I have no idea about its source code.
For example, we can spy one WPF object "TreeView" treeViewObj. We can access to each tree node by treeNode = treeViewObj.Items.Item(index).
WIth this, we can check treeNode.DisplayName. Actually this DisplayName is in its child contol "TextBlock". If I need to know this name in UI, should I find THAT "TextBlock" UI control or just use DisplayName from found "TreeView" object?
Are they the same or different?
Thanks
Best regards,
Liping
Solved! Go to Solution.
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2014
10:33 PM
04-26-2014
10:33 PM
+1 for this post.
Any inputs here would be really appreciated.
We too test windows desktop applications built using wpf objects and are a little confused about which approach to choose.
Any inputs here would be really appreciated.
We too test windows desktop applications built using wpf objects and are a little confused about which approach to choose.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2014
10:49 AM
06-13-2014
10:49 AM
If the app is "closed to you" it may be a problem as the app should be built in Debug mode so TC can have access to all the names etc.
