I have got testadvantage 2010.1 installed and added ultralistview to object repository. However when I try to run wpfwindow("x").SwfListView("ultraWorkQueueList").getcontent or any method other than get content, im getting the following error
Unable to cast object of type 'Infragistics.Win.UltraWinListView.UltraListView' to type 'Infragistics.Win.UltraWinListView.UltraListView'.
any help appreciated.
Thanks
Srikanth
Almost always if you get a Unable to cast object of type 'typename' to type 'sametypename', it is because the version of TestAdvantage does not match the version of NetAdvantage that you're application is using.
To determine that, you can use a free program that Microsoft provides called Process Explorer. To use this program, all you have to do is download and extract; no installation is required.
Once you have downloaded and extracted the ZIP file, you can then run the EXE file. When you run it, you'll be prompted to accept the license agreement. After doing so, you'll be shown the main window. Before doing anything else, you should select View -> Show Lower Pane and View -> Lower Pane View -> DLLs.
Next try to reproduce the error, before If your Application Under Test (AUT) is not yet running, you should launch it now. After launching it, find its process in the upper pane and select it. You should now see a list of DLLs that it uses in the lower pane.
The NetAdvantage and TestAdvantage dll's are both prefixed with Infragistics, so you can sort on Name, the TestAdvantage dll's have QTPServer in the name. Compare the major and minor version numbers of the TestAdvatage and NetAdvantage dll needs to be the same.
Hi Michael,
Thanks for your reply. It took a while for me to get the necessary approvals before installing process explorer on my laptop and test. You're correct it was just the version difference and once I installed the previous version it worked fine.
Thank you