Playwright Website
How it works
Playwright supports exporting its recorded tests into Python format, while Testuff allows you to upload these test results to its platform in one go, saving both time and resources. This integration has been designed to be seamless, leaving all the tedious tasks to Testuff.
Attached a simple playwright script (actually, we took it from playwright sample)
Record playwright tests with Codegen
Playwright provides a simple way to record tests in your browser using Codegen
To begin, start the browser session with the command: playwright codegen YOUR-URL, and then save the automation script.
Run tests from the command line
$ pytest -v -s –junitxml=result.xml test_playwrite.py
Send results to Testuff
$ curl -k -X POST -F “file=@result.xml” https://serviceX.testuff.com/client_api/v0/testcase/[TOKEN]?branch=[BRANCH_ID]
Notes:
* Reporting to Testuff is protected Via HTTP POST over SSL, and your Testuff user TOKEN is used for identification.
* You’ll find your Testuff server number under the Settings->Company Details, and your user Token under the User settings.