What is Nightwatch?
Nightwatch.js is a powerful and easy-to-use automated testing framework built on Node.js. It is used to create and execute end-to-end browser automation tests with simplicity and efficiency. It provides a rich set of built-in commands and assertions, making it straightforward to interact with web elements, simulate user actions, and verify expected outcomes.
Nightwatch.js supports multiple browser platforms, including Chrome, Firefox, and Safari, allowing you to test your web applications across different environments. It also integrates seamlessly with popular testing frameworks, such as Mocha and Jasmine, providing flexibility in test organization and reporting.
One of the key strengths of Nightwatch.js is its ability to handle asynchronous operations in a seamless manner. It supports asynchronous commands and provides robust mechanisms for handling waits and timeouts, ensuring accurate synchronization between test steps and the application under test.
How to monitor Nightwatch?
ServicePilot makes it easy to monitor Nightwatch test scenario by simply adding a custom reporter in the nightwatch installation to send statistics to ServicePilot. A corresponding resource of the appmon-nightwatch package then needs to be added via the ServicePilot web interface to receive information sent by the script.
ServicePilot monitors the results of Nightwatch tests status and runtime.
The statistics gathered in this way include:
- Assertions Passed
- Assertions Failed
- Runtime
- Pass Rate
How to install a nightwatch resource?
- Use your ServicePilot OnPremise installation or a SaaS account.
- Add a new nightwatch resource via the web interface (
/prmviews
or/prmresources
) or via API (/prmpackages
page), the default ServicePilot agent or another agent will be provisioned automatically.
Details of the nightwatch package are located in the
/prmpackages
page of the software.
Benefits
ServicePilot enables you to deliver IT services faster and more securely with automated discovery and advanced monitoring features.
By correlating the technology NIGHTWATCH 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.
Start with a free trial of our SaaS solution. Explore our plans or contact us to find what works best for you.