TestNG
Export TestNG results as JUnit-format XML (or convert the TestNG report), then submit with the CLI.
1. Install the CLI
npm install -D @testbeaver/cli export TESTBEAVER_API_TOKEN=cr_… export TESTBEAVER_PROJECT_ID=…
Create a token under Account. Full CLI reference: CLI docs.
2. Emit JUnit-compatible XML
# testng.xml — use a JUnit reporter listener, or convert TestNG output # Example with Maven Surefire running TestNG: mvn test # Or configure a JUnit XML reporter in your build so CI writes results.xml # (many teams use surefire/failsafe reports the same way as JUnit)
If you only have TestNG’s native testng-results.xml, convert it to JUnit XML in CI first — the CLI expects JUnit-style <testcase> entries. Optional: @testbeaver:<caseId> in the test name to pin a case.
3. Submit to TestBeaver
mvn test testbeaver results submit \ --project "$TESTBEAVER_PROJECT_ID" \ --name "TestNG" \ --results 'target/surefire-reports/TEST-*.xml'
The CLI matches or creates cases from the report, starts a run, records results, and closes the run. See matching rules on the CLI page.
Other runners
Playwright · Cypress · pytest · JUnit · TestNG · Selenium · CLI