What is Puppeteer?
Puppeteer is a versatile Node.js library developed by Google that provides a high-level API for automating web browsers. Its intuitive API, support for modern browser features, and debugging capabilities make it a valuable tool for web scraping, automated testing, and generating visual outputs.
Puppeteer is built on the Chromium browser engine, which powers popular browsers like Google Chrome and Microsoft Edge. This ensures a reliable and consistent browsing environment, making Puppeteer an excellent choice for cross-browser testing and web automation.
Puppeteer is often used for automating UI testing. By running tests directly in the latest version of Chromium or Chrome, it can ensure that your web app runs correctly in a real browser environment.
How to monitor Puppeteer Web Application tests?
ServicePilot makes it easy to monitor Puppeteer by integrating a module directly into the Puppeteer testing environment which will collect statistics and send them directly to ServicePilot. Then add a appmon-puppeteer resource via the ServicePilot provisioning page.
Some of the statistics gathered in this way are:
- Nodes: Number of DOM nodes in the page
- Layout Duration: Combined durations of all page layouts
- RecalcStyleDuration: Combined duration of all page style recalcutions
- Task Duration: Combined durations of all tasks performed by the browser
- HTTPStatusCode: Page code return
How to install a puppeteer resource?
- Use your ServicePilot OnPremise installation or a SaaS account.
- Add a new puppeteer resource via the web interface (
/prmresources) or via API (
/prmpackagespage), the default ServicePilot agent or another agent will be provisioned automatically.
Details of the puppeteer package are located in the
/prmpackagespage of the software.
ServicePilot enables you to deliver IT services faster and more securely with automated discovery and advanced monitoring features.
By correlating the technology PUPPETEER with APM and infrastructure monitoring, ServicePilot is able to provide a more comprehensive view of an organization's IT environment.
This allows IT teams to quickly identify and diagnose issues that may be impacting application performance, and take corrective action before end-users are affected.