06-10-2018 05:45 AM
Hi all
I have question please
I need to test UI Gui , some suggestion form SW engineer to use WPF (Windows Presentation Foundation ) technology its kind of XAML
question is can I control on WPF using labview ?
Thanks
Wisam
06-10-2018 03:30 PM - edited 06-10-2018 03:31 PM
If I have understood you correctly:
This is possible but it is not a native LabVIEW feature - you need an API to call within LabVIEW itself using .NET or Win32 calls. You could use Microsoft's UI Automation framework; you can use it directly or preferably use a framework that wraps it like TestStack.White. Here's an old discussion although still relevant (https://stackoverflow.com/questions/58340/how-to-test-a-wpf-user-interface). Although most tutorials around will walk you through how to do it using Visual Studio you can execute the same library calls using LabVIEW .NET nodes, as long as you work within the normal limitations of .NET integration in LabVIEW (mostly generics - https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8iWSAS).
06-11-2018 12:41 AM
Hi
I dont really know if I understand the old discussion that you send to me
you send I need an API to call within LabVIEW itself using .NET or Win32 calls do you mean define .NET in this way ( see pic attach)
did you mean choose on of these UI Automation ?
Thanks
06-11-2018 02:44 PM
First; can you confirm that the three items I listed are what you are trying to achieve?
06-12-2018 12:02 AM
yes this is exactly what I want
06-12-2018 01:54 AM
Hi
I have urgent question please
what is the best way testing UI based on windows using labview
I need to test SW features on windows application that written based on visual .net
I want to preform SW testing feature such as check button, contro and event ,
our SW team suggest working with WPF but as I know WPF Cant support with labview , may be I am wrong really don't know
I need to know if any one preform such kind of testing SW on UI using labiew , and how he did it the interface using what
I hope I explain my self
Thanks
Wisam
06-12-2018 02:51 PM - edited 06-12-2018 02:53 PM
I'm not aware of any convenient frameworks or tools provided by third parties specifically for LabVIEW to do what you want. Your best option is to use TestStack.White or FlaUI and make the necessary .NET calls in a LabVIEW VI(s). You can start here (https://teststackwhite.readthedocs.io/en/latest/ or https://github.com/Roemer/FlaUI). If you are not familiar with .NET or WPF then it could be a challenging process, especially if its 'urgent'.
06-13-2018 05:43 AM
Hi
is there any example that I can refer to?
are these application need to be purchase?
are they can be activate using dll ?
Thanks
06-14-2018 05:41 PM
Why are you trying to control a WPF UI using LabVIEW? What is the goal of this?
06-14-2018 05:49 PM
Both tools I referred to are open source (if you take a look at the pages). As I said; I'm not aware of any specific example showing how to do what you are asking. If you are unfamiliar with the technologies and strategies involved then I would suggest that LabVIEW is probably not the best choice for what you are trying to achieve - save yourself some of the complexity and try following the examples written in C# targeting a .NET assembly.