You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**Workspace Name**| A unique name to identify your workspace.<BR>The name can't contain special characters or whitespace. |
45
-
|**Azure Subscription**| Select an Azure subscription where you want to create the workspace. |
46
-
|**Region**| This is where test run data will be stored for your workspace. |
41
+

42
+
43
+
- Enter **Playwright Workspaces** in the search box.
44
+
45
+
- Select the **Playwright Workspaces** card, and then select **Create**.
46
+
47
+

48
+
49
+
- Provide the following information to configure a new Playwright workspace:
50
+
51
+
| Field | Description |
52
+
|-------|-------------|
53
+
|**Subscription**| Select the Azure subscription that you want to use for this Playwright workspace. |
54
+
|**Resource group**| Select an existing resource group. Or select **Create new**, and then enter a unique name for the new resource group. |
55
+
|**Name**| Enter a unique name to identify your workspace.<br/>The name can only consist of alphanumerical characters, and have a length between 3 and 64 characters. |
56
+
|**Location**| Select a geographic location to host your workspace.<br/>This location also determines where the test execution results are stored. |
57
+
58
+
> [!NOTE]
59
+
> Optionally, you can configure more details on the **Tags** tab. Tags are name/value pairs that enable you to categorize resources and view consolidated billing by applying the same tag to multiple resources and resource groups.
60
+
61
+
- After you're finished configuring the resource, select **Review + Create**.
62
+
63
+
- Review all the configuration settings and select **Create** to start the deployment of the Playwright workspace.
64
+
65
+
- When the process has finished, a deployment success message appears.
66
+
67
+
- To view the new workspace, select **Go to resource**.
68
+
69
+

47
70
48
-
> [!NOTE]
49
-
> If you don't see this screen, select an existing workspace and go to the next section.
50
71
51
72
```
52
73
@@ -86,9 +107,9 @@ public class PlaywrightServiceMSTestSetup
86
107
87
108
### Obtain region endpoint
88
109
89
-
1. In the [Playwright portal](https://aka.ms/mpt/portal), copy the command under **Add region endpoint in your set up**.
110
+
1. In the [Playwright portal](https://portal.azure.com/), copy the command under **Add region endpoint in your set up**.
The endpoint URL corresponds to the workspace region. You might see a different endpoint URL in the Playwright portal, depending on the region you selected when creating the workspace.
94
115
@@ -112,7 +133,7 @@ Key concepts of the Azure Playwright MSTest SDK for .NET can be found [here](htt
112
133
113
134
Code samples for using this SDK can be found in the following locations
|**Workspace Name**| A unique name to identify your workspace.<BR>The name can't contain special characters or whitespace. |
45
-
|**Azure Subscription**| Select an Azure subscription where you want to create the workspace. |
46
-
|**Region**| This is where test run data will be stored for your workspace. |
41
+

42
+
43
+
- Enter **Playwright Workspaces** in the search box.
44
+
45
+
- Select the **Playwright Workspaces** card, and then select **Create**.
46
+
47
+

48
+
49
+
- Provide the following information to configure a new Playwright workspace:
50
+
51
+
| Field | Description |
52
+
|-------|-------------|
53
+
|**Subscription**| Select the Azure subscription that you want to use for this Playwright workspace. |
54
+
|**Resource group**| Select an existing resource group. Or select **Create new**, and then enter a unique name for the new resource group. |
55
+
|**Name**| Enter a unique name to identify your workspace.<br/>The name can only consist of alphanumerical characters, and have a length between 3 and 64 characters. |
56
+
|**Location**| Select a geographic location to host your workspace.<br/>This location also determines where the test execution results are stored. |
57
+
58
+
> [!NOTE]
59
+
> Optionally, you can configure more details on the **Tags** tab. Tags are name/value pairs that enable you to categorize resources and view consolidated billing by applying the same tag to multiple resources and resource groups.
60
+
61
+
- After you're finished configuring the resource, select **Review + Create**.
62
+
63
+
- Review all the configuration settings and select **Create** to start the deployment of the Playwright workspace.
64
+
65
+
- When the process has finished, a deployment success message appears.
66
+
67
+
- To view the new workspace, select **Go to resource**.
68
+
69
+

70
+
|
47
71
48
72
> [!NOTE]
49
73
> If you don't see this screen, select an existing workspace and go to the next section.
@@ -61,17 +85,46 @@ using Azure.Identity;
61
85
namespacePlaywrightService.SampleTests; // Remember to change this as per your project namespace
The endpoint URL corresponds to the workspace region. You might see a different endpoint URL in the Playwright portal, depending on the region you selected when creating the workspace.
77
130
@@ -89,13 +142,13 @@ dotnet test
89
142
90
143
## Key concepts
91
144
92
-
Key concepts of the Azure Playwright NUnit SDK for .NET can be found [here](https://aka.ms/mpt/what-is-mpt)
145
+
Key concepts of the Azure Playwright NUnit SDK for .NET can be found [here](https://aka.ms/pww/docs/overview)
93
146
94
147
## Examples
95
148
96
149
Code samples for using this SDK can be found in the following locations
Copy file name to clipboardExpand all lines: sdk/loadtestservice/Azure.Developer.Playwright/README.md
+11-12Lines changed: 11 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,22 +22,21 @@ To learn more about options for Microsoft Entra Id authentication, refer to [Azu
22
22
- Your Azure account must be assigned the [Owner](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#owner), [Contributor](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#contributor), or one of the [classic administrator roles](https://learn.microsoft.com/azure/role-based-access-control/rbac-and-directory-admin-roles#classic-subscription-administrator-roles).
23
23
24
24
## Useful links
25
-
-[Quickstart: Run end-to-end tests at scale](https://aka.ms/mpt/quickstart)
26
-
-[Quickstart: Set up continuous end-to-end testing across different browsers and operating systems](https://aka.ms/mpt/ci)
27
-
-[Explore features and benefits](https://aka.ms/mpt/about)
28
-
-[View Azure Playwright service demo](https://youtu.be/GenC1jAeTZE)
29
-
-[Documentation](https://aka.ms/mpt/docs)
30
-
-[Pricing](https://aka.ms/mpt/pricing)
31
-
-[Share feedback](https://aka.ms/mpt/feedback)
25
+
-[Quickstart: Run end-to-end tests at scale](https://aka.ms/pww/docs/quickstart)
26
+
-[Quickstart: Set up continuous end-to-end testing across different browsers and operating systems](https://aka.ms/pww/docs/ci)
27
+
-[Explore features and benefits](https://aka.ms/pww/docs/about)
Copy file name to clipboardExpand all lines: sdk/loadtestservice/Azure.Developer.Playwright/src/Constants.cs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -144,8 +144,8 @@ internal class Constants
144
144
// Error messages
145
145
internalstaticreadonlystrings_no_service_endpoint_error_message="Please set PLAYWRIGHT_SERVICE_URL in your environment variables.";
146
146
internalstaticreadonlystrings_service_endpoint_removed_since_scalable_execution_disabled_error_message="GetConnectOptions method cannot be used when UseCloudHostedBrowsers is set to false in the setup file.";
147
-
internalstaticreadonlystrings_no_auth_error="Could not authenticate with the service. Please refer to https://aka.ms/mpt/authentication for more information.";
148
-
internalstaticreadonlystrings_entra_no_cred_error="Azure credentials not found when using Entra ID authentication. Please refer to https://aka.ms/mpt/authentication for more information.";
147
+
internalstaticreadonlystrings_no_auth_error="Could not authenticate with the service. Please refer to https://aka.ms/pww/docs/authentication for more information.";
148
+
internalstaticreadonlystrings_entra_no_cred_error="Azure credentials not found when using Entra ID authentication. Please refer to https://aka.ms/pww/docs/authentication for more information.";
149
149
internalstaticreadonlystrings_invalid_mpt_pat_error="The Access Token provided in the environment variable is invalid.";
150
150
internalstaticreadonlystrings_expired_mpt_pat_error="The Access Token you are using is expired. Create a new token.";
151
151
internalstaticreadonlystrings_invalid_os_error="Invalid operating system, supported values are 'linux' and 'windows'.";
@@ -154,8 +154,8 @@ internal class Constants
154
154
internalstaticreadonlystrings_playwright_service_runId_not_guid_error_message="Error: The Run ID must be a valid GUID format. Please provide a valid GUID for the Run ID.";
155
155
internalstaticreadonlystrings_playwright_service_runName_truncated_warning="WARNING: Run name exceeds the maximum limit of 200 characters and will be truncated.";
156
156
internalstaticreadonlystrings_playwright_Version_not_supported_error_message="The Playwright version you are using does not support playwright workspaces. Please update to Playwright version 1.50.0 or higher.";
157
-
internalstaticreadonlystrings_playwright_Invalid_version="The Playwright version you are using is not supported. See the list of supported versions at https://aka.ms/mpt/supported-versions.";
158
-
internalstaticreadonlystrings_playwright_service_create_test_run_error="Failed to create the test run in the Playwright service.";
157
+
internalstaticreadonlystrings_playwright_Invalid_version="The Playwright version you are using is not supported. See the list of supported versions at https://aka.ms/pww/docs/supported-versions.";
158
+
internalstaticreadonlystrings_playwright_service_create_test_run_error="Failed to create the test run in the Playwright service. Please refer to https://aka.ms/pww/docs/troubleshooting for more information.";
_logger?.LogError($"Failed to create the test run in the Playwright service: {ex.Message}");
389
+
_logger?.LogError($"Failed to create the test run in the Playwright service: {ex.Message}. Please refer to https://aka.ms/pww/docs/troubleshooting for more information.");
0 commit comments