Skip to content

Commit 659968e

Browse files
docs(testing): update test studio translators article
1 parent f9aef91 commit 659968e

5 files changed

+37
-0
lines changed
53.6 KB
Loading
37.8 KB
Loading
72.8 KB
Loading
30.6 KB
Loading

testing-with-test-studio.md

+37
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,40 @@ position: 250
99
# Testing With Test Studio
1010

1111
[Telerik Test Studio](https://docs.telerik.com/teststudio/) provides [Translators](https://docs.telerik.com/teststudio/general-information/test-recording/translators) for most of the components in the Telerik UI for Blazor suite. You can use them to record UI tests out of the box for your Blazor applications without the need to code.
12+
13+
Translators are extensions that expose internal elements and properties of Telerik controls for automation and verification by Test Studio. First, the translator displays the different elements of the control using Test Studio Hover-Over Highlighting. Selecting one of these elements allows automating against that element from the Elements Menu and Elements Explorer. These tools will expose special properties and actions of these elements of the control, so that tests can take full advantage of the power of Telerik controls.
14+
15+
Test Studio includes translators for the following Telerik UI Blazor components: TreeView, TimePicker, Pager, NumericTextBox, List, Grid, DropdownList, DatePicker, DateInput, Button. The same can be switched on/off from the Project Setting [menu](https://docs.telerik.com/teststudio/features/project-settings/translators):
16+
17+
![test studio blazor translators list](images/test-studio-translators-list.png)
18+
19+
Test Studio translators would always be up-to-date as Telerik is committed to maintaining them in parallel with Telerik controls changes
20+
21+
Test Studio was built with extensibility in mind, so new translators can be easily plugged in for more UI controls.
22+
23+
24+
## Using Telerik Blazor UI Translators
25+
26+
You need to click `Highlight Element` while in the Test Studio recorder and upon mouse hover on the a given control, first a specific purple color highlight border will appear and then the recording toolbar will show up to indicate more specific translator in progressive order.
27+
The translators for a Grid cell are shown as per the example below, the menu items are:
28+
29+
* TelerikBlazorGridDataCell
30+
* TelerikBlazorGridDataItem
31+
* HTMLTable
32+
* TelerikBlazorGrid
33+
34+
![test-studio-grid-translator-options](images/test-studio-grid-translator.png)
35+
36+
37+
As you mouse over the items in the menu, you can highlight a corresponding element. If you click [Quick Steps](https://docs.telerik.com/teststudio/features/verifications/quick-verification) option to get common tasks being displayed for this element. In the example below, you can see verification, wait and extract tasks for the highlighted Telerik UI for Blazor DropdownList:
38+
39+
![test-studio-dropdownlist-translator](images/test-studio-dropdownlist-translator.png)
40+
41+
42+
## The Translators Advantage
43+
44+
Thanks to the Translators specific variables and tasks for a given UI component, you would save significant amount of time when automating complex scenarios and building the respective verifications.
45+
An example is performing against properties like if the Telerik UI for Blazor Grid is grouped by a given criterion or not:
46+
47+
![test-studio-sample-grid-verification](images/test-studio-sample-grid-verification.png)
48+

0 commit comments

Comments
 (0)