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 recorder 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 Recording Toolbar to the browser selected for test recording. Let's check what options provides the Recording Toolbar.
The 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 Element 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.
- Page Navigation - the Recording Toolbar has its own buttons to navigate through the browsed pages so far or to connect to a new page. Using these utilities will also add steps to the selected test.
- DOM Explorer - the DOM Explorer displays the application's DOM in a tree format and you can explore all its elements at one time.
- Pause Auto-refresh for DOM Tree - the DOM tree gets auto-refreshed by any change in the page. For certain pages with dynamic content, it is useful to be able to pause the auto-refresh.
- Step Builder - the Recording Toolbar allows you to choose among different type of steps, depending on the selected element from the DOM Explorer, and directly add these to the selected test.