Tosca API Automation - Lesson 04 | API SCAN RESULTS | Payload | API Request & Response |

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hi everyone this is Ravi welcome to PR and tasa API automation tutorial as you all know I've already published three lessons covering some basic concepts of tricentis TSA API automation this is our lesson four where you will learn more about API scan results which means I'm going to cover some of the topics related to AA scan message section and what are all the functions that are available in this message section and also we are going to see and understand the payload for for any kind of API request and also we are going to see some examples of API request and response messages by using tricentis stasa please do subscribe to the channel click on Bell icon you'll receive notifications whenever I publish more videos what is our lesson objective understand message section and functions available in message section of trient TSA AP scan and then we are going to look at the payload and try to understand the payload in apa scan and also I'm going to show some examples of request and response messages by using prasa API scan API results so the central window called as a message section in trien tasar tool it contains the general information of the message displayed in a moment okay that I'm going to show you and then this divided into five different tabs so let me open my tricentis tosa so this is my tricentis TSA we created API automation courses workspace in our earlier session so let me open the name workspace okay so this is my tri and tasar workspace and you need to navigate to API testing and go to API scan and click on start API scan so I've already covered these Concepts in my previous sessions I would recommend you guys to go through my previous lessons so that you can understand these Concepts very well so if You observe closely it opened my AP scan and you can see here my previous AP scan project has been loaded okay so I was talking about the central window called as a message section so this Central window right this is all your Central window this Central window from here to here this is your central window this is called message section and it contains the general information of the message displayed in a moment okay I'm going to show you and this Central window contains total five different tabs first tab is payload so which contains the messages APA request and responses so if you see here this is your your payload okay this contains the messages so let's open my post okay this one so this payload contains the messages your API request and your API response correct and then when we load the message first time the payload will contain only structure of the data so when I load the payload for the first time it contains the structure of the data but it does not have any values in it so we can fill in the necessary information to send and get actual response back from server I can fill in these values here this is default value I can fill with my actual values and then I can send and receive the responses that's what it talks about and then method so if you see here this is my method cor so this method is to identify the HTTP method used to the request in some cases if HTTP method is get the payload message can be empty you see here this is my post method correct HTTP method post that's why I can see the payload whereas if I go back to my get method this is my get method so in this case the message section the payload section will be empty okay and then the end point so there is another section called end point okay this is my end point so this defines the API based URL okay and then resource if you see here this is your resource so this indicates the resource identified for this end point okay for this end point this is my resource that I have identified for any given API request and then what is my next tab the next tab is parameters tab go back to your parameters tab so this parameters tab this allows us to display an editable parameters these we will be covering in future lesson basically you can basically here edit any parameters that you want to have so in our earlier session we already used an access key that we provided here right so other than access key you can edit an any number of parameters that you want okay so regarding these parameters I'm going to cover in our Le next lesson and then next tab is Authentication so you can provide different types of authentications here you can use your basic authentication you can use AP sorry AWS authentications and then you can use oath authentications so I'm going to cover these authentications in later chapters and then attachments tab so this is your attachments tab why do we use this attachment tab the attachments tab allows to display added attachments when for example an image could be set when trying to test the capability of an API that generates new user profiles including profile pictures so that is where you can attach your profile pictures here okay and then my next tab is header section if you see here the header section is this side right side you click on this it displays your header section so what is this header section this header section depending upon whether you the request or response message is selected headers shows either the request or the response options if you see here when I select request it shows headers of request when I select response it show it shows the response options now let us concentrate mostly on payload section with testing a functionalities of the scanned API that we can start now let me go to my payload we are going to concentrate on this payload message now let's hide this headers so now let us concentrate on this payload so what are we trying to achieve here first we are going to verify the list of coffee shops by sending a payload message and then we are going to add a coffee shop to the list and then we are going to verify that the shop has been added correctly to the list so we performed all these activities in my previous session by using swagger tool that is provided by katalon but today we are going to perform all these API request and responses and we are going to analyze the request and responses by using trient tasa API scan first verify the list of coffee shops let's go back here so first this is my cofish module expand this and here this is my get coffees right I'm going to get the coffees here so as I told you because I'm using get method your payload message will be empty so now let us run this when I run this I should receive the list of coffees that is available in the system but if you see here I'm getting some error basically so we have to provide the access key let me go back to my prage tasa cloud training website from where I can generate any new access key right so this is my new access key I'm going to copy this access ACC key and then I'm going to provide the access key here now let me run this particular API request to get list of different coffees that that are available in the system so run this now when I run this see now I can find these many different types of coffees in the system total nine types right I can see total nine so this is my id9 okay now we need to add a cof coffee shop to the list now I want to add a new coffee to the list okay so let me go back to my post coffees list okay you can perform same thing for the coffee shops also but I want to perform this particular action for coffees okay let me add coffees so first add a coffee shop instead of coffee shop we are going to add coffee to the list okay I'm I'm going to add a coffee here I'm going to say sweet mocha okay sweet mocha and then I'm going to say delicious coffee flavored okay so as I told you as soon as you load the payload it actually displays the default values now you can edit the values in each tag with your own values that you would like to send in a request and ID I don't want to change because this ID is a unique so when I send the request in the response I'm going to get my unique ID okay and then what is your uh so you need to switch to the request view instead of response view okay switch to the request view here what is the method my method is post method and here again under parameters you need to add your access key that we just now generated this is my access key copy this and paste it here so now let's run this now oh again I think we oh this is actually has been removed let me provide this as Tre coffee mocha okay I'm going to say Del ious twet flavor okay so we provided authentication access key and then we provided the values that you would like to send in request so now run this as soon as I run I should get the response see I got the 200k response here I can see 200k response and I got a unique ID 10 and I got the response with the same same names that I have provided in the request 200k is Success response now as we added a new coffee into the list now verify that the coffee has been added correctly to the list now let us go back here now again let's go back to your get coffee request message now instead of response view this we are in response view right I can see total nine earlier now I want to go back to my request view I have already I have provided my service key let's go to payload now and run this because I'm in get method the payload message will be empty so don't get confused so now run this now I should get the total 10 coffee list and the 10th coffee should be my newly added coffee see id10 has sweet coffee mocha and then delicious sweet flavor so that means now we have added a new coffee to your system by using tricentis tasa API request and getting the response right so we explored this entire Central message and what are all the different options and tabs that are available in the central message right and we understand about the payload message and we have seen how can you send an API request to get the list of coffees and how can you add a new coffee by using the method called post and then how can you verify that the newly added coffee has been successfully added to your system so this is how you can use your API scan message section if you have any queries leave your queries in the comment box hope you all understand the concepts of API results where we have learned about the different functions that are available in message section and also we try to understand about the payload and we have seen some examples how can you send and receive API request from server and we saw some examples by adding coffee to your system and then we have verified if the coffee list has been added to the system please do subscribe to the channel click on Bell icon you'll receive notification whenever I publish more videos thank you [Music] oh
Info
Channel: Ravikanth FicusRoot - Tech Videos
Views: 796
Rating: undefined out of 5
Keywords: Tosca, Tricentis, Tricentis Tosca, Automation Tool, Automation, Tosca Automation Tool, Tosca Tool, Tricentis Tosca Automation Tool, Module, Rescan, Tosca 16.0, Download, Navigate, SUT, Properties, Controls, Test Steps, Run Tests, Verify, Loop Statements, Cleanup Scenarios, Repetition, Constraint, Selfhealing, TBox, Intervals, Web Table, TRIM, Replace, API Scan, API Testing, Message Payload, API Request, Response, API Scan Project, API Results, Payload
Id: BMZ_wU5Mm6c
Channel Id: undefined
Length: 16min 38sec (998 seconds)
Published: Mon Feb 05 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.