Hi,
I am using sample application of infragistics wpf(AutoSales Dashboard) which I downloded from infragistic site.Application is built in verison 15.2 infragistics wpf
Currently i am using Infragistics 16.2 Test Automation version free which I downloaded from infragistics site.
I am getting error in GetCellData function of XamDataGrid
IG : [GetCellData] : Could not load type 'Infragistics.Windows.DataPresenter.FieldItem' from assembly 'InfragisticsWPF.DataPresenter, Version=15.2.20152.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb'.
code is simple
r1 = WpfWindow("AUTO SALES DASHBOARD").XamDataGrid("XamGrid").RecordCount c1 = WpfWindow("AUTO SALES DASHBOARD").XamDataGrid("XamGrid").FieldCount MsgBox r1 MsgBox c1 cell = WpfWindow("AUTO SALES DASHBOARD").XamDataGrid("XamGrid").GetCellData("{2}[Dealer]") msgbox cell
Also getting error for FieldCount method
Could not load type 'Infragistics.Windows.DataPresenter.FieldItem' from assembly 'InfragisticsWPF.DataPresenter, Version=15.2.20152.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb'
PC configuration
windows 7,64 bit OS
Also using UFT version 12.53
add ins used (.Net,ActiveX,WPF,Web,VisualBasic,16.2 VersionFree or 16.2 CLR 4.0,Silverlight)
Hello amey sangle,
Thank you for the provided information.
The version of the Infragistics WPF product must match the version of the Test Automation for WPF product. In your case, if the WPF application is using 15.2 version, then the TestAutomation for WPF 15.2 version must be installed.
Please let me know if you have any other questions on this matter.
Hello amey,
You should run the solution file in Visual Studio and build it. When the solution with all the projects are built successfully, bin/debug folder will be created where the exe resides.
Hi Martin,
Please let me know which version of visual studio should be used to run the autosales 2016 infragistics application.I am having VS 10 but it does not work on that.
Thanks,
Amey
You should be able to build the application with Visual Studio 2012 and forward.
Please let me know if you have any issues on this matter.
Thanks.I am able to run the application now however I am getting the error in GetcellData function
r1 = WpfWindow("AUTO SALES DASHBOARD").XamDataGrid("XamGrid").RecordCount msgbox r1 cellr1 = WpfWindow("AUTO SALES DASHBOARD").XamDataGrid("XamGrid").GetCellData("{1}[Dealer]") msgbox cellr1
Error : The Following field Dealer key was not found
Please let me know about the same
The reason why the Dealer key was not found is that the GetCellData works with the field's Key property. In this case the Dealer field's Key is Name.
Calling GetCellData("{1}[Name]") will give you the value of the second cell of Dealer field with Name key.
You could find more information about using Test Automation 16.2 in our online documentation
https://www.infragistics.com/help/wpf-ta/test-automation-for-wpf-
Thank you for using Infragistics controls!
Can you tell me where can I find the jeys for other headers like Dealer,Location etc
Also can you tell me how to identify application is built using infragistics without using uft addin for infragistics
When you load the applicaiton sample in visual studio, you can go to the xaml page where the content is and take a look at the XamDataGrid. If it does not have defined keys in its xaml representation, i believe the keys come from the data source. That would be the property names of the class that is used for data source.
If I understand your second question correctly, The Infragistics addin must be selected in the UFT addin dialog in order to record and replay over the Infragistics WPF controls.
Let me know if I may be of any further assistance.
Hello Martin,
Thanks Again.
Can you please let you know keys for other table headers like Location,Dealer and where can I find them.Just ike we have developer tools for web based application, how can we get source code for WPF application built using infragistic.
Also can you please let me know how can we identify application is built using infragistics without using UFT addin for infragistics.
After you have downloaded the files for the application sample, you can navigate to Infragistics_WPF_Showcase_AutoSalesDashboard_Source\IGAutoSalesDashboard.WPF\Views and DashboardView.xaml contains the XamDataGrid where every field Name is set. If a field does not have a Name, you can set its Name so TestAutomation can recognize the field when recording.
Also, what you could use in order to observe the visual tree of any control is Snoop, wpf spy utility. You can download it from here - https://snoopwpf.codeplex.com/. When you hover a XamDataGrid field, you should find its LabelPresenter framework element in Snoop and find its Field property. It will display you the field's Name if it's set. For example, the Location field will have the following information about its LabelPresenter Field proeprty value - Field:City where City is the name of the Location field.
In order to understand if an application is built using Infragistics assemblies, you can load the project in Visual Studio and check the assemblies. If there are any Infragistics assemblies, then the application is using them.
Can you please tell me the version compatibility of infragistics add in UFT for WPF application built using infragistics version.For ex infragistics application built in previous version say 2015,2014 can these apps be fully recognised in UFT add in for infragistics 2016 version.If no can you please let me know version compatiblity and how can I find which version of infragistics is used to build WPF application.
Thanks