-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Helper methods missing for DataGridView test in UFT QTP with .NET 8.0 and .NET 9.0 #13015
Comments
@vijayarasan Thank you for your feedback. We have tested the three projects you provided in Visual Studio with the same results. Are these three methods (SelectColumn, SelectCell, SetCellData) specific to QTP? Is the QTP tool the only way to reproduce the problem? If so, can you provide more information such as where to download QTP and steps to reproduce the problem? |
@Philip-Wang01, Thank you for your reply. Yes, these methods are generated in the Action file of UFT/QTP. You can download the Micro Focus UFT software setup from the link below. QTP Software: Free Trial of OpenText Functional Testing After the installation, you can create the test and run the executable generated from the previously attached sample. Replication Procedure: Step 1: Click the record button to capture the test case. Step 2: Select any one of the cells in the DataGridView. Step 3: Select any one of the column headers in the DataGridView. Step 4: Enter the value in any one of the cells. Step 5: Stop the recording. Observed Behavior: Expected Behavior: I have prepared a test video demo, which you can find in the attachment below. .Net Framework 4.6.2 : Framework4.6.2TestVideoDemo.zip .NET80: NET80TestVideoDemo.zip |
It has been verified that the DataGridView control generates different code in UFT Recording .NET 8.0 than .NET Framwork 4.6.2, and crashes straight away in .NET 9.0. This is consistent with the phenomenon described by the customer. The DataGridView control does not throw an exception if UFT is not used. UFT recorder result in .NET Framework 4.6.2: test462.mp4UFT recorder result in .NET 8.0: test80.mp4 |
@Philip-Wang01, Thanks for the update. Yes, the UFT Recording for .NET 8.0 and .NET Framework 4.6.2 are both different. I need to automate the .NET 8.0 application in a manner similar to how I did with .NET Framework 4.6.2. I require support for automating the desktop application created in .NET 8.0. Is it possible to provide support similar to that for .NET Framework 4.6.2? |
@vijayarasan - I can't find helper methods you mention in our documentation for the WinForms DataGridView class https://learn.microsoft.com/dotnet/api/system.Windows.forms.Datagridview?view=netframework-4.6.2 In what assembly and namespace are these helper methods defined on .NET Framework4.6.2? |
I'm encountering issues while testing the DataGridView WinForms control using UFT QTP software across different .NET versions. Specifically:
In .NET 8.0:
The helper methods that were previously available in .NET Framework 4.6.2 are not detected. I've attached a document comparing the helper methods between .NET versions (.Net Framework 4.6.2, NET80 and NET90) for reference.
Document: QTP Test Details.zip
In .NET 9.0:
When clicking on the DataGridView control in the desktop application, the window unexpectedly disappears.
Could you please investigate these problems and provide guidance on:
Any insights or potential solutions would be greatly appreciated. Thank you for your time and assistance.
I've attached a sample project demonstrating these issues for your review.
Samples:
.Net Framework 4.6.2 Demo: .NetFrameWork4.6.2SampleDemo.zip
.NET80 Demo: DatGridViewDemoNET80.zip
.NET90 Demo: DataGridViewDemoNET90.zip
Note: The QTP test is functioning properly with the .NET Framework 4.6.2. However, I am unable to test the .NET 8.0 and .NET 9.0 WinForms desktop applications. Can you suggest a way to achieve QTP testing for .NET 8.0 and .NET 9.0, similar to how it works with the .NET Framework 4.6.2?
The text was updated successfully, but these errors were encountered: