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
Copy file name to clipboardExpand all lines: articles/playwright-testing/how-to-use-service-features.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,8 @@ In this article, you learn how to use the features provided by Microsoft Playwri
22
22
## Background
23
23
24
24
Microsoft Playwright Testing preview allows you to:
25
-
- Run your Playwright tests on cloud-hosted browsers.
26
-
- Publish test reports and artifacts to the service and view them in the service portal.
25
+
- Accelerate build pipelines by running tests in parallel using cloud-hosted browsers.
26
+
- Simplify troubleshooting with easy access to test results and artifacts published to the service.
27
27
28
28
These features have their own pricing plans and are billed separately. You can choose to use either feature or both. These features can be enabled or disabled for the workspace or for any specific run. To know more about pricing, see [Microsoft Playwright Testing preview pricing](https://aka.ms/mpt/pricing)
Copy file name to clipboardExpand all lines: articles/playwright-testing/includes/include-playwright-portal-view-test-results.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.date: 09/23/2024
7
7
---
8
8
9
9
10
-
1. After your test run completes, a link to the Playwright Portal is generated. Click this link to view detailed test results and associated artifacts. The portal displays essential information, including:
10
+
1. After your test run completes, a link to the Playwright Portal is generated. Open this link to view detailed test results and associated artifacts. The portal displays essential information, including:
By default, the service configuration enables you to:
73
+
- Accelerate build pipelines by running tests in parallel using cloud-hosted browsers.
74
+
- Simplify troubleshooting with easy access to test results and artifacts published to the service.
75
+
76
+
However, you can choose to use either of these feature or both. See [How to use service features](./how-to-use-service-features.md#manage-features-while-running-tests) and update the service configuration file as per your requirement.
77
+
72
78
1. Save and commit the file to your source code repository.
73
79
74
80
## Update package.json file
@@ -196,7 +202,7 @@ You can now troubleshoot the CI pipeline in the Playwright portal,
196
202
197
203
198
204
> [!TIP]
199
-
> You can use Microsoft Playwright Testing service features independently. You can publish test results to the portal without using the cloud-hosted browsers feature and you can also use only cloud-hosted browsers to expedite your test suite without publishing test results.
205
+
> You can use Microsoft Playwright Testing service features independently. You can publish test results to the portal without using the cloud-hosted browsers feature and you can also use only cloud-hosted browsers to expedite your test suite without publishing test results. For details, see [How to use service features](./how-to-use-service-features.md).
200
206
201
207
> [!NOTE]
202
208
> The test results and artifacts that you publish are retained on the service for 90 days. After that, they are automatically deleted.
# Quickstart: Troubleshoot tests with Microsoft Playwright Testing Preview
10
10
11
-
In this quickstart, you learn how to troubleshoot your Playwright tests easily using reports and artifacts published on Microsoft Playwright Testing Preview.
11
+
In this quickstart, you learn how to troubleshoot your Playwright tests easily using reports and artifacts published on Microsoft Playwright Testing Preview. Additionally, this guide demonstrates how to utilize the reporting feature, regardless of whether you are running tests on the cloud-hosted browsers provided by the service.
12
12
13
13
After you complete this quickstart, you'll have a Microsoft Playwright Testing workspace to view test results and artifacts in the service portal.
14
14
15
15
> [!IMPORTANT]
16
16
> 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](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
17
17
18
+
## Background
19
+
20
+
Microsoft Playwright Testing service enables you to:
21
+
22
+
- Accelerate build pipelines by running tests in parallel using cloud-hosted browsers.
23
+
- Simplify troubleshooting with easy access to test results and artifacts published to the service.
24
+
25
+
These two features of the service can be used independently of each other and each has its own [pricing plan](https://aka.ms/mpt/pricing). This means you can:
26
+
27
+
- Expedite test runs and streamline troubleshooting by running tests in cloud-hosted browsers and publishing results to the service.
28
+
- Run tests only in cloud-hosted browsers to finish test runs faster.
29
+
- Publish test results to the service while continuing to run tests locally for efficient troubleshooting.
30
+
18
31
## Prerequisites
19
32
20
33
* An Azure account with an active subscription. If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
@@ -24,7 +37,7 @@ After you complete this quickstart, you'll have a Microsoft Playwright Testing w
24
37
25
38
## Create a workspace
26
39
27
-
To get started with running your Playwright tests at scale on cloud browsers, first create a Microsoft Playwright Testing workspace in the Playwright portal.
40
+
To get started with publishing test results on Playwright Testing service, first create a Microsoft Playwright Testing workspace in the Playwright portal.
28
41
29
42
[!INCLUDE [Create workspace in Playwright portal](./includes/include-playwright-portal-create-workspace.md)]
This generates `playwright.service.config.ts` file which serves to:
42
55
43
-
- Direct and authenticate Playwright to the Microsoft Playwright Testing service.
56
+
- Direct and authenticate your Playwright client to the Microsoft Playwright Testing service.
44
57
- Adds a reporter to publish test results and artifacts.
45
58
46
59
If you already have this file, the package asks you to override it.
@@ -62,6 +75,9 @@ export default defineConfig(
62
75
```
63
76
Setting this as `false` ensures that cloud-hosted browsers are not used to run the tests. The tests run on your local machine but the results and artifacts are published on the service.
64
77
78
+
> [!TIP]
79
+
> If you wish to accelerate your test run using cloud-hosted browser, you can set `useCloudHostedBrowsers` as true, This will run your tests on the service managed browsers.
80
+
65
81
## Configure the service region endpoint
66
82
67
83
In your setup, you have to provide the region-specific service endpoint. The endpoint depends on the Azure region you selected when creating the workspace.
@@ -97,7 +113,7 @@ We recommend that you use the `dotenv` module to manage your environment. With `
97
113
98
114
## Set up Authentication
99
115
100
-
To run your Playwright tests in your Microsoft Playwright Testing workspace, you need to authenticate the Playwright client where you're running the tests with the service. This could be your local dev machine or CI machine.
116
+
To publish test results and artifacts to your Microsoft Playwright Testing workspace, you need to authenticate the Playwright client where you're running the tests with the service. This could be your local dev machine or CI machine.
101
117
102
118
The service offers two authentication methods: Microsoft Entra ID and Access Tokens.
103
119
@@ -136,7 +152,7 @@ In the `playwright.config.ts` file of your project, make sure you are collecting
136
152
137
153
## Run your tests and publish results on Microsoft Playwright Testing
138
154
139
-
You've now prepared the configuration for publishing test results with Microsoft Playwright Testing. Run tests using the newly created `playwright.service.config.ts` file and publish test results to the service.
155
+
You've now prepared the configuration for publishing test results and artifacts with Microsoft Playwright Testing. Run tests using the newly created `playwright.service.config.ts` file and publish test results and artifacts to the service.
140
156
141
157
```bash
142
158
npx playwright test --config=playwright.service.config.ts
@@ -164,7 +180,7 @@ You can now troubleshoot the failed test cases in the Playwright portal.
164
180
165
181
166
182
> [!TIP]
167
-
> You can also use Microsoft Playwright Testing service to run tests in parallel using cloud-hosted browsers. Both Reporting and cloud-hosted browsers are independent features and are billed separately. You can use either of these or both.
183
+
> You can also use Microsoft Playwright Testing service to run tests in parallel using cloud-hosted browsers. Both Reporting and cloud-hosted browsers are independent features and are billed separately. You can use either of these or both. For details, see [How to use service features](./how-to-use-service-features.md)
168
184
169
185
> [!NOTE]
170
186
> The test results and artifacts that you publish are retained on the service for 90 days. After that, they are automatically deleted.
0 commit comments