Postman Beginner Tutorial 6 | Collections

Поділитися
Вставка
  • Опубліковано 26 сер 2024

КОМЕНТАРІ • 49

  • @hemanxidave4612
    @hemanxidave4612 2 роки тому +6

    Thank you sir, I am fresher and wanted to learn Postman. Please share more videos on Postman.

  • @richardOutOfMatrix
    @richardOutOfMatrix Рік тому +2

    Thanks for awesome videos and your patience is taking is slow and basic level

    • @RaghavPal
      @RaghavPal  Рік тому

      You are welcome Richard. Thanks for the support

  • @santhoshs8900
    @santhoshs8900 Рік тому +4

    Clear and concise explanation, thanks

  • @danielspinks9006
    @danielspinks9006 2 місяці тому

    Wonderful job!

  • @user-fw9pg9lu2i
    @user-fw9pg9lu2i 2 місяці тому +2

    I want to set common bearertoken and baseurl for single collection in postman

    • @RaghavPal
      @RaghavPal  2 місяці тому

      Navneet
      To set a common Bearer Token and Base URL for a single collection in Postman, you have a few options:
      1. Collection Variables:
      - Create a collection variable for the Bearer Token and Base URL.
      - In your collection, go to the Variables tab.
      - Define the following variables:
      - `tokenBaseURL`: Set this to the base URL for your authentication service.
      - `authData`: If your auth service requires specific data, add it here as a JSON object.
      - Now, your requests within the collection can reference these variables.
      2. Pre-request Script:
      - You can use a pre-request script at the collection level to set environment variables dynamically.
      - Here's an example of how to set the Bearer Token using a script:
      ```javascript
      pm.sendRequest({
      url: 'YourURL',
      method: 'POST',
      header: {
      'content-type': 'application/json'
      },
      body: {
      mode: 'raw',
      raw: JSON.stringify({
      // YOUR PARAM TO CREATE THE TOKEN IF NEEDED
      })
      }
      }, (err, res) => {
      pm.collectionVariables.set('TOKEN', res.json().accessToken);
      });
      ```
      3. Environment Variables:
      - Create a new environment or use an existing one.
      - Add environment variables for the Bearer Token and Base URL.
      - Set the values accordingly.
      Remember to choose the approach that best fits your project requirements and workflow
      -

    • @user-fw9pg9lu2i
      @user-fw9pg9lu2i Місяць тому

      @@RaghavPal Sir ,
      Thankyou for your quick reply which helps a lot. 😀😀

  • @HariRam-nl6uz
    @HariRam-nl6uz 4 місяці тому

    thanks for the videos sir .

    • @RaghavPal
      @RaghavPal  4 місяці тому

      Glad you like them

  • @ramansharma5014
    @ramansharma5014 2 роки тому +2

    Please create a playlist of RestAssured Framework creattion.

    • @RaghavPal
      @RaghavPal  2 роки тому

      Hi Raman, can find here - automationstepbystep.com/

  • @user-fw9pg9lu2i
    @user-fw9pg9lu2i Місяць тому

    I Follow your steps, but when I run collection, then it shows as 'No test found'.

    • @RaghavPal
      @RaghavPal  Місяць тому

      Navneet
      Let's break down the problem step by step to troubleshoot the issue
      Step 1: Make sure you have saved your project. Verify that you have tests in your collection
      * Open your Postman collection and check if you have any tests written for the requests
      * Look for the "Tests" tab in each request. If you don't see any tests, that's likely the reason why Postman is showing "No test found"
      * Make sure you have at least one test written in the "Tests" tab of a request in your collection
      Step 2: Check the test syntax
      * If you have tests written, check the syntax of the tests to ensure they are correct
      * Postman uses the Chai assertion library for writing tests. Make sure you're using the correct syntax for Chai assertions
      * Common mistakes include incorrect indentation, missing semicolons, or incorrect function calls
      Step 3: Check the test location
      * Ensure that the tests are located in the correct place. Tests should be written in the "Tests" tab of a request, not in the "Pre-request Script" or "Post-request Script" tabs
      * If you have tests in a separate file or folder, make sure they are properly linked to the request
      Step 4: Check the collection settings
      * Open your collection settings by clicking the three dots next to the collection name and selecting "Edit"
      * In the collection settings, ensure that the "Run tests" option is enabled
      * Also, check if there are any filters or conditions set that might be preventing the tests from running
      Step 5: Check for any errors in the console
      * Open the Postman console by clicking the "Console" button at the bottom of the Postman window
      * Check for any error messages related to the tests. If you see an error, it might give you a clue about what's going wrong
      Step 6: Try running the tests individually
      * Instead of running the entire collection, try running each request individually to see if the tests pass or fail
      * This can help you identify if the issue is specific to a particular request or if it's a collection-wide problem
      -

  • @abhay6276
    @abhay6276 2 роки тому +2

    Sir what is swagger.? Is there any relation with Portman? Please reply sir...

    • @RaghavPal
      @RaghavPal  2 роки тому

      Swagger is a platform that can be used to describe the structure of your APIs in a way that machines can read them
      swagger.io/docs/specification/2-0/what-is-swagger/

  • @shahzaibidreesahmed4827
    @shahzaibidreesahmed4827 Рік тому

    Lovely 🙂

  • @rehameid2213
    @rehameid2213 Рік тому

    Hello , Is the monitor collection make the collection run automatically in any time without action from me ?

    • @RaghavPal
      @RaghavPal  Рік тому

      Hi Reham, it will run as per the schedule you set, check here learning.postman.com/docs/monitoring-your-api/intro-monitors/

  • @abhiramnp1701
    @abhiramnp1701 2 роки тому

    Hello sir I'm a fresher now currently I'm following your selenium classes and can you tell me what should i go for next ,which can help me get a job in quality assurance.What is the current trend to follow?

    • @RaghavPal
      @RaghavPal  2 роки тому +1

      Hi Abhiram, Learn framework creation, API testing, if you can learn some CI CD tools like Jenkins

  • @burkaycanhasanari8856
    @burkaycanhasanari8856 2 роки тому

    waiting new course Gj sir...

  • @ravireddy7155
    @ravireddy7155 2 роки тому +1

    Hi sir make performance testing (jmeter) new series sir

    • @RaghavPal
      @RaghavPal  2 роки тому

      Hi Ravi, can find here - automationstepbystep.com/

  • @apnastylecooking2168
    @apnastylecooking2168 Рік тому

    what is the difference between duplicate collection and create fork in collection

    • @RaghavPal
      @RaghavPal  Рік тому +1

      In Postman, you can create a duplicate of a collection or fork a collection
      The main difference between the two is that a duplicate is an exact copy of the original collection, including all of its requests and folders, whereas a fork creates a new copy of the original collection that you can edit and modify without affecting the original collection
      In summary, if you want to make a copy of a collection and make changes to it without affecting the original, you should fork the collection. If you want to make an exact copy of the collection, you should duplicate it.

    • @apnastylecooking2168
      @apnastylecooking2168 Рік тому +1

      @@RaghavPal So you are saying that if I will use duplicate copy of collection than I cant modify and update in that duplicate copy of collection. Changes will reflect to original copy of collection in case of changes in duplicate collection.

    • @RaghavPal
      @RaghavPal  Рік тому

      No, that is not the case, Just understand why we need forking
      Forking is useful when working on a team or collaborating with others, as it allows multiple users to make changes to the same collection without interfering with each other's work.
      you can merge a forked collection with the original collection by using the "Import" feature. The process of merging a forked collection with the original collection is also known as "pull request"

  • @chethuharireddy3156
    @chethuharireddy3156 2 роки тому

    Hi Sir tqu .. I got a new job because of you i followed entire java selenium suite.but they are working in Cypress automation frame work , now I have a dout whether I have to go or not and wt about cypress future/scope and it's is good or not for my career.
    Please respond to this , iam Regorsly waiting.

    • @RaghavPal
      @RaghavPal  2 роки тому +1

      Hi Chethuhari, you can go with Cypress, it is gaining traction, I will suggest to keep yourself updated with other skills too

  • @cestmoi3156
    @cestmoi3156 2 роки тому

    Hi sir I wonder why we have to run same requests many times when it gives the same result.

    • @RaghavPal
      @RaghavPal  2 роки тому +1

      There are several features of collection, I will make a video, You can also check the earlier postman playlist here - automationstepbystep.com/

    • @cestmoi3156
      @cestmoi3156 2 роки тому

      Thank you sir.

  • @malakabuhejleh358
    @malakabuhejleh358 10 місяців тому

    hello, thank you for your videos they are very helpful ,So I have question I don't have any real experience and I already learn java as programming language and selenium (junit and testng) and I can create POM framework from the scratch and Jenkins ,also I learn soupui postman restassured for API testing, So my question is Am I ready to apply for job as automation tester?

    • @RaghavPal
      @RaghavPal  10 місяців тому

      Malak
      Yes, you are ready to apply for a job as an automation tester. You have a good foundation in programming languages, testing frameworks, and API testing tools. You also have the ability to create a POM framework from scratch and to use Jenkins for continuous integration and continuous delivery (CI/CD).
      However, it is important to keep in mind that some companies may prefer to hire automation testers with experience. To increase your chances of getting hired, you can try to gain some real-world experience by working on personal projects or contributing to open source projects.
      You can also try to get involved in the automation testing community by attending meetups and conferences. This is a great way to learn about new technologies and trends, and to network with other automation testers.
      Here are some additional tips for applying for jobs as an automation tester:
      * Tailor your resume and cover letter to each job that you apply for. Highlight the skills and experience that are most relevant to the job.
      * Be prepared to talk about your automation testing skills and experience in job interviews. Be able to explain how you have used your skills to solve real-world problems.
      * Be willing to start at an entry-level position if necessary. This is a great way to gain experience and to learn from more experienced automation testers.
      I wish you the best of luck in your job search

  • @soumenmondal517
    @soumenmondal517 Рік тому

    How can I DELETE multiple data/record using postman?

    • @RaghavPal
      @RaghavPal  Рік тому

      Hi Soumen, this generally should be the functionality from API service side, there must be some API where multiple records can be given for deletion, The best we can do in Postman is to add a script which will extract the IDs from a GET API and run the Delete API taking IDs from the extracted list

  • @muhammadqasimnouman7261
    @muhammadqasimnouman7261 2 роки тому

    sir, is this postman series finished ???

  • @UdoADHD
    @UdoADHD Рік тому

    You never explain what IS a collection like what is it? What is it for? What does it do??

    • @RaghavPal
      @RaghavPal  Рік тому

      I will check and try to do a session on this

  • @mohamedshahrul1750
    @mohamedshahrul1750 Рік тому +1

    i hate postman because too much feature and buttons.. haha