Yes, the Coded UI Test (CUIT) in the TreeViewAdv can be used for testing purposes.
The Essential Tools TreeViewAdv control has basic level of Coded UI automation testing support. The Coded UI functionality can be tested from VS2010 or above with Ultimate or Premium version. TreeViewAdv supports Coded UI from Syncfusion Essential Studio version v188.8.131.52. Refer to the following steps to provide Coded UI support in the TreeViewAdv.
Create a Coded UI test project:
CUIT should contain the coded UI test project. If your application does not contain the CUIT project, create a new project. In the Solution Explorer, on the shortcut menu of the solution, choose Add, New Project, and then select either Visual Basic or Visual C#. Next, choose Test, Coded UI Test.
In case, the Coded UI test project does not appear on Visual Studio, you may be using the version that does not support CUIT. To create CUIT, you need to use Visual Studio Enterprise edition.
Figure 1: Creating Test Application.
Adding Coded UI test file:
The CUIT file is generated automatically, when creating the Coded UI test project. To add another test file, choose shortcut menu of the CUIT project, point to add, and then choose Coded UI test.
Figure 2: Adding “Coded UI Test” file to the test project
Figure 3: Recording option to generate code for Coded UI Test
Figure 4: Start recording from UIMap
Figure 5: Pause recording from UIMap
Figure 6: Recorded steps shown in UIMap
Figure 7: Generate code in UI Map'
Figure 8: Generate code window for UI Map
Testing application with the Generated Coded UI Tests:
You can test the application with the generated CUIT method.
The following code example demonstrates the same.
Figure 9: Opening Coded UI Test Builder
Figure 10: Coded UI Map
Figure 11: Assert window for TreeViewAdv in Coded UI Test Builder
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|