Manage workspaces in Microsoft Playwright Testing Preview

In this article, you create, view, and delete Microsoft Playwright Testing Preview workspaces. You can access and manage a workspace in the Azure portal or in the Playwright portal.

The following table lists the differences in functionality, based on how you access Microsoft Playwright Testing:

Functionality Azure portal Playwright portal Learn more
Create a workspace Yes Yes Quickstart: run Playwright test in the cloud
View the list of workspaces Yes Yes View all workspaces
View the workspace activity log No Yes Display activity log
Delete a workspace Yes Yes Delete a workspace
Configure region affinity Yes No Configure region affinity
Grant or revoke access to a workspace Yes No Manage workspace access

Important

Microsoft Playwright Testing is currently in preview. For legal terms that apply to Azure features that are in beta, in preview, or otherwise not yet released into general availability, see the Supplemental Terms of Use for Microsoft Azure Previews.

Prerequisites

Create a workspace

To get started with running your Playwright tests on cloud browsers, you first create a Microsoft Playwright Testing workspace. You can create a workspace in either the Azure portal or the Playwright portal.

When you create a workspace in the Playwright portal, the service creates a new resource group and a Microsoft Playwright Testing Azure resource in your Azure subscription. The name of the new resource group is based on the workspace name.

  1. Sign in to the Playwright portal with your Azure account.

  2. If you already have a workspace, select an existing workspace, and move to the next step.

    Tip

    If you have multiple workspaces, you can switch to another workspace by selecting the workspace name at the top of the page, and then select Manage all workspaces.

  3. If you don't have a workspace yet, select + New workspace, and then provide the following information:

    Field Description
    Workspace name Enter a unique name to identify your workspace.
    The name can only consist of alphanumerical characters, and have a length between 3 and 64 characters.
    Azure subscription Select the Azure subscription that you want to use for this Microsoft Playwright Testing workspace.
    Region Select a geographic location to host your workspace.
    This is the location where the test run data is stored for the workspace.

    Screenshot that shows the 'Create workspace' page in the Playwright portal.

  4. Select Create workspace to create the workspace in your subscription.

    During the workspace creation, a new resource group and a Microsoft Playwright Testing Azure resource are created in your Azure subscription.

Display the list of workspaces

To get the list of Playwright workspaces that you have access to:

  1. Sign in to the Playwright portal with your Azure account.

  2. Select your current workspace in the top of the screen, and then select Manage all workspaces.

    Screenshot that shows the Playwright portal, highlighting the Manage all workspaces menu item.

  3. On the Workspaces page, you can now see all the workspaces that you have access to.

    The page shows a card for each of the workspaces in the currently selected Azure subscription. You can switch to another subscription by selecting a subscription from the list.

    Screenshot that shows the list of all workspaces in the Playwright portal.

    Tip

    Notice that the workspace card indicates if the workspace is included in a free trial.

  4. Select a workspace to view the workspace details and activity log.

Display the workspace activity log

You can view the list of test runs for the workspace in the Playwright portal. Microsoft Playwright Testing only stores test run metadata, and doesn't store the test code, test results, trace files, or other artifacts.

The workspace activity log lists for each test run the following details:

  • Total test duration of the test suite
  • Maximum number of parallel browsers
  • Total time across all parallel browsers. This is the time that you're billed for the test run.

To view the list of test runs in the Playwright portal:

  1. Sign in to the Playwright portal with your Azure account.

  2. Optionally, switch to another workspace by selecting your current workspace in the top of the screen, and then select Manage all workspaces.

  3. On the workspace home page, you can view the workspace activity log.

    Screenshot that shows the activity log for a workspace in the Playwright Testing portal.

Delete a workspace

To delete a Playwright workspace:

  1. Sign in to the Playwright portal with your Azure account.

  2. Select your current workspace in the top of the screen, and then select Manage all workspaces.

  3. On the Workspaces page, select the ellipsis (...) next to your workspace, and then select Delete workspace.

    Screenshot that shows the Workspaces page in the Playwright portal, highlighting the Delete workspace menu item.

  4. On the Delete Workspace page, select Delete to confirm the deletion of the workspace.

    Warning

    Deleting a workspace is an irreversible action. The workspace and the activity log can't be recovered.