Skip to content

[Feature]: provide test fixtures for TestNG similar to JUnits @UsePlaywright functionality#1782

Description

@bpoplawski

馃殌 Feature Request

Please provide test fixtures for TestNG testing framework which would work similarly as in JUnit framework.
This could work similarly to @UsePlaywright, reducing boilerplate code.

In other words a similar funcitonality to Junit one provided here:
https://playwright.dev/java/docs/junit

Example

Example is to use annotation like suggested in : https://playwright.dev/java/docs/junit

@UsePlaywright
public class TestExample {
test
void shouldClickButton(Page page) {
page.navigate("data:text/html,<script>var result;</script>Go");
page.locator("button").click();
assertEquals("Clicked", page.evaluate("result"));
}

Motivation

Motivation is a fact that TestNG is also broadly used

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions