To get started with NeetoPlaydash, you need to create a new project and generate a new API key in the dashboard.
Generating an API Key
To generate a new API key follow the steps here.
Creating a new Project
To create a new project follow the steps here.
Connecting NeetoPlaydash to your Playwright project
Once an API key has been generated and a new project has been created, you are ready to connect it to your Playwright project. To do this:
Install
@bigbinary/neeto-playwright-reporter
package.
Installing using npm:
npm install @bigbinary/neeto-playwright-reporter
Installing using yarn:
yarn add @bigbinary/neeto-playwright-reporter
-
Enable traces, videos and screenshots
Enable traces, videos and screenshots to get the most out of NeetoPlaydash.import { defineConfig } from '@playwright/test'; export default defineConfig({ use: { // .... trace: "on", video: "on", screenshot: "on", } });
3. Configure reporter
import { defineConfig } from 'playwright';
const neetoPlaywrightReporterConfig = {
ciBuildId: "ci-build-id",
apiKey: "api-key",
projectKey: "************************",
};
export default defineConfig({
// other configurations...
reporter: [['@bigbinary/neeto-playwright-reporter', neetoPlaywrightReporterConfig]],
// other configurations...
});
Replace placeholders like ci-build-id
, api-key
, and projectKey
with their respective values:
ci-build-id: This is a unique identifier used for identifying the tests running in the CI environment. To learn more about the CI build IDs for each environment here.
apiKey: Obtain this unique key for authentication from the API Keys section under the settings.
projectKey: This key is generated when you create a new project and can also be found in the projects dashboard.
Now you can start running your Playwright tests and analyze the results on the NeetoPlaydash application.