Skip to content

[BUG]:Test Run Not Generating in Playwright Workspace #210

@Sathiyanarayanan-Rajamanickam

Description

When creating a Playwright instance or browser programmatically in the [Hooks] file of the C# BDD framework, the test run is not being generated in the Playwright Workspace. This issue occurs despite the connection to the Playwright service being established successfully.

Steps to reproduce the behavior
1 .Configure the Playwright Workspace with the required environment variables:
PLAYWRIGHT_SERVICE_URL
PLAYWRIGHT_SERVICE_ACCESS_TOKEN
2. Implement the BeforeScenario hook in the PlaywrightHooks.cs file to create a Playwright instance and browser programmatically.
Execute the test suite using the following command:
dotnet test .\Sample.csproj --settings .runsettings

Expected behavior
A test run should be created in the Playwright Workspace for each test execution.
The test run should include metadata such as the runId, test status, and timestamp

Actual Behavior
No test run is generated in the Playwright Workspace.
The Playwright service connection is established, and tests execute successfully, but the test run entry is missing.

Note
Framework Technology: C#, ReqNRoll, Nunit and Playwright

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions