Skip to content

Commit fc78620

Browse files
committed
fixed typos and added a section
1 parent 620574b commit fc78620

5 files changed

+29
-8
lines changed

articles/playwright-testing/how-to-use-service-config-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ Here's version of the `.runsettings` file with all the available options:
269269
- **Default Value**: true
270270
- **Example**:
271271
```xml
272-
<Logger friendlyName="microsoft-playwright-testing" enabled="True" />
272+
<Logger friendlyName="microsoft-playwright-testing" enabled="true" />
273273
```
274274

275275
* **`EnableGitHubSummary`**:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default defineConfig(
109109
<LoggerRunSettings>
110110
<Loggers>
111111
<!--microsoft playwright testing service logger for reporting -->
112-
<Logger friendlyName="microsoft-playwright-testing" enabled="True" />
112+
<Logger friendlyName="microsoft-playwright-testing" enabled="true" />
113113
<!--could enable any logger additionally -->
114114
<Logger friendlyName="trx" enabled="false" />
115115
</Loggers>
@@ -131,7 +131,7 @@ export default defineConfig(
131131
- **Default Value**: true
132132
- **Example**:
133133
```xml
134-
<Logger friendlyName="microsoft-playwright-testing" enabled="True" />
134+
<Logger friendlyName="microsoft-playwright-testing" enabled="true" />
135135
```
136136
::: zone-end
137137
## Related content

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

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ To get the service endpoint URL and store it as a CI workflow secret, perform th
6262
::: zone pivot="playwright-test-runner"
6363
## Add service configuration file
6464

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

6767
1. Create a new file `playwright.service.config.ts` alongside the `playwright.config.ts` file.
6868

@@ -112,7 +112,7 @@ In the `playwright.config.ts` file of your project, make sure you are collecting
112112

113113
3. Save and commit the file to your source code repository.
114114

115-
## Update .scproj file for your project
115+
## Update .csproj file for your project
116116

117117
Update the `csproj` file in your repository to add details about Microsoft Playwright Testing service package in `ItemGroup` section.
118118

@@ -121,14 +121,35 @@ Update the `csproj` file in your repository to add details about Microsoft Playw
121121
<PackageReference Include="Azure.Developer.MicrosoftPlaywrightTesting.NUnit" Version="1.0.0-beta.2" />
122122
</ItemGroup>
123123
```
124+
125+
## 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).
132+
133+
2. Add the following content to it:
134+
135+
:::code language="xml" source="~/playwright-testing-service/samples/.NET/NUnit/.runsettings":::
136+
137+
This settings in this file enable you to:
138+
- 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+
124145
## Enable artifacts in your Playwright setup
125146

126147
Enable artifacts such as screenshot, videos and traces to be captured by Playwright.
127148
- For screenshots, see [capture screenshots](https://playwright.dev/dotnet/docs/screenshots#introduction)
128149
- For videos, see [record videos for your tests](https://playwright.dev/dotnet/docs/videos#introduction)
129150
- For traces, see [recording a trace](https://playwright.dev/dotnet/docs/trace-viewer-intro#recording-a-trace)
130151

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)
132153
::: zone-end
133154

134155
## Update the workflow definition

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Enable artifacts such as screenshot, videos and traces to be captured by Playwri
228228
- For videos, see [record videos for your tests](https://playwright.dev/dotnet/docs/videos#introduction)
229229
- For traces, see [recording a trace](https://playwright.dev/dotnet/docs/trace-viewer-intro#recording-a-trace)
230230

231-
Once you collect these artifacts, make sure you attach them to the test path. For more information, see [sample configuration for 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 test reports. For more information, see our [sample project for NUnit](https://aka.ms/mpt/nunit-sample)
232232

233233
::: zone-end
234234

articles/playwright-testing/quickstart-run-end-to-end-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Enable artifacts such as screenshot, videos and traces to be captured by Playwri
166166
- For videos, see [record videos for your tests](https://playwright.dev/dotnet/docs/videos#introduction)
167167
- For traces, see [recording a trace](https://playwright.dev/dotnet/docs/trace-viewer-intro#recording-a-trace)
168168

169-
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)
169+
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)
170170

171171
::: zone-end
172172

0 commit comments

Comments
 (0)