What is API Testing? | Learn API testing | Part 1

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hi guys welcome to the channel so as a part of this video i'm going to talk about what is api testing many people on my channel requested me to make a video on this topic from long time finally today i'm making this for you so this video is going to be my second video on my playlist api that is application programming interface i'm sure that you guys will learn something new today and i'm giving a guarantee that i'm going to teach in such a way that you guys do not have to go anywhere else in youtube so let's get started guys also before i proceed to this video make sure that you guys have seen my api video without watching that i request you guys do not jump into this video because you guys will not understand this video until unless you have a knowledge of api so in this video i'm going to talk about less about api but more about epa testing i'm assuming that you guys have a knowledge of api in case you don't have please watch this video and then please come to this video because i'm gonna talk only about api testing in this video let's get started api is nothing but it is a logic that developer has written it and now being a software tester you are testing it and you are verifying that whatever the business logic was there it is meeting the expectation or not so this is called as apa testing epa is nothing but it's a logic that developer has written it and now you are testing it that is called as api testing in short word apa testing is nothing but testing the api that developer has developed is called as epa testing but to understand fully the epa testing i want you guys to watch this video for next five minutes i am giving guarantee that you guys will understand completely what do you mean by epa testing guys any application that you see ap is nothing but it's a logic application programming interface it is a logic that developer has written it back-end and any application that you see it is composed of two elements that is your back-end and front-end your back-end is nothing but api that means the logic that developer is written it and the ui that is front end that is nothing but user interface like what you see from your eyes in your any application let's take an example of any application let's take an example of whatsapp let's take an example of amazon let's take an example of flipkart i am naming these applications because you guys are very much familiar with these applications so any application that you see with your eyes any application that you are able to see with your eyes whatever is visible to you with your eyes is called as user interface so that is front end now coming to back end which developer is written it and that is called as api the logic the actual logic is called as api and testing that back-end part testing that logic that developer has written it is called as epa testing now since you have seen my this video it will be easy for me to make you guys understand what you mean by api testing i want to make you guys understand epa testing in two ways anyways which you understand is good in my first way of making you understand what is api testing guys understand any application that i am developing let's say any application that i'm developing for the first time i will make sure i have two team that is my ui team and my backend team now front-end team will do the job of how ui should look ui how user interface or how look and feel and application should be there this is a job of my user interface and now there is a back-end team what is the job of back-ending their job is to implement the api that is application programming interface logic they need to develop it and guys once backend team has developed the logic that is once backend team has developed the logic or once the backend team has developed the how api should work now the job of a software tester to take those apis which my backend team has developed it and finally test it now testing the logic that developer has written it that is called as api testing once my apis are working perfectly fine that means once the logic that developer has written it it is working actually fine then finally what i will do as a company i will integrate my back end with my front end that that means i will tell my ui team or i will tell my front end team or start integrating your full integrated software with the help of your backend logic now ui team will take those apis which is already been tested and verified by many software testers they will start integrating in the ui and then what's your final software will be ready and finally your software will go into the production this is how it works so this is the one way of making you understand what is api testing if you understand this well and good that means you have understood api testing in case you you have not understood this part let me give you one more example to make you understand epa testing very clearly now since you have already seen my this video making your understand api will be very easy for me now guys understand like i have developed an application being a company i have developed some software now to authenticate my users let's say guys just like amazon and flipkart tomorrow i'm launching an application just like the functionality will be same as flipkart and amazon but my the name of my company will be different let's say the name of the company will be mkd let's say just give an example so i have launched a company just like an amazon flipkart i have launched a company called as mkt now in that application i am allowing my users to log into the application with google authenticity guys you you would have seen that in many application when you download from play store it will only ask you to log into the application with google what you will do you will enter your gmail account you will enter your password and you will be able to log into that application right similarly the application which i have developed the application which is i'm creating i'm giving an option to the users either they can log into the application with their mobile number or else they can log into the application with google authenticity now now since i am taking the google's help to log into my application i am avoiding my developers work to write the code from scratch to log into the application right so what i will do i will ask google team who has already written api or who has already done logic to log into any application i will just consume their api in my mkt application and with the help of google authenticity or with the help of google api or with the help of google logic i will log into the application mkd now with the help of this i am avoiding the code to write it once again from starting i'm avoiding the work that developers should do for my authenticity and what i'm doing i'm just utilizing the google api or i'm just utilizing the google logic in my application and with the help of that user is able to log in so being a software tester of my mkt application my job is to just check whether i am able to login from google account to my mqtt account or not to my mkt application or not so integration of my two application that is my google's api and my mkt integration between them that is allowing google's api to log into my mkt application is called as api testing if you guys understood this part well and good guys i have tried my best to explain to you guys what exactly is epa testing i hope it is very much clear to you guys now let's go ahead to understand how developer will write apis now guys let's understand if my company name is mkt as i said that my if my company name is mkt now developer has to write a logic to create a user maybe to create a customer in their application so how developer will write a code is their host will always be mkt that is http that is mkt and then since they are creating a customer so they can write like create customer create customer now to create a customer this will be their url now they cannot create a customer just with the url so for that they will take body in this so what they can take is they can take first name they can take last name they can take mobile number now my developer has developed a logic or an api he has developed it to create a customer to create a customer in my application whose name is mkt he has developed this is how they develop the logic guys so they are developers are developing they are creating an api to create a customer and for that the input that is required is first name last name and mobile number with the help of this three they can create a customer so they have developed an api and they have they have given this logic to tester now how tester will do testing is while testing this logic and guys if you have seen my this video i already said to you guys that api testing cannot be done with ui that is user interface will be missing when you do apa testing and to do api testing there is a third party tool just like postman with the help of which you do epa testing so in that you need to enter this url you need to enter this body or parameters and this parameters value you need to pass that means i will give my first name let's say ram and my last name may be pundit and my mobile number can be anything any 10 digit number and finally i will see in postman whether a customer is getting created or not so my response this is my request guys this is my request which my developer has developed the request which developer has developed is is nothing but an api or a logic now if i give this url in the postman with this parameters with this values the response should be customer should get created and the created customer when you go and check in the database that customer should be created in database there will be a tab called as first name last name or a tab will be there for customer this customer there will be a tab from where you can go and check whether customer is really created or not so this is how you do apa testing i hope i am very much clear to you guys and guys if you remember my three layer architecture of my apa from this video i said that there is a business logic right now testing that business logic is called as api now developer they will develop this business logic with a set of url which i just showed to you guys now developing that business logic with a set of url with a set of inputs and finally checking the response whether it is correct or not is called as api testing which i just showed you guys very easy definition which i'm giving you guys since in api your user interface will be missing you use third-party application you use third-party tool just like your postman or soap ui to test your api with the help of which you send the url with its body or with its parameter you send the request and get the response you note down the response and you match it whether it is as per the expected result or not and that's complete your api testing guys software testers only perform epa testing and while doing api testing the code by which developer is written that will not be visible to you and since the code will not be visible to you while testing it it is also called as black box testing type now the question arises while doing epa testing what you know things are there that you need to keep in your mind guys to start with api testing the things that you need to keep in your mind are you need to make sure what is the request you are sending and how is the response coming and the response which is coming whether it is meeting the customer expectation or not whatever the response you have got you need to validate that perfectly you need to validate that whether it is how my customer is going to consume it or not so this is one of the most important thing while doing apa testing when you are sending some request and when you are getting some response the response should be in such a systematic manner it should be in some systematic manner by which my customer are going to use it the meaning is you remember i said you guys that when i am developing an application called as mkt i am consuming google api right while consuming their api what we are doing is the response we are consuming it right while doing api testing you need to make sure that the response you are getting is meeting customer expectation or not or else you need to make sure that whatever response you have got it you tell your customer or your other companies who are going to use an api to consume your body as it is so this is one of the main thing that you need to keep in your mind where you need to verify the accuracy of your data response while doing epa testing you also need to make sure that the response status quotes the response http status quotes whether it is correct or not now what do you mean by http status quotes i will be telling in maybe next video for now you just understand that while doing api testing this is one of the major thing that you check whether http response is correct or not you guys also need to make sure that your response time under which my request has given the response is matching my customer expectation or not response time you need to validate that or in case my application is giving some error you need to note down that you need to create and bur and give it to a developer developer should fix it and any error that is coming in the response is not a good thing is not a good practice in case you are getting any kind of error you need to get it fixed by raising a bug and telling developer to fix it you guys should also make sure that the authenticity is correct that is if you are allowing any other company to use an api you need to give the authenticity to each and every customer you need to give a particular api key with the help of which they should be able to consume your apis you need to make sure that authenticity is correct and you guys also need to make sure that the application or the api that you have developed is secure or not how you can do that since you will give api key to different different partners or maybe to different different companies to consume your api you need to make sure that if a particular api key is given to one particular company they should be able to consume your api with the help of only that particular api key and with the help of any other api key they should not be allowed to consume your api this is one of the major thing that you need to keep in your mind while doing epa testing guys this is all about api testing i'm giving you a guarantee that this is all about apa testing and you guys have not missed anything else i'm giving you a guarantee that this is all about apa testing there is nothing which is away from this api testing i have said you each and everything if you guys have understood this video make sure that you guys give a big thumbs up this video subscribe to my channel software testing by mkt and please share this video with any friends in case you have any kind of doubt list out all your doubt in the comment section thank you guys [Music]
Info
Channel: SoftwaretestingbyMKT
Views: 145,852
Rating: 4.8636818 out of 5
Keywords: api, api testing, what is an api, what is api, rest api, software testing, what is an api testing, softwaretestingbymkt, api testing tutorial, api testing tutorial for beginners, how to test API, postman api testing, postman api, how to test api with postman, Introduction to API, what exactly to test in API, api testing automation, api testing automation using postman, what is application programming interface, everything about API testing, how to do api testing, api tutorial
Id: jByWVOcWG9w
Channel Id: undefined
Length: 16min 28sec (988 seconds)
Published: Sat Aug 01 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.