TestComplete samples (both built-in and additional) are located in the <Users>\Public\Public Documents\TestComplete 14 Samples folder.
Some file managers display the Public Documents folder as Documents.
TestComplete has the Developer Express Control Support plugin that expands TestComplete abilities to interact with Developer Express XtraGrid controls from scripts. If this plugin is installed and enabled, TestComplete extends the XtraGrid control functionality with methods, properties and actions of the DevExpressXtraGrid
object. These supplementary members let you perform specific operations over the XtraGrid control, for example, simulate clicks on grid cells, obtains and set values in grid cells, expand and collapse rows and so on.
Since the XtraGrid is a .NET control and can be used within .NET applications, which are always “open” to TestComplete, the internal methods and properties of the XtraGrid control are also visible to TestComplete. This “openness” means that you can use the XtraGrid’s “native” methods and properties to perform the needed actions as well.
Finally, you can work with the XtraGrid control as a black-box application window, that is, you can simulate various mouse actions and keystrokes, record and play back low-level procedures, and so on. For more information, see Simulating User Actions.
In order for TestComplete to have access to internal methods and properties of the XtraGrid control and to extend the XtraGrid control functionality, both the .NET Application Support and Developer Express Control Support plugins must be installed and enabled. |
The topics of this section contain information about operations commonly performed during testing applications with the XtraGrid control. They also contain numerous sample routines that you can use in your scripts with minimum changes. The sample scripts in these topics work with the sample applications that are shipped with the XtraGrid Suite.
In This Section
Accessing Views in Developer Express XtraGrid
Searching for Records in Developer Express XtraGrid
Selecting Cells in Developer Express XtraGrid
Getting the Focused Row, Column and Cell in Developer Express XtraGrid
Activating and Closing In-place Editors in Developer Express XtraGrid
Obtaining and Setting Cell Values in Developer Express XtraGrid
Working With Specific In-place Editors in Developer Express XtraGrid
Copying and Pasting Cell Values in Developer Express XtraGrid
Selecting Multiple Rows and Cards in Developer Express XtraGrid
Obtaining Selected Records in Developer Express XtraGrid
Iterating Through Rows and Cards in Developer Express XtraGrid
Sorting Data in Developer Express XtraGrid
Expanding and Collapsing Rows in Developer Express XtraGrid
Related Topics of Interest
Samples
TestComplete includes a sample project that demonstrates how you can work with Developer Express XtraGrid controls from scripts:
<TestComplete Samples>\Desktop\Working With Grids\DevExpress XtraGrid
Note: | If you do not have the sample, download the TestComplete Samples installation package from the support.smartbear.com/downloads/testcomplete/samples/; page of our website and run it. |
The script requires the sample application which is part of the Developer Express XtraGrid trial download package that is available at http://www.devexpress.com/Downloads/NET/DXperience/index.xml. The script assumes that by default, the application under test has the following path: <Developer Express Demos>\Components\WinForms\XtraGrid\Bin\GridMainDemo.exe. Before running the script, make sure that the TestComplete Tested Applications project item contains a valid link to the application to be tested (GridMainDemo.exe).
See Also
Developer Express XtraGrid Support
Working With Grids
Supported Developer Express Controls
Testing .NET Applications