Once you have successfully created a project in Test Studio, you can start with recording the automation tests against the application under test. In this article you can find useful hints on the below topics.
For your first test in this project add a new Web test.
Go to the Project ribbon and click on the Add Web Test button.
This automatically adds a web test in the Project Explorer and the test item is in edit mode, which allows you to enter its meaningful name.
Other test types can be selected from the down arrow of the Add Web Test button.
Use the links below to find more information on all test types you can add in a Test Studio Web&Desktop project:
Test Studio allows you to easily record the steps of an automated scenario with its click-and-record functionality. The below steps describes how to trigger a recording session and start recording the steps of your test scenario.
Open the newly created test with a double-click on it in the Project Explorer. In the opened web test, you can click the Record button in the Tests ribbon or press CTRL+R to trigger the recording session.
In the Recording dialog type the URL you want to navigate to, select Internet Explorer (or any of the other browsers supported for recording) and press Enter or click the Record button. You can choose a URL from your recently used URLs.
Note! Selecting the recording browser will be skipped, if you have already set a preferred browser from the Test ribbon.
Once the selected browser navigates to the desired page, the Compact Recording Toolbar gets attached to it. A navigate step is recorded in the Steps pane and you can continue recording the next actions as per the required scenario.
Note! While recording a test, do not start another instance of the same browser until the recording is finished!
Lets navigate to the Test Studio documentation from the Telerik page. Click on DOCS & SUPPORT button, click on Test Studio link and on the next page click on the Documentation link. All of those actions are added as steps in the test.
To exit the recording session, close the browser with the attached Recording toolbar.
Following the above steps, you noticed that starting the recording session attached the Test Studio Compact Recording Toolbar to the browser selected for test recording. Let's check what options provides the Compact Recording Toolbar.
The Compact Recording Toolbar is a useful tool, which allows you to extend the recording experience and add specific steps in between recording actions against the application.
- Highlight Element - one of the most useful features is the Hover Over Highlighting and the menu with Quick steps to add.
- Recording State - there is a Pause button in case you need to perform any actions against the application, but don't need to record these.
- Advanced Recording Tools - open the Advanced Recording Tools window to explore the DOM tree of the application and add more steps and verifications.
- Rotate Compact Recording Toolbar - change the orientation of the Compact Recording Toolbar between vertical and horizontal. You can move it anywhere in the browser/WPF application.
- Link to Documentation - follow the link to our documentation specifically for the recording process.