Skip to content

DumiJDev/jsuperman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSuperman CLI

jsuperman

JSuperman CLI is a monitoring tool built on Newman, designed for executing API tests. It enables users to run test collections by specifying JSON file paths or URLs. The tool supports optional environment files and generates reports in CLI HTML and Allure formats. Its aim is to simplify API testing, provide detailed reports, and assist in quality assurance.

🛠️ Installation:

You can install JSuperman CLI globally using npm or yarn:

Via npm:

npm install -g jsuperman

Via yarn:

yarn global add jsuperman

🏃🏾‍♂️ How to Use:

To execute tests, provide the path to a configuration file (json or yaml) with the following format:

jsuperman -f /path/to/config/file

Example configuration file structure:

[
    {
        "collection": "path/to/exported/collection/json/or/a/postman/collection/url",
        "environment": "path/to/environment/json"
    }
]

Available Options:

  • -g, --globals: Set global variables for the test execution.
  • -p, --port: Specify the port for accessing the generated report.
  • -i, --iteration: Number of test execution iterations (default is 1).
  • -u, --url: URL to access test collections and environments.
  • -s, --serve: Run a server after generating the report for easy access.
  • -n, --native: Use the native reporter to generate the report (default is false).
  • -rp, --report: URL to send the report results after test execution.
  • -e, --export: Export test results to a JSON file at the specified path.
  • -q, --quiet: Run the server in quiet mode to minimize log output.
  • -c, --cron: Schedule JSuperman to run using a cron expression.
  • -ec, --email-config: SMTP configuration in key:value format separated by semicolons.
  • -r, --rest: Enable REST endpoint to get results.
  • -f, --file: Path to a file containing collections and environments.

Example:

jsuperman -f /path/to/config/file -s -p 8080

📊 Reports and Results:

After running the tests, you can access the results using the REST endpoint:

GET http://hostname:7777/jsuperman/results

💻 Technologies Used:

Technologies used in the project:

  • Typescript
  • NodeJS

Support the Project: If you find JSuperman CLI helpful, consider buying me a coffee!

🛡️ License:

This project is licensed under the MIT License. You are free to use it as a base for other projects or for personal use on your machines. If changing the license is necessary, please let me know.

Contributions

We are open to contributions! Feel free to collaborate with us.

About

A library to run many collections with newman

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published