

Using specific properties and methods provided by these objects, you can interact with the needed items from tests. In addition to properties and methods of clickable items, these program objects contains properties and methods specific to checkable items, like checkable buttons, checkable menu items and so on. They are associated with clickable items, like buttons and menu items.Ĭheckable item (the CheckItem object). In addition to common properties and methods, these program objects contain a number of click actions. Note For error icons to be displayed correctly, the DXErrorProvider.ContainerControl property must be set to the control that contains bound editors. They are associated with those items for which specific actions are of no importance (like labels, for example).Ĭlickable item (the ClickItem object). The DXErrorProvider will monitor the data source for errors, and if errors are associated with specific properties, will display error icons within the corresponding bound editors. These program objects contain only those properties and methods that are common for all XtraBars items. Now if I use the After project I sent you, the problem is automatically resolved when the designer generated code is regenerated. I downloaded an interim build of the DevExpress components and it seems to have been resolved. Note that TestComplete analyzes the type of an item and associates it with one of three available object types: Gets a list of the controls with which errors of the specified type are associated. After your results (and those of Vladimir) it looked like it was not a problem with VS, but a DevExpress problem.

When working with items of supported XtraBars controls from tests, you can get access to their internal properties and methods via special program objects provided by TestComplete. Using successive addressing, you can refer to any control item. To simplify addressing certain items, TestComplete treats XtraBars controls as a tree-like structure. Each container component can contain different items that in general can be of different types (including other containers). Note that XtraBars controls are complex controls that consist of various items, including containers. MyErrorProvider.SetError("DistanceTextBox", "This field is required") But it seems that by the time TextBox_validating executes it's too late and we get, anyway, the generic message: Input string is not in correct formatĬan you please suggest a solution either:ġ- How to intercept the framework before it displays the generic warning: Input string is not in correct format so that I display the message I want.Ģ- How to go and change that generic CSLA message which seems to apply when the user does not enter a value in a TextBox which is bound to an INTEGER property.TestComplete provides specific program objects that allow you to work with XtraBars controls and their items. I tried going to my textbox validating event and setting this : However the client insists that we display the message : This field is required.

Set the Icon for errorprovider1 (warning. I have also created a button but there is no use for it (in the example).

Set text boxes are named txtname and txtage. When the user does not include an input in the textbox distance, CSLA displays for me a warning red icon with the generic error: Input String Not in Correct format. Place two text boxes (for getting name and age) and three ErrorProvider controls from the toolbox. MasterValueBindingSource.DataSource = MyMasterValue MasterValueBindingSource has its datasource set to my MasterValue Instance. I also have an error provider on my form whose datasource is MasterValueBindingSource. If we give some data and others fields are still empty then it looks like: 4. If all the fields are empty then it shows like this: 3. I have a textbox " DistanceTextBox" bound to an property Distance of type INTEGER in my business object MasterValue. If there is any empty field and it requires data then after clicking it blinks and user gets better attention. Tutus posted on Tuesday, September 22, 2009
