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/quickstart-automate-end-to-end-testing.md
+24-3Lines changed: 24 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ To get the service endpoint URL and store it as a CI workflow secret, perform th
62
62
::: zone pivot="playwright-test-runner"
63
63
## Add service configuration file
64
64
65
-
If you haven't configured your Playwright tests yet for running them on cloud-hosted browsers, add a service configuration file to your repository. In the next step, you then specify this service configuration file on the Playwright CLI.
65
+
If you haven't configured your Playwright tests yet for running them with service, add a service configuration file to your repository. In the next step, you then specify this service configuration file on the Playwright CLI.
66
66
67
67
1. Create a new file `playwright.service.config.ts` alongside the `playwright.config.ts` file.
68
68
@@ -112,7 +112,7 @@ In the `playwright.config.ts` file of your project, make sure you are collecting
112
112
113
113
3. Save and commit the file to your source code repository.
114
114
115
-
## Update .scproj file for your project
115
+
## Update .csproj file for your project
116
116
117
117
Update the `csproj` file in your repository to add details about Microsoft Playwright Testing service package in `ItemGroup` section.
118
118
@@ -121,14 +121,35 @@ Update the `csproj` file in your repository to add details about Microsoft Playw
## Add or update `.runsettings` file for your project.
126
+
127
+
If you haven't configured your Playwright tests yet for running them with service, add `.runsettings` file to your repository. In the next step, you then specify this service configuration file on the Playwright CLI.
128
+
129
+
1. Create a new `.runsettings` file.
130
+
131
+
Optionally, use the `.runsettings` file in the [sample repository](https://aka.ms/mpt/nunit-runsettings).
- Accelerate build pipelines by running tests in parallel using cloud-hosted browsers.
139
+
- Publish test results and artifacts to the service for faster troubleshooting.
140
+
141
+
However, you can choose to use either of these features 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 requirements.
142
+
143
+
3. Save and commit the file to your source code repository.
144
+
124
145
## Enable artifacts in your Playwright setup
125
146
126
147
Enable artifacts such as screenshot, videos and traces to be captured by Playwright.
127
148
- For screenshots, see [capture screenshots](https://playwright.dev/dotnet/docs/screenshots#introduction)
128
149
- For videos, see [record videos for your tests](https://playwright.dev/dotnet/docs/videos#introduction)
129
150
- For traces, see [recording a trace](https://playwright.dev/dotnet/docs/trace-viewer-intro#recording-a-trace)
130
151
131
-
Once you collect these artifacts, make sure you attach them to the test path. For more information, see our [sample](https://aka.ms/mpt/nunit-sample)
152
+
Once you collect these artifacts, attach them to the `TestContext` to ensure they are available in your test reports. For more information, see our [sample project for NUnit](https://aka.ms/mpt/nunit-sample)
Copy file name to clipboardExpand all lines: articles/playwright-testing/quickstart-generate-rich-reports-for-tests.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
@@ -228,7 +228,7 @@ Enable artifacts such as screenshot, videos and traces to be captured by Playwri
228
228
- For videos, see [record videos for your tests](https://playwright.dev/dotnet/docs/videos#introduction)
229
229
- For traces, see [recording a trace](https://playwright.dev/dotnet/docs/trace-viewer-intro#recording-a-trace)
230
230
231
-
Once you collect these artifacts, make sure you attach them to the testpath. For more information, see [sample configurationfor NUnit](https://aka.ms/mpt/nunit-sample)
231
+
Once you collect these artifacts, attach them to the `TestContext` to ensure they are available in your testreports. For more information, see our [sample projectfor NUnit](https://aka.ms/mpt/nunit-sample)
Copy file name to clipboardExpand all lines: articles/playwright-testing/quickstart-run-end-to-end-tests.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
@@ -166,7 +166,7 @@ Enable artifacts such as screenshot, videos and traces to be captured by Playwri
166
166
- For videos, see [record videos for your tests](https://playwright.dev/dotnet/docs/videos#introduction)
167
167
- For traces, see [recording a trace](https://playwright.dev/dotnet/docs/trace-viewer-intro#recording-a-trace)
168
168
169
-
Once you collect these artifacts, make sure you attach them to the testpath. For more information, see our [sample](https://aka.ms/mpt/nunit-sample)
169
+
Once you collect these artifacts, attach them to the `TestContext` to ensure they are available in your testreports. For more information, see our [sample project for NUnit](https://aka.ms/mpt/nunit-sample)
0 commit comments