# Create and Record a Web Test (VS plugin)

The feature of Test Studio to record tests by capturing your actions against the tested application is also available in the context of the Visual Studio project.

In this article you can find how to add and record a new web test in the Visual Studio plugin project for Test Studio.

## Create a Web Test

Each newly created Test Studio project in Visual Studio contains one empty web test. Double click the test file (WebTest1.tstest) in the **Solution Explorer** to open it. Right click on it to choose the option to rename it.

![Open web test](https://www.telerik.com/teststudio/documentation/assets/0363d0c6ca5979bad04f9914d9b6b493/open-test.png)

When you need to add new tests in the project, click with the right mouse button on the project name in **Solution Explorer**, select the **Add...** option and choose between **Test Studio Web Test...** or **Test Studio WPF Test...**.

![Add new test](https://www.telerik.com/teststudio/documentation/assets/75227ad58d4ab41ad547d3cbb71256b2/add-new-test.png)

The chosen item is selected in the list of items and you can enter name for the test. Then click the **Add** button to insert it in the project. To open the test, double click on its name in the Solution Explorer.

![Open new test](https://www.telerik.com/teststudio/documentation/assets/0581c2296b48fede5bc6e21a58f83e80/open-new-test.png)

## Record Steps in a Web Test

The **Record** button is in the test toolbar when a test is opened in the project. Click the button to initiate a recording session.

![Record button in the test toolbar](https://www.telerik.com/teststudio/documentation/assets/d1ab0d543652f53ecf4ee1a7b107779d/record-button.png)

The **Recording** dialog pops up and you can enter the URL of the page you test and select which browser to use for this recording session. In the **Recent URLs** section you can find and  select the URls used in the latest recording sessions.

![Select url and browser](https://www.telerik.com/teststudio/documentation/assets/6610bc5360339c2db87c827d8b0ae6f6/enter-url.png)

Click the **Record** button to launch the browser in recording mode. The selected browser starts and navigates to the listed URL. Once the page is completely loaded, the <a href="/features/recorder/compact-recording-toolbar" target="_blank">**Test Studio Recorder Toolbar**</a> gets attached to the browser instance and you can <a href="/automated-tests/recording/overview#how-to-add-steps-in-the-test" target="_blank">add the steps</a> for the automation scenario.

![Browser with attached recorder](https://www.telerik.com/teststudio/documentation/assets/5b7ed2d1201f8ffef901411638b24869/fig6.png)

To **stop the recording session** close the browser.

## Execute the Recorded Steps

The <a href="/automated-tests/test-execution/quick-execution" target="_blank">**Quick Execution** options</a> from Test Studio project are also available in the context of the Visual Studio project. The **Execute** button is in the test toolbar when a test is opened in the project and is enabled when the test has at least one step to execute.

![Execute test](https://www.telerik.com/teststudio/documentation/assets/0d7a1bc40cadda740318839428aed814/execute-test.png)

If you want to use the Visual Studio Test Explorer to execute the Test Studio tests, check <a href="/automated-tests/vs-plugin/vs-test-explorer" target="_blank">this topic</a>.
