Hi
I am facing issue when i try to select a value from WpfComboBox(). QTP identifies two comboxes for one comboBox , and for one it is not working at all but for the other it is selecting the value from the dropdown but throwing the error
"Object reference not set to an instance of an object"
If i use On Error Resume next... it ignores the error and works fine. Is there any solution for that.
Another issue is, There is a WpfWindow comes when i double click a specific cell in a Grid (SwfTable("Grid1")) and in that window when i try to enter value once it work... steps are like this
Double click the specific column in grid
WpfWindow open
Enter value in WpfEdit
Save
Close
Now i have to do this for multiple cells in the grid.... so once it works fine... second time it is not entering values in the WpfEditBox when WpfWindow is open.
I execute code several times and it is working fine for one instance...
could you please help me out....
I have many other issues which i will post separately... thank you
HI,
Are these WPFComboBox's the XamComboBox and are they embeded in the XamDataGrid or the XamGrid.
Can you attach a representative application that I can use to test your issues out with?
Sincerely,
Matt
Developer Support Engineer
Please let me know if you need further assistance regarding this issue.
Matt Developer Support Engineer
Hi Matt
Sorry for not responding... i met with an accident last week... Back to Office now. I am investigating the application and I don't think there is another grid or tool embedded.
I can't get the sample application as well and as per policy no screenshot.... my bad luck.
I was told to change the Active Screen Capture level to none in QTP Options... I did that still facing the problem.
Sometimes QTP is selecting value from combobox.. its a combobox but there is a dropdown list with checkboxes in it comes up.
I will post my findings today again by EOD....
THank you for your help :)
-Subhash
I checked other Applications with other teams... had walkthrough with them and even automated one test case of their application by myself... and it was working fine. I asked what all patches and addin they have used. They said only WPF addin.
Now when I launched my application QTP froze and gave those exceptions.... Final conclusion we reached is to ask the development team that which version of WPF they have used and what all controls.
Because, my application look bit ancient in compare of those other applications which are working fine with QTP (in other team and projects).
Let me know if there any specific questions to be asked to development team apart from version of WPF and other controls.
Thank you Infragistics community for help and your time... I really appreciate that.
Thank you
This just came in....
"Our application rarely uses any standard WPF objects, we use Infragistics and Syncfusion WPF controls and which are highly customized for our needs.
So, not sure how we would be able to help."
That was the email reply i got from developer... Let me know if this helps.... I have sent an email to development team asking the version they used of Infragistics and Syncfusion.
I think after installing Syncfusion QTP might work fine... right now it is identifying all the objects however few objects has two names and application and QTP behave strange and freezes or crashes
Thanks
Hello Anshu,
Is the combo box called a XamComboEditor or a WpfComboBox in QTP? Can you tell me what version of QTP you have, what version of TestAdvantage you are using and what patches you have installed?
Can you provide an example of your script where it fails to recognize the control?
Hi Matt,
I am automating a WPF desktip based Application.It's recognizing all the component via the object repository.But when I run my script its not recognizing the combo box without highligting.I need to highlight the object then it starts executing.
Can you please suggest about this behavior or the work around of it.
Cheers
Anshu
Sincerely, Matt Developer Support Engineer
In order to recognize Syncfusion controls you will need to install there QTP product.
Please let me know how this works out.