TestComplete samples (both built-in and additional) are located in the <Users>\Public\Public Documents\TestComplete 12 Samples folder.
Some file managers display the Public Documents folder as Documents.
TestComplete has the Infragistics Control Support plugin that expands TestComplete abilities to interact with Infragistics UltraGrid controls from scripts. If this plugin is installed and enabled, TestComplete extends the UltraGrid control functionality with methods, properties and actions of the InfragisticsUltraGrid
object. These supplementary members let you perform specific operations over the UltraGrid control, for example, simulate clicks on grid cells, obtains and set values in grid cells, expand and collapse rows and so on.
Since UltraGrid can only be used within .NET applications, which are always “open” to TestComplete, the internal properties, fields and methods of the UltraGrid control are also visible to TestComplete. This “openness” means that you can use UltraGrid’s “native” methods and properties to perform desired actions, for example, to get a grid cell’s value.
In order for TestComplete to have access to internal methods and properties of the UltraGrid control and to extend the UltraGrid functionality, both the .NET Application Support and Infragistics Control Support plugins must be installed and enabled. |
The topics of this section provide detailed information about performing various operations with the UltraGrid control. They also contain numerous sample routines that you can use in your scripts with minimum changes (if any).
In This Section
Accessing Grid Elements in Infragistics UltraGrid
Searching for Records in Infragistics UltraGrid
Selecting Cells in Infragistics UltraGrid
Obtaining and Setting Cell Values in Infragistics UltraGrid
Copying and Pasting Cell Values in Infragistics UltraGrid
Working With Specific In-place Editors in Infragistics UltraGrid
Selecting Multiple Rows in Infragistics UltraGrid
Obtaining Selected Elements in Infragistics UltraGrid
Iterating Through Rows in Infragistics UltraGrid
Sorting Data in Infragistics UltraGrid
Expanding and Collapsing Rows in Infragistics UltraGrid
Related Topics of Interest
Samples
TestComplete includes a sample project that demonstrates how you can work with Infragistics UltraGrid controls from scripts:
<TestComplete Samples>\Desktop\Working With Grids\Infragistics WinGrid
Note: | If you do not have the sample, download the TestComplete Samples installation package from the https://support.smartbear.com/downloads/testcomplete/samples/ page of our website and run it. |
The script requires the sample application which is part of the Infragistics NetAdvantage trial download package that is available at http://www.infragistics.com/Downloads/default.aspx. The script assumes that by default, the application under test has the following path: <Infragistics NetAdvantage>\Windows Forms\Samples\WinGrid\Cs\SamplesExplorer\bin\SamplesExplorer.exe. Before running the script, make sure that the TestComplete Tested Applications project item contains a valid link to the application to be tested (SamplesExplorer.exe).
See Also
Infragistics UltraGrid Support
Working With Grids
Supported Infragistics Controls
About Open Applications