-
Notifications
You must be signed in to change notification settings - Fork 5k
feat(loadtestservice): Added runName feature #51425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new RunName
feature to the Playwright service, allowing users to specify a custom run name that defaults to the RunId
if not provided. The implementation includes validation logic that truncates run names exceeding 200 characters and provides comprehensive test coverage for various scenarios.
Key changes:
- Added
RunName
property toPlaywrightServiceBrowserClientOptions
with length validation and truncation - Implemented
GetDefaultRunName()
method inClientUtilities
to handle default values - Added environment variable support for run names
- Enhanced constructor to initialize the new run name functionality
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
PlaywrightServiceBrowserClientTests.cs | Added comprehensive test coverage for RunName functionality including default behavior, custom values, truncation, and environment variable handling |
ClientUtilities.cs | Added GetDefaultRunName() method to provide default run name logic |
PlaywrightServiceBrowserClientOptions.cs | Implemented RunName property with validation, truncation logic, and environment variable integration |
PlaywrightServiceBrowserClient.cs | Updated constructor to initialize RunName property |
Constants.cs | Added environment variable constant for run name |
sdk/loadtestservice/Azure.Developer.Playwright/src/PlaywrightServiceBrowserClientOptions.cs
Outdated
Show resolved
Hide resolved
sdk/loadtestservice/Azure.Developer.Playwright/src/PlaywrightServiceBrowserClientOptions.cs
Show resolved
Hide resolved
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.