Showing posts with label Test Automation. Show all posts
Showing posts with label Test Automation. Show all posts

Wednesday, July 2, 2025

Postman with Newman – Run API Tests from the Command Line Like a Pro

Postman with Newman – A Complete Guide for API Test Automation

Postman is a popular tool for testing RESTful APIs. While it's great for manual testing, running tests as part of automation or CI/CD pipelines requires a command-line interface. That’s where Newman comes in!

๐Ÿš€ What is Newman?

Newman is Postman’s command-line tool that lets you run Postman collections directly from your terminal. It allows automated API testing and is perfect for continuous integration workflows.

๐Ÿ› ️ How to Set Up Postman with Newman

Step 1: Install Node.js

Download and install Node.js from https://nodejs.org/.

Step 2: Install Newman

Open your terminal and run:

npm install -g newman

Step 3: Export Postman Collection

  • Open Postman app
  • Select your collection → click "..." → Export
  • Choose "Collection v2.1 (recommended)" format

Step 4: Run Collection Using Newman

newman run your_collection.json

๐Ÿงช Run with Environment File

newman run your_collection.json -e your_environment.json

๐Ÿ“Š Generate HTML Report


npm install -g newman-reporter-html
newman run your_collection.json -r html

๐Ÿ” Run with Data File (CSV or JSON)

newman run your_collection.json -d data.csv

⚙️ CI/CD Integration Ideas

  • Jenkins: Add as a shell step
  • GitHub Actions: Add in your YAML workflow
  • GitLab CI: Include in your .gitlab-ci.yml

✅ Summary

Newman helps you automate Postman collections via CLI, making your API tests easily repeatable, CI/CD-friendly, and reportable. This approach saves time, improves accuracy, and helps detect issues earlier in the development cycle.

๐Ÿ“Ž Helpful Links

Written by Anup Khobragade | Published on SoftwareTesting-Guideline

Sunday, May 18, 2025

TestRigor AI: Revolutionizing Test Case Management and Execution

TestRigor AI: Revolutionizing Test Case Management and Execution

TestRigor is an advanced AI-powered software testing platform designed to simplify and scale test automation. Whether you’re a beginner or an experienced QA engineer, TestRigor helps you manage test cases efficiently and run them with minimal coding expertise. This article explores how TestRigor enhances test case management and execution using artificial intelligence. 


๐Ÿ” What is TestRigor?

TestRigor is a cloud-based test automation tool that leverages AI to create, manage, and execute end-to-end tests. It enables QA teams to write test cases in plain English, significantly reducing the learning curve and boosting productivity across development cycles.

๐Ÿง  Key Features of TestRigor

  • Natural Language Test Writing: Write test cases in human-readable English without needing to know any scripting language.
  • Cross-Platform Testing: Supports testing for web, mobile (Android & iOS), desktop, and APIs.
  • Test Case Management: Organize test cases by folders, tags, priorities, and more.
  • AI-Powered Element Recognition: Uses machine learning to detect UI changes and reduce flakiness.
  • CI/CD Integration: Seamlessly integrate with Jenkins, GitHub Actions, CircleCI, and other pipelines.
  • Test Data Management: Supports dynamic test data generation, custom variables, and reusable test components.
  • Test Execution Scheduling: Run tests on-demand or via schedule using cloud or on-premise infrastructure.

๐Ÿ“ How TestRigor Helps Manage Test Cases

Managing a large set of test cases becomes effortless with TestRigor’s built-in organization system:

  • Folders & Tags: Categorize your test cases by modules or feature sets.
  • Reusable Steps: Avoid redundancy by modularizing commonly used actions.
  • Version Control: Track changes to test steps and revert if needed.
  • Test Prioritization: Assign priorities (Low, Medium, High) for effective regression planning.

๐Ÿš€ Running Tests with TestRigor

Running tests is as simple as clicking a button or triggering it from your CI/CD pipeline. It supports parallel executions and gives detailed logs, video replays, and screenshots of every test step.

๐Ÿค– Real Example of Test Written in TestRigor

login
click "Create New Test"
enter "Login functionality for Admin" into "Test Name"
click "Save"
verify that page contains "Test created successfully"

This test is written in plain English and doesn't require any programming, showcasing the simplicity and power of TestRigor.

๐Ÿ“ˆ Benefits of Using TestRigor

  • Faster Time to Market: Speed up testing cycles with minimal maintenance.
  • Lower Cost of Quality: No need for expensive automation engineers for simple tests.
  • Scalability: Efficient for small teams as well as enterprise-level QA workflows.

๐Ÿ”— Integration Support

TestRigor integrates with popular tools like:

  • Jira – for test tracking and bug reporting
  • Slack/MS Teams – for instant test result notifications
  • CI/CD tools – like Jenkins, GitLab CI, GitHub Actions

๐Ÿ’ฌ Final Thoughts

If you're looking to optimize test case management and reduce test execution efforts, TestRigor is a strong contender. It eliminates the complexities of traditional testing tools while empowering QA teams to focus on quality and coverage.

๐Ÿ”— Official Website

Visit TestRigor to explore the tool, request a demo, or start a free trial.


Published under Software Testing Guideline – Your Roadmap to QA Mastery. Bookmark this blog for more insights into modern QA tools and strategies.