Skip to content

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

Merged
merged 4 commits into from
Jul 24, 2025

Conversation

kashish2508
Copy link
Contributor

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.

@Copilot Copilot AI review requested due to automatic review settings July 23, 2025 20:18
@kashish2508 kashish2508 requested a review from a team as a code owner July 23, 2025 20:18
Copy link
Contributor

@Copilot Copilot AI left a 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 to PlaywrightServiceBrowserClientOptions with length validation and truncation
  • Implemented GetDefaultRunName() method in ClientUtilities 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

Copy link

github-actions bot commented Jul 23, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

Azure.Developer.Playwright

@kashish2508 kashish2508 merged commit b32feff into main Jul 24, 2025
17 checks passed
@kashish2508 kashish2508 deleted the users/guptaKashish/added-runName-feature branch July 24, 2025 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants