npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@axway/nightwatch-ats-reporter

v1.1.4

Published

A custom reporter that enables saving of Nightwatch test results in ATS DB

Downloads

51

Readme

License

Nightwatch ATS reporter

A custom reporter for Nightwatch Javascript browser automation https://nightwatchjs.org/. This reporter allows you to push test results from a Nightwatch test run into ATS Test Explorer database using ATS HTTP DB logger.

How to setup

Install the package through NPM:

npm install @axway/nightwatch-ats-reporter --save-dev

Create a configuration file for Axway ATS HTTP DB Logger with name .ats.config and put it in project root folder:

module.exports = {
  dbHost: "localhost",
  dbName: "HTTP_TESTS",
  dbUser: "admin",
  dbPassword: "password",
  dbPort: "1433",
  dbLoggerUrl: "http://localhost:8080/ats-httpdblogger-4.1.0-SNAPSHOT/service/logger",
  productName: "HTTP Application",
  versionName: "1.0.0",
  buildName: "123"
};

Add the --reporter option to Nightwatch run command. Example:

Nightwatch 0.9.21

node ./node_modules/nightwatch/bin/runner --reporter node_modules/@axway/nightwatch-ats-reporter

Nightwatch 1.2.x

node ./node_modules/nightwatch/bin/runner --reporter node_modules/@axway/nightwatch-ats-reporter/index.js

Development

For local development, checkout the project and run npm install first. Dev environment can run against real ATS HTTP DB Logger instance or a mock client. If your IDE is VisualStudio Code, open 'Debug' (Ctrl+Shift+D) and choose between Start real and Start mock accordingly. For real instance you will need ATS HTTP DB Logger service and an .ats.config file with proper configurations. For both configurations, the test results are taken from /test/results_all.json. To change the test results file, locate and change this line in test/start.js:

.......
const file = 'test/results_all.json';
.......

To run without debugging, type npm run start in terminal.

Known issues

  • Uploading screenshots is not working. Currently in Nightwatch 0.9.21 results output object does not contain the screenshots file names.
  • Nightwatch 1.2.4 - suite timestamp is empty, no way to get the start time of the test run. Reporter runtime will use current time as test run start.

Copyright

Copyright (c) 2020 Axway Software SA and its affiliates. All rights reserved.

License

All files in this repository are licensed by Axway Software SA and its affiliates under the Apache License, Version 2.0, available at http://www.apache.org/licenses/.