Hi Raghav, you can`t imagine how helpful your videos have been towards my learning everything Automation... they have been very helpful and handy. Thank you and may God continue to bless and endow you with more knowledge.
The way you present every topic (so suscint and fast) is quite interesting form me, you mantain the level of attention in your explanations. Thanks again indeed!
@Rahav, thank you for the Postman Videos. In regards to Environments, is there a way to take the returned "token" value and save it to an environment variable from the "Tests" tab? Thanks again.
Hi Raghav, thank u for explaining in detail. I have one doubt i.e should I keep on adding environment and change the values like username and password?
Hi Achyut, the ideal use of environment is to store the values that vary with Build, OS, platform etc. So that whenever you need to change, you don't have to change them at multiple places and do updates in requests, tests etc. For example the username and password will be different on QA env and Dev env. If we need to run the same tests/project on QA we can just update the environment and save time and effort.
@Raghav Pal Sir your sessions are easy to understand but there is a one request like see in this session you are talking about creating environment also please elaborate in simple words what are the benefits of it, why we use it, if we will not create environment then what complications we might be face like this then with this with practical concept will be more clear. Like in short why we need to do this.
Hi Raghav, after setting the values in the environment i m getting 404 not found error, but before that it is giving the token value ....why it is happening?
Hi Priya, pls check you have saved after adding variables. Also ensure the variable values are correct and are referenced properly. You can also debug like this - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ne1RsYcgkSY.html
Hi Raghav, I am new to testing automation and your videos have been a great help so thank you. I just wanted to know what languages do you advise to study in order to use postman or other automation tools? I only know basic programming. Is it advisory to know advanced programming in order to be an automation tester?
Hi Tate, great to know this and you're welcome. For Postman basic javascript will help. For an automation tester it will help to understand the basic concepts and object oriented concepts in any programming language. You can go with Python. its easy and in demand these days
@@RaghavPal Hi raghav, thanks for the response. Do you have an email address for testing queries? I have a postman query that I would like assistance with. Thanks.
Hi Raghav, When you add a Header, first of all why should we add a Header, and (2). what is the purpose of using content-type = application.json. What happens when we use this header. Please could you explain here.
Hello Raghav, I followed the steps and I am able to set the Environment and getting the token when I run it. I am trying to print the values of email & password using console.log command and getting error " ReferenceError | email is not defined" please advise.
I have using 7.22.1 version. When i set same value at INITIAL VALUE & CURRENT VALUE field, it get sucessfully. Please let me know we have to put same values in these two field always? Thanks in advance sir..
Hi Shiva, you can just put your required value in Current column. Check this for more details - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-5aMqyXZRvxg.html
Hi Atul, global variables will have the same value in a project, If you create env variables, you can create multiple env and select the required env during execution
hi Raghav Pal , thx for uploading the tutorials. they are very helpful for a better understanding of postman. Do you know if there is a way to arrange requests per environment? requests a, b and c shall only be executed on environment IQA and FQA(preProd) but not on PROD environment. requests d, e and f can be executed on all environments (IQA, FQA(preProd) and PROD). thx in advance. regards.
Hi Nafets, I believe you can organize them in diff folders and name these folders as PROD, IQA, FQA etc. Now you can run a specific folder both from Collection Runner and from Newman CMD
Hi Ragav,lets suppose QA environments have different type of user role and every role different username and password so in that case how to update environments your tutorial is very helpful and lot of informative ,Thanks a lot Prasad
Hi Prasad, so whatever values can change with env, keep them as env variable and you can provide values accordingly. And during execution you can select the env on which you want to run
Hello Raghav, After I set the key to Content-Type and Value to application/json, I am still getting error 'Missing email or username' What should I do? Hoping to hear from you soon
I have been able to get it right. It was not explained in the video though. What I did was to switch the language. I was on json, I just had to navigate from json to json again
Hi Raghav, after {{endpoint}}, {{email}} and {{password}} and changing url to end point ,when you run your token section automatically shows Jason but mine shows big list of values in HTML,when changing it to Jason (it says can't beautify)it shows error 'unexpected '
3:17 I followed everything you did up untilt his point (or tried to - the Content-Type is now auto-generated, you have to change the variable next to raw in the Body), but when I click send, instead of getting a token back, the request times out. I don't know what I could explain that might help diagnose this problem, so all I can do is ask if you might know what would cause that.
Worth to watch all your videos, In your video once you have updated the content type and its values we got the token in result right, but my question is how to identify these things i mean once i got an error in result tab how to debugging this error raghav. could you help me.
Very valid question. I am creating a video on how to create tests and how to debug. You should get it in 2-3 days. Pls subscribe to get notified on new videos.
I’m trying to export my collection to json file which I can distrubute among the team, can I export environment as well with the collection. Pls help to clarify . Thanks
How does it differentiates between variables from different places. Say I defined variable "email" (in Environment, Local & Global) and use/consume it as {{email}}, how does it know which one to use? Is there a said priority-order logic?
Hi Prasanna, The diff is as follows: 1. Scope- Environment variables can be accessed with the corresponding environments. Global variables can be accessed broadly regardless of the selected environment. 2. Priority : priority is as follows: - local - data - environment - collection - global So in case a global variables shares same name with an environment variables, at runtime value will be referenced from env variable 3. Getting & Setting variables through scripts - Global - pm.globals.set() - pm.globals.get() - Env - pm.environment.set() - pm.environment.get() learning.getpostman.com/docs/postman/environments_and_globals/intro_to_environments_and_globals/
Hi Sajid, when you work in organizations, there are diff environment for Production, Testing, Development etc. By environment, we mean servers, infrastructure etc. So the same application can be deployed on these environments and Dev env will be used by developers, QA env will be used by Testers etc. Now there will be some parameters that change with env. We call these as env dependent parameters. This can be like in a web application URL USERNAME PASSWORD etc. So while testing it is a good practice to keep these values in global variables and can be changed without going inside the scripts whenever you want to test on diff env
Hi Bharti, Pls check the following 1. The variables are referred correctly (syntax) {{varname}} 2. While referring from env variables, the env must be selected from the env dropdown from top right corner
Hi Mohit, In REST we have to tell the server what representation of content to accept. This may be optional in some cases. This you usually get from the application details. Usually application/json works generally
Hi Uddeshya, Hope you have selected the env from dropdown before execution. Pls check the following 1. Requests were saved 2. The spelling, cases, whitespaces etc of variables used in request is same as the name given in env 3. Watch this - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ne1RsYcgkSY.html to debug and check what values are referred during execution
Hi Raghav, when I add the environment {{endpoint}}, {{email}} and {{password}}, when changing the body to filet in JSON, I get an error stating unexpected '
Automation Step by Step - Raghav Pal I want to learn in detail automation in postman. Wil it be there ? Since it is paid so if you confirm that Detailed course is there , I will go for it
Generally you will get these details if testing your or client APIs. And in general in the response of an API is json, this is what we use in content-type
Hi Raghav I'm having problems getting expected results after I SAVE and SEND POST ...I'm getting 404 NOT FOUND. I've tried everything as you have instructed and I even deleted/started from scratch my POST but I keep getting the same results. Instead of showing the toke , i see HTML code (i had saved as raw/JASON). Please help!
Hi Haynes, Pls check the following 1. You have saved the request 2. You have selected the env from the dropdown 3. The references are correct (syntax, spelling) 4. Check for variables spelling, cases, white spaces etc 5. In case you still face issue, Check on Postman console, what the value being referred from env variables, You can watch this - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ne1RsYcgkSY.html
Hi Haynes, did you check this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ne1RsYcgkSY.html to see what is the value of the variable being referred during execution
im getting { "error": "Missing email or username" } this erroe even after giving content type and applicationjson ..what to do bro now? edit:- it has generated token now :)
Hi Ashirbad, just check you are providing the correct values and referring the variables properly. Take care of spelling, cases and spaces. Also save request before running.
I am biggner for Postman I am trying check email and pass word as it is this vedio but result are different so please help me. My case are email are different post register success full and your case in email are different but response are in sample api reqres but my result is different so kindly help me
@@RaghavPal aapne jo sample api me POST ka use kiya uski mail ID alg aur mere case me Post ki mail ID alg but response dono ka same hai leki jab ham collection runner karte hai to aap ke case me alg aatha hai aur mere case me html code aata hai
Hi Ravi, for Postman pro its GitHub integration is provided out of the box, but you can still do it by creating an account on GitHub and then get git on your system and version control the collection file. You can see this - ru-vid.com/group/PLhW3qG5bs-L8OlICbNX9u4MZ3rAt5c5GG
I also had issue with {{endpoint}} {{email}} {{password}} returning 404. Turned out for some reason these vars weren't copied from Initial to Current, or maybe there was invisible Space in Current - anyways, as soon as I reset these values and Current mirrored Initial - the request returned 200 for me. Version 7.21.1 (7.21.1)
@@RaghavPal Yes, for some reason they were not automatically copied to Current, though I saved request and re-entered valued multiple times. I think only Reset Values button was the trigger to make things work properly. Thanks for your response.
"email":"{{email}}" "password":"{{password}}" this throws error...404 .. i have saved values in the Qa env and also selected the env and then i send but it throws error..
Hi Sagar, did you check if providing hard coded values is working. If yes, pls recheck the values in variables and ensure there are no spaces (leading or training), spellings etc. Save and run. You can check Postman Console to check what is the actual value referred.
@@RaghavPal yes it works fine with hard-coded values. But when I use variables as said above..it throws error and console show's blank values..anyways I will figure out..but brother thanks for so simple and easy tutorials..can you make one series on a live project where we are using all things in that project so we can get an idea on how things move ..you can add that project on git we can pull from there..thanks once again