Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/testingbot/node-playwright-test-example

Playwright Test example to run tests on TestingBot
https://github.com/testingbot/node-playwright-test-example

playwright playwright-test testingbot

Last synced: 17 days ago
JSON representation

Playwright Test example to run tests on TestingBot

Awesome Lists containing this project

README

        

## TestingBot Playwright Test Node Example

TestingBot provides an online grid of browsers and mobile devices to run Automated tests on via Playwright Test.
This example demonstrates how to use Playwright Test to run a test on a remote TestingBot browser.

### Environment Setup

* Clone the repo
* Retrieve your TestingBot Key (`TB_KEY`) and Secret (`TB_SECRET`) from the [TestingBot Dashboard](https://testingbot.com/members/) and set these as environment variables
* Run `npm i`

### Run Test
The sample test will run in parallel on 3 different browsers (see `playwright.config.ts`).
To start the test, run this command:
`npm run sample-test`

### Results
You can see the results of your tests in the [TestingBot Dashboard](https://testingbot.com/members/)

### Resources
##### [TestingBot Documentation](https://testingbot.com/support/playwright/playwright-test.html)

##### [Playwright Documentation](https://playwright.dev/)