Skip to content

Commit ff6899b

Browse files
committed
improved articles
1 parent 1744e51 commit ff6899b

File tree

4 files changed

+32
-10
lines changed

4 files changed

+32
-10
lines changed

articles/playwright-testing/how-to-use-service-features.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ In this article, you learn how to use the features provided by Microsoft Playwri
2222
## Background
2323

2424
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.
2727

2828
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)
2929

articles/playwright-testing/includes/include-playwright-portal-view-test-results.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.date: 09/23/2024
77
---
88

99

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:
1111
- CI build details
1212
- Overall test run status
1313
- The commit ID linked to the test run

articles/playwright-testing/quickstart-automate-end-to-end-testing.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ If you haven't configured your Playwright tests yet for running them on cloud-ho
6969

7070
:::code language="typescript" source="~/playwright-testing-service/samples/get-started/playwright.service.config.ts":::
7171

72+
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+
7278
1. Save and commit the file to your source code repository.
7379

7480
## Update package.json file
@@ -196,7 +202,7 @@ You can now troubleshoot the CI pipeline in the Playwright portal,
196202

197203

198204
> [!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).
200206

201207
> [!NOTE]
202208
> The test results and artifacts that you publish are retained on the service for 90 days. After that, they are automatically deleted.

articles/playwright-testing/quickstart-generate-rich-reports-for-tests.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,26 @@ ms.custom: playwright-testing-preview
88

99
# Quickstart: Troubleshoot tests with Microsoft Playwright Testing Preview
1010

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.
1212

1313
After you complete this quickstart, you'll have a Microsoft Playwright Testing workspace to view test results and artifacts in the service portal.
1414

1515
> [!IMPORTANT]
1616
> 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/).
1717
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+
1831
## Prerequisites
1932

2033
* 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
2437

2538
## Create a workspace
2639

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.
2841

2942
[!INCLUDE [Create workspace in Playwright portal](./includes/include-playwright-portal-create-workspace.md)]
3043

@@ -40,7 +53,7 @@ npm init @azure/microsoft-playwright-testing
4053

4154
This generates `playwright.service.config.ts` file which serves to:
4255

43-
- Direct and authenticate Playwright to the Microsoft Playwright Testing service.
56+
- Direct and authenticate your Playwright client to the Microsoft Playwright Testing service.
4457
- Adds a reporter to publish test results and artifacts.
4558

4659
If you already have this file, the package asks you to override it.
@@ -62,6 +75,9 @@ export default defineConfig(
6275
```
6376
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.
6477

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+
6581
## Configure the service region endpoint
6682

6783
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 `
97113

98114
## Set up Authentication
99115

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.
101117
102118
The service offers two authentication methods: Microsoft Entra ID and Access Tokens.
103119
@@ -136,7 +152,7 @@ In the `playwright.config.ts` file of your project, make sure you are collecting
136152

137153
## Run your tests and publish results on Microsoft Playwright Testing
138154

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.
140156
141157
```bash
142158
npx playwright test --config=playwright.service.config.ts
@@ -164,7 +180,7 @@ You can now troubleshoot the failed test cases in the Playwright portal.
164180

165181

166182
> [!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)
168184

169185
> [!NOTE]
170186
> 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

Comments
 (0)