AutomatedQA: Award-winning tools for software testing and quality assurance

Home » Products » TestComplete » Working With Grids in TestComplete

Working With Grids in TestComplete

TestComplete provides full-scale support for the most popular third-party grid controls:

Microsoft DataGridView
Microsoft DataGrid .NET
Microsoft PropertyGrid
Developer Express XtraGrid
Developer Express QuantumGrid
Infragistics WinGrid
Syncfusion Essential Grid
Borland TDBGrid

TestComplete can recognize these controls during test recording and playback, and work with them via special program objects. These objects extend the “native” functionality of grid controls, which are also visible to TestComplete, with a number of supplementary properties and methods:

DataGridView control in the Object Browser

These extended methods and properties let you perform a vast amount of operations over grids, in addition to the “standard” actions such as keyboard input and coordinate clicks:

Get and set cell values.
Simulate clicks and double clicks on individual cells, for example, to enable the edit mode or invoke the context menu.
Simulate clicks on column headers, for example, to sort data.
Simulate clicks on row indicators, for example, to select multiple rows.
Expand and collapse rows.
Access and work with child tables in multi-level grids.
Iterate through rows, columns and cells.
And much more...

This way, you can easily access individual grid cells, modify their values and test the grid’s feedback. At the end of the test, TestComplete generates a detailed log of all performed actions:

Test Log

You can also take advantage of other features in TestComplete when testing grid controls. For example, during the test run, you can create checkpoints for verifying data displayed in the grid control against a baseline copy.

Copyright © 1999-2009, AutomatedQA, Corp. All Rights Reserved.
Home | Legal | About | Contact | Site Map | Print