Home Forums WPF controls Xceed DataGrid for WPF QTP Support – automated testing

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #25733 |

    I would like to add a request to enable the Xceed datagrid for WPF to support QTP. I must assume that other users of the grid would like to have this, as QTP is nearly a de facto standard for automated testing tools. We’ like to use QTP to automate all of our tests involving the grid but we cannot do that until the support is there. Thanks.

    Marty

    Imported from legacy forums. Posted by Marty (had 8213 views)

    Odi [Xceed]
    Spectator
    Post count: 426

    Thanks for the request. I can’t make any promises at the moment, but QTP support is being considered. It definitely isn’t scheduled for any of the Q1 2008 releases, though.

    Imported from legacy forums. Posted by Odi [Xceed] (had 3483 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi

    I want to know if the XCeed Grid for WPF add-in for QTP 9.5 is developed and ready to be used

    and If yes, where I can find it

    Thanks

    Hassan

    Imported from legacy forums. Posted by hassan (had 1460 views)

    Xceed Support
    Member
    Post count: 5658

    There are issues with our support of QTP, and we’re setting up a relationship with HP in order to work them out. Therefore, unfortunately, neither the current version of Xceed DataGrid for WPF nor the upcoming 3.3 version provide QTP support.

    Imported from legacy forums. Posted by Jenny [Xceed] (had 1251 views)

    User (Old forums)
    Member
    Post count: 23064

    Is there an update for this? We certainly need QTP support. Thanks.

    Imported from legacy forums. Posted by Marty (had 724 views)

    Odi [Xceed]
    Spectator
    Post count: 426

    No update. We’re stalled, unable to find a solution to the issues we need to address. We’ve got things working with White and another automated testing tool, though.

    Imported from legacy forums. Posted by Odi [Xceed] (had 1621 views)

    User (Old forums)
    Member
    Post count: 23064

    Looks like we are all set with 3.6. Thanks.

    Imported from legacy forums. Posted by Marty (had 1082 views)

    User (Old forums)
    Member
    Post count: 23064

    Hello

    Can you please tell me what do to make QTP recognize Xceed WPF grid 3.6

    is there any additional set-up?

     

    thanks

    Imported from legacy forums. Posted by hassan (had 1879 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi,

    My Application uses Xceed WPF Data Grid 4.0.
    But QTP dosent recognise the WPF data Grid.

    I read that Xceed WPF data Grid3.6 supports QTP.

    Wanted to know what how do to make QTP recognize Xceed WPF?

    Is there any additional set-up?
    My Application uses Xceed WPF Data Grid 4.0.
    But QTP dosent recognise the WPF data Grid

     

    Imported from legacy forums. Posted by Priti (had 703 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi,

    Wanted to know if there are any updates on this?

    My Application uses Xceed WPF Data Grid 4.0.
    But QTP dosent recognise the WPF data Grid.

    I read that Xceed WPF data Grid3.6 supports QTP.

    Wanted to know what how do to make QTP recognize Xceed WPF?

    Is there any additional set-up?
    My Application uses Xceed WPF Data Grid 4.0.
    But QTP dosent recognise the WPF data Grid

     Thanks,

    Priti

    Imported from legacy forums. Posted by Priti (had 640 views)

    Xceed Support
    Member
    Post count: 5658

    It is true that the DataGrid has no specific type in QTP. 
    However, we do have a pending feature request to make the grid more integrated with QTP.


    You will be informed through this Forum post once the feature has been implemented. 

    For now, here are some examples of how to use QTP with our grid:

    ‘Get the title of a column
    ‘Index are 0 to Count-1
    ColumnTitle = WpfWindow(“XceedGridTest”).WpfObject(“xGrid”).Object.VisibleColumns.Item( 0 ).Title
    Print ColumnTitle
    ‘or
    WindowName = WpfWindow(“XceedGridTest”).AutomationElement.Current.AutomationId
    GridName = WpfWindow(“XceedGridTest”).WpfObject(“xGrid”).AutomationElement.Current.AutomationId
    ColumnName = WpfWindow(“XceedGridTest”).WpfObject(“xGrid”).Object.VisibleColumns.Item( 0 ).FieldName
    Set columnManagerCellDesc = Description.Create()
    columnManagerCellDesc( “devnamepath” ).Value = “Cell_” & ColumnName & “;FixedHeader_1;” & GridName & “;” & WindowName & “;”
    Set columnManagerCell = WpfWindow(“XceedGridTest”).WpfObject( columnManagerCellDesc )
    print columnManagerCell.GetVisibleText()

    ‘Sort a column simulating a user clicked on it
    WindowName = WpfWindow(“XceedGridTest”).AutomationElement.Current.AutomationId
    GridName = WpfWindow(“XceedGridTest”).WpfObject(“xGrid”).AutomationElement.Current.AutomationId
    ColumnName = WpfWindow(“XceedGridTest”).WpfObject(“xGrid”).Object.VisibleColumns.Item( 0 ).FieldName
    Set columnManagerCellDesc = Description.Create()
    columnManagerCellDesc( “devnamepath” ).Value = “Cell_” & ColumnName & “;FixedHeader_1;” & GridName & “;” & WindowName & “;”
    Set columnManagerCell = WpfWindow(“XceedGridTest”).WpfObject( columnManagerCellDesc )

    columnManagerCell.AutomationPattern( Invoke ).Invoke()
    ‘or
    columnManagerCell.Click

    ‘Column header will not always be in FixedHeader_1, it depend where the column manager row is added in the grid.

    ‘ Make the row current and selected
    WpfWindow(“Window1”).WpfObject(“grid”).Select “PersonFN3”

    ‘Change current column to last name
    Set ColumnLastName = WpfWindow(“Window1”).WpfObject(“grid”).Object.Columns.Item( “LastName” )
    Set WpfWindow(“Window1”).WpfObject(“grid”).Object.CurrentColumn = ColumnLastName

    Set CurrentRow = WpfWindow(“Window1”).WpfObject(“grid”).Object.GetContainerFromItem( WpfWindow(“Window1”).WpfObject(“grid”).Object.CurrentItem )

    ‘Start edition on the current cell
    Set newCurrentCell = CurrentRow.Cells.Item( WpfWindow(“Window1”).WpfObject(“grid”).Object.CurrentColumn.FieldName )
    newCurrentCell.BeginEdit()
    ‘Type value in
    WpfWindow(“Window1”).Type “Test”

    ‘Force edition on FirstName
    Set newCellToEdit =  CurrentRow.Cells.Item( “FirstName” )
    newCellToEdit.BeginEdit()
    ‘Type value in
    WpfWindow(“Window1”).Type “Test2”
    ‘Change to next cell
    WpfWindow(“Window1”).Type micTab

    ‘Enter edition of the new cell
    Set newCurrentCell = CurrentRow.Cells.Item( WpfWindow(“Window1”).WpfObject(“grid”).Object.CurrentColumn.FieldName )
    newCurrentCell.BeginEdit()
    ‘Type value in
    WpfWindow(“Window1”).Type “Test3”
    ‘Commit edition of the row
    CurrentRow.EndEdit()

    ‘Here is a code snipet to get the CellValue based on RowIndex and ColumnIndex
    rowIndex = 0
    columnIndex = 0
    set cell = WpfWindow(“Window1”).WpfObject(“grid”).AutomationPattern( “Grid” ).GetItem( rowIndex, columnIndex )
    set supportedPatterns = cell.GetSupportedPatterns()

    set valuePattern = nothing
    For i = 0 to supportedPatterns.Length – 1
        set tempPatern =  supportedPatterns.GetValue( i )
        If  tempPatern.ProgrammaticName = “ValuePatternIdentifiers.Pattern” Then
            set valuePattern = tempPatern
            Exit for
        End If
    Next

    cellValue = cell.GetCurrentPattern(valuePattern).Current.Value
    print cellValue

    Imported from legacy forums. Posted by Michel [Xceed] (had 376 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi,

     Thanks for your reply.

    I am not able to select a row in my application using the code:

    ‘ Make the row current and selected
    WpfWindow(“Window1”).WpfObject(“grid”).Select “PersonFN3”

    It gives me error “Object Dosent support  this property or method”

    Is there any better way to select row in a grid ( e.g using row values etc) .

    Also, while trying to edit data in a gird cell, using code below gives error “Object required ‘[String “{null}”]”

    ‘Force edition on FirstName
    Set newCellToEdit =  CurrentRow.Cells.Item( “FirstName” )
    newCellToEdit.BeginEdit()
    ‘Type value in
    WpfWindow(“Window1”).Type “Test2”
    ‘Change to next cell
    WpfWindow(“Window1”).Type micTab

     

    Also, any idea how we can verify the colour of a row when its selected?

     

    Imported from legacy forums. Posted by Priti (had 1038 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi

    Currently in one of our application we are using your product.

    Have you guys implemeted QTP feature?

    Please do let me know .

     

    Thanks

    Sridhar

    sridhar.sunkaraneni@banfield.net

     

    Imported from legacy forums. Posted by Sridhar (had 1089 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi,

    We have an application that contains Xceed WPF 4.2 Data grid, which we are trying to automate with QTP.

    From this community discussions, I understand that QTP automation is supported. Can anyone please let me know whether any add ins should be installed in order to make QTP recognize the Xceed controls ? Please share the details on how to make QTP work with Xceed WPF controls.

    Thank you very much in advance.

    Imported from legacy forums. Posted by Prathiba (had 796 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Prathiba,

    All you need to get started is posted on this page in the online documentation http://doc.xceedsoft.com/products/XceedWpfDataGrid/UI_Automation.html. There are no add-ins required.

    Imported from legacy forums. Posted by Marc [Xceed] (had 1710 views)

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.