testimony-playwright
v0.0.5
Published
instrumented exploratory test session tracker
Downloads
10
Maintainers
Readme
Testimony-Playwright
Automated Exploratory testing activity tracker using Playwright.js
Launching a Session
const { chromium } = require('playwright');
const TestSession =require('testimony-playwright/testSession');
const ConsoleTracker = require('testimony-playwright/trackers/consoleTracker');
const ClickTracker = require('testimony-playwright/trackers/clickTracker');
const ScreenshotTracker = require('testimony-playwright/trackers/screenshotTracker');
const args = process.argv.slice(2);
(async () => {
const sessionTitle=args[0]|| `session-${new Date().toISOString()}`;
const browser = await chromium.launch({ headless: false, slowMo: 50 });
const testSession= new TestSession({sessionTitle});
testSession.track(new ConsoleTracker());
testSession.track(new ClickTracker());
testSession.track(new ScreenshotTracker());
const initialUrl=`https://www.google.com`;
await testSession.start(browser,initialUrl);
})();