Tosca API Automation - Lesson 05 | API Automation – Part 1 | Export API Scan Results to Tosca

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hi everyone this is Ravi welcome to price and tasa API automation tutorial as you all know I already published five different lessons covering topics like introduction to API services and then introduction to API scan component within tricentis tosa and what are all the different options that are available in API scan project and also I've explained you about the API scan results so this is our lesson five where you will learn how can we automate APA test cases by using trien stasa so this will will be our part one session so I'm going to publish some series of videos to complete end to endend process of automating the API test cases by using TS so this is our part one where I'm going to teach you how can we export API scan results to tasa so that you can start automating your test cases please do subscribe to the channel click on Bell icon you'll receive notifications whenever I publish more videos thank you okay so what is lesson objective the main lesson objective is we are going to learn how can you export API scan results into TSA or the TSA Commander so that we can create automated test cases and first of all whenever you export any API result every message that you exported from API scan to Tasco Commander will return into two modules and two test steps and each module and test step represents either request or response part of the message to allow Tsar to automate and test the API and set Dynamic parameters so basically whenever you export your API scan results to trient tasa it creates modules and also it creates test steps represents either request or response so basically in modules you will have a request module response module in test cases you will have request test case and response test Cas and you can automate your test cases based on request as well as based on your response and then you can set the dynamic parameters so that you can automate your test cases by using Dynamic variables and modules contains the technical information of system under test here what is our system under test I already explained you in my previous session is coffee shop I would recommend you guys to visit my previous session if you see on the screen the process diagram illustrates whatever we discussed so once you export the message that will be turned into module a and test step a module B test step B and these represents request and response that means for one API operation it creates two modules one for request another for response in the same way it creates two test cases one for request another for response and this allows us these module and test step whatever we exported from API scan results that allows tasar to automate your test cases and you can set Dynamic parameters now let us go to trient tasa and let us understand whatever I discussed with you right now okay so now now this is my trient tasa and in my previous session I already explained about this API scan module or the API scan component so you need to navigate to AP testing so first of all I'm into a trient task of workspace we already created the workspace and then Ive explained about this API testing and API scan right you go to API testing Tab and then you need to click on start API scan because in earlier sessions we already performed APS scanning by using the visal URL that is provided by present tosco which is sample coffee shop APA Services okay so now as soon as you click on API scan it opens your API scan project if you see here now it is opening your API scan project correct so let us expand this before you expand this so I was talking about exporting the messages right if you see here every message that you export from AP scan to Tasco Commander will turn into two modules two tests now how can you export your APS scan results let's go to APS scan so let me do one thing let me quickly uh let's say let me go to shops under shops I would like to execute one quick uh let me see a simple post shops okay so let me explan this this is get shops sorry here you have two Services Under shop three services one is get shops post shops and then put shops so let me open this get shops now so if you see here this get shops so you can see this entire structure in the left side right this because earlier we created this project that's why it opened the same project whatever we worked on earlier okay so I have explained this in my previous session I would recommend you guys to visit my previous session so now I'm in post shop right now let me post a shop here okay let me post a shop that means I want to create a new shop what is the city I want to create in Atlanta what is the country USA ID is going to generate unique ID anyway I don't want to change that and then what is the name of the shop I'm going to say it as [Music] uh good morning coffee good morning coffee shop okay I'm naming this as now to run this particular service you need to have authentication access so basically you need to have access key so I already explained you from where you should get the access key we can get the access key from this website right so here you need to copy the same service access key and then past service access key here okay and now run this particular post shop Service as soon as I run this it's going to give me a response with 200k 200 okay status code which means the newly created shop has been created successfully the newly requested shop has been created successfully in the database so if you see here remember this shop name okay good morning coffee shop if I go to get shop shops here let's go to get shops request and here if I run this before I'm running this I need to again paste the access key here and then run this when I run this I should get the newly created shop see this is my newly created shop right now to export whatever the scan results we saw right just now these two Services let's assume get shops and then your uh post shops now to export these API scan results you need to select API test case module in the ribbon APA test case option in ribbon you see the APA test case option currently you have three different options AP test cases OS scenarios XML Json test cases let me go back to my slide here you see here the WSC scenarios this particular option is not available in latest version see you don't have that that means that is no longer supported by tric and then there is another option osv scenarios osv scenarios will be covered in OS related course and then XML or Json test cases so this is what will be covered in this course in a later sessions I'm going to cover this in later YouTube session but we are going to talk about API test cases this is our Focus for this particular session okay and then now let us again go back to our rent tasa now how can you export the API scan results let us see step by step what is first step I need to do firstly select the messages to export into tasar so before you select the messages export into tasa as I told you earlier you need to create a component folder where let's go to home click on Project under project you need to create a new component folder how click on Project root folder and then create component folder I'm going to create component folder saying API test automation okay so this is required to export or to import your API scan results to this particular folder so before you export APS scan results to your trient tasa you need to select this folder first select this folder now go back to your API scan right now firstly select the messages to export into tasar so let me go back here this one message I want to select get coffee shops and then post coffee shops let's assume I want to select these two operations within the service and then next here to select multiple operations are to select multiple functions the shift and click function does not work within the aps SC however you can use control key to select multiple operations control key to select multiple operations select this control and select this okay this way you can select multiple messages or operations and then let's select get post messages in the shop folder for now what I'm going to do I'm going to select get and post by using control right and then now message can be exported by clicking option APA test cases in the ribbon and then by default component folder will be called as API _ import and then you can rename so that it is easy easier to identify let me see now I selected these two simply either select this and then go to API test cases and Export or you can directly select API test cases let me go back to my tasa also let me open tasa also so that you will understand what I'm talking okay now make sure you selected this component folder okay then go back to your API scan window I already selected these messages by using control key and then click on API test cases as as soon as you click on AP test cases if you see observe closely this is my trient toar these API results should create modules and test cases in the newly created component so now let me minimize this or let me go back to my trios expand this if you see here whatever the component I created right right I can see there are four modules that are created okay let me expand all these okay so if you see here let me expand all these again see here now I have selected two operations get and post you can see one module with get coffee which is request another module get coffee response and another module post coffee request post coffee response these are your technical information same you assume like web automation I have already published almost like 45 YouTube videos by using trient tasa how can you automate web application right so in the same way these are your modules created by your API scan and this will contain your technical information of your coffee shops that means request messages and response mess and these are your test cases by default or automatically the test cases also got generated get coffee you have get coffee get request and then get coffee response you have get post coffee request and then post coffee response that means by using APS scan itself I'm able to export my API scan results into Tri and tasa so that it created modules for you and also it created test cases now right now by using this automatically generated modules and test cases can start Auto automating your test cases related to API let's go back here again now so that is what we saw just now right and then you can start automating APA test cases by using the information that is created by APS SC now I'm going to publish part two and I'm going to show you how can you automate the test SK es how can you use the technical information from the modules right and then how can you create Dynamic parameters right all these Concepts I'm going to cover in my next three YouTube sessions if you have any queries leave your queries in the comment box I'll try to respond to your queries hope you all understand the concepts of API automation part one where there I have explained you about how can we export the API scan results into tricentis tasa Commander so that it creates the technical information modules and it creates the test cases automatically upon exporting your API scan results so that you can start automating your API test cases please do subscribe to the channel click on Bell icon you'll receive notifications whenever I publish more videos thank [Music] you
Info
Channel: Ravikanth FicusRoot - Tech Videos
Views: 1,014
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, API Scan Results, Export
Id: gcsHB2Gbmk8
Channel Id: undefined
Length: 18min 50sec (1130 seconds)
Published: Thu Feb 15 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.