API Day 4 Rest API & Postman Validation

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

Комментарии • 4

  • @sunilbhatta1754
    @sunilbhatta1754 16 дней назад

    Sir I am getting erro in generating Newman report....can you please help me....the error is - Newman is not recognized as an internal or external command

    • @automationtesthub803
      @automationtesthub803  15 дней назад

      To resolve the issue, follow these steps:
      1. Check if Newman is Installed
      Open your terminal or command prompt and type:
      newman -v
      If the command is not recognized, Newman is not installed. Proceed to the next step to install it.
      2. Install Newman
      Make sure Node.js is installed on your system. To check, run:
      node -v
      If not installed, download and install it from Node.js Official Website.
      Install Newman globally using npm:
      npm install -g newman
      This installs Newman globally, making it accessible from any directory.
      3. Verify Newman Installation
      After installation, verify by running:
      newman -v
      If you see a version number, Newman is installed correctly.
      4. Ensure PATH is Set Correctly
      If the command still doesn’t work, ensure the global npm directory is added to your system's PATH:
      For Windows:
      1. Find the global npm directory:
      npm config get prefix
      It usually looks like: C:\Users\\AppData\Roaming
      pm
      2. Add this directory to the system PATH environment variable.
      3. Restart the command prompt or terminal.
      For macOS/Linux:
      1. Add the npm global directory to PATH:
      export PATH=$PATH:$(npm config get prefix)/bin
      2. Add this line to your shell configuration file (.bashrc, .zshrc, etc.) to persist it.
      5. Retry the Command
      Run the Newman command again:
      newman run
      If these steps don’t resolve the issue, let me know where you're facing difficulty, and I'll assist further.

    • @sunilbhatta1754
      @sunilbhatta1754 14 дней назад

      Now it worked sir.thank you so much.sir can you give some suggestions that how can we test a flow in postman and get the Newman report for the same...I mean if I am login to my account using one api then I am downloading any report or seeing any transactions inside that account

    • @automationtesthub803
      @automationtesthub803  13 дней назад

      @@sunilbhatta1754 Contact me: 7447481184