Rest API GET Call using HTTP Client || Validate JSON Response - Rest API Automation - Part-4

  Рет қаралды 93,109

Naveen AutomationLabs

Naveen AutomationLabs

Күн бұрын

Пікірлер: 82
@vandanamishra6748
@vandanamishra6748 3 жыл бұрын
Naveen .. ur teaching is that shining star which can enlighten anyone’s path .. ur way of explaining each topic is so simple and beautiful.. ♥️
@bharatvarshney2666
@bharatvarshney2666 6 жыл бұрын
Good Going. We will be waiting for more videos on REST Web-services Automation
@sravanthisonnathi8407
@sravanthisonnathi8407 3 жыл бұрын
thanks a lot naveen for your vedios....explanation is realy fantastic..anyone can understad and implement in realtime....bow to u.....
@vishakhagaikwad3702
@vishakhagaikwad3702 4 жыл бұрын
Thanks a lot Naveen!!! you are simply great to helping the people in so easy and simplified manner!!!
@mariabajwa8632
@mariabajwa8632 5 жыл бұрын
Amazing : Done header assignment as well.Yes api(backend) testing looks scary but after going through all the videos , its makes easy every thing with crystal clear concepts ..thank you ..No One can explain better than you. thank you..
@rohanchristopher2265
@rohanchristopher2265 4 жыл бұрын
header assignment what you have used is that same utility or Entry / entrySet ???
@manpreetkaurchopra7004
@manpreetkaurchopra7004 5 жыл бұрын
Hi Naveen, Really appreciate the efforts you are putting in making this videos...these are very helpful.... I have a doubt naveen....If you are working in some company how we get the url for the api testing..do the companies share that url...
@priyankabonam
@priyankabonam 2 ай бұрын
@Naveen, I guess you have missed the important step of adding authentication to the framework which is must to test API of any software company. can you help with those steps as well
@praveenbiradar8468
@praveenbiradar8468 6 жыл бұрын
Hi Naveen Thanks for detailed Explanation you are fabulous i have one question in TestUtil.getValueByJPath () Method Why the 2nd parameter should preceded by "/" e,g " /total_pages" in getValueByJPath(responseJson,"/total_pages");
@tkishore1260
@tkishore1260 2 жыл бұрын
Thank you so much sir. You are my saviour
@santhoshbk2437
@santhoshbk2437 6 жыл бұрын
Nice video's. will be waiting for more video's on PUT and DELETE
@amitbhardwaj7824
@amitbhardwaj7824 4 жыл бұрын
nice video keep uploading...
@vijayakrishnan1728
@vijayakrishnan1728 4 жыл бұрын
Wonderful video..thanks a lot Naveen.. no words to explain how much your helping people like me.
@davidjohnson786
@davidjohnson786 5 жыл бұрын
always outstanding !! practice makes perfect
@shwetankmishra4531
@shwetankmishra4531 6 жыл бұрын
Hi Naveen, Nice video. But Please explain the logic of TestUtil class method -getValueJPath. I mean the logic that how this method is woking to fetch the value of JSON object and JSON array.
@elefteria8251
@elefteria8251 Жыл бұрын
Thank you a lot!
@meghajain7599
@meghajain7599 6 жыл бұрын
Hi Naveen, Videos are very helpful waiting for the concepts of POST, PUT Please share as soon as possible.
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
Here u go : kzbin.info/www/bejne/oYebhn6GnZJ7eK8&
@krishnark1191
@krishnark1191 4 жыл бұрын
Thank you Naveen Very good explanation keep going
@thediamondwings6451
@thediamondwings6451 5 жыл бұрын
Perfect......guru 😘
@sujatasinha6680
@sujatasinha6680 5 жыл бұрын
Hi Naveen, i have learnt a lot from your videos.I faced some questions in the interview which i could not find answers, hope you will answer them. ques 1 - they asked how will i check the response, means though the response code is 200 but what if the response itself is blank, there is no point checking the tags as the response is not correct. 2nd ques - they asked any api can be consumed by both gui based applications and non-gui, basically differen types of applications, so as a tester when i get the response how will i test that which response tags or key-value pair for JSON response is for application 1, which part of response is for application 2 etc. i hope I am clear with the questions. thanks in advance.
@47raja
@47raja 6 жыл бұрын
Naveen, I'm looking forward from you to post videos for HTTP POST , PUT and DELETE request. Thanks Raja
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
Here u go : kzbin.info/www/bejne/oYebhn6GnZJ7eK8&
@laeeqahmed1980
@laeeqahmed1980 6 жыл бұрын
Great videos Naveen, Its says part 3 but then its part 4, so please correct. It will make easier to search.
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
Here u go : kzbin.info/www/bejne/oYebhn6GnZJ7eK8&
@theshakeel2003
@theshakeel2003 6 жыл бұрын
Hi Naveen, Can you please explain how to send parameters query along with url using GET method
@SuyashNande
@SuyashNande 6 жыл бұрын
Hi Naveen, I have OAuth2.0 in my application. I am able to successfully get the access token in POSTMAN, but how to implement OAuth2.0 is java? Could you please let me know?
@mohammedsorowarjahan490
@mohammedsorowarjahan490 6 жыл бұрын
Hi Naveen, Thanks for Sharing your knowledge. i wattling your POST , PUT and DELETE request Video pls do As soon as possible.
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
Here u go : kzbin.info/www/bejne/oYebhn6GnZJ7eK8&
@ravikumr8971
@ravikumr8971 6 жыл бұрын
hi Naveen, My API call requires an Authorisation with type as Basic type and authorisation credential detail. So can i pass these detail as part of headerMap.put() . And there are so many authorisation type in postman like 1 Basic Type 2.Digest Auth 3.QAuth...Then how to select any one particular authorisation type...Plzz help
@shamimachy
@shamimachy 6 жыл бұрын
Best Lectures .........
@riteshkumar6403
@riteshkumar6403 6 жыл бұрын
Very informative video.
@ayaskantmohanty1877
@ayaskantmohanty1877 7 жыл бұрын
Hi Naveen, These videos were very helpful for working in Rest. But When will you upload the Post, Put and delete?
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
coming soon! :)
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
Here u go : kzbin.info/www/bejne/oYebhn6GnZJ7eK8&
@MrArunkumardash
@MrArunkumardash 2 жыл бұрын
how to validate the response if we have a long list of json array as response , do we have any easy way of doing sir ?
@amolnawale2177
@amolnawale2177 6 жыл бұрын
Hi Naveen, In the getValueByJPath method, how can we get the size of the JSON Array. Is there anyway, I can create array of the common key elements say for e.g. String[] firstName OR String[] lastName and I can then iterate over these arrays to check for the expected firstName or lastName.
@sanjaykumar-lv5qv
@sanjaykumar-lv5qv 5 жыл бұрын
Hi Naveen i have a doubt on karate jar used for web service testing.
@snowbergstream1636
@snowbergstream1636 6 жыл бұрын
Really helpful..
@daisygogoi9375
@daisygogoi9375 4 жыл бұрын
The different values in the body can be obtained by using get on the json object?
@payalmodi9377
@payalmodi9377 4 жыл бұрын
hi naveen firstly thanks a lot for amazing tutorials. adding to that i had query that when i insert break pt and debug the code , i get sigantureParser.current()line not found error.. when i remove break pt it works well. how can i solve that error
@amolnawale2177
@amolnawale2177 6 жыл бұрын
Hi Naveen, Can you please tell me how do we pass a "x-www-form-urlencoded" in the Body of the POST call instead of a JSON string? I have a requirement of creating an oAuth token which accepts the input in "x-www-form-urlencoded" format.
@kiran10634
@kiran10634 5 жыл бұрын
Thanks Naveen for the detailed explanation :)
@TyroOfErth
@TyroOfErth 6 жыл бұрын
Superb content
@mahavir1988
@mahavir1988 4 жыл бұрын
Hi @Naveen... Can you please let us know if there is any method to add payload with Get?
@pritamkumarroutray8925
@pritamkumarroutray8925 7 жыл бұрын
Hi Naveen, When are creating the videos of Put, Post and Delete??
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
Here u go : kzbin.info/www/bejne/oYebhn6GnZJ7eK8&
@AnnasNitin
@AnnasNitin 5 жыл бұрын
I have a requirement in my project to validate the JSON response from API against the DB values. JSON response is huge (sometimes 3k lines) and query result is also sometimes more than 5 rows. JSON response also contains complex hierarchy (parent, child, grandchild nodes and so on). Can anyone suggest best way(s) to validate this kind of complex JSON structure against DB values?
@nishachopra2786
@nishachopra2786 4 жыл бұрын
A good question ... Following
@DeepakMishra-ql4gh
@DeepakMishra-ql4gh 4 жыл бұрын
Hi Naveen, Thank u for the great tutorials. I am facing 1 issue can u help me out Actually, I have to test Get Request API with a different set of Headers example: - different authID or token and after getting result I need to validate response JSON with respect to Headers how to achieve this, please help me out
@schennalli
@schennalli 6 жыл бұрын
Your videos are really helpful. Can you please make a video on parsing json string using jackson object mapper and asserting the same.
@amolnawale2177
@amolnawale2177 6 жыл бұрын
Also, if we have an API call that returns a specific firstName or lastName and the JSON response is as below: { "data": { "last_name": Bleuth, "id": 123, "avatar": "www.xyz.com/abcd/pqrs.jpg", "first_name": "Janet" } } Then how do we get the array element say for e.g. first_name. I tried with the below code String firstnameValue = TestUtil.getValueByJPath(responseJson, "/data[0]/first_name"); But I am getting class cast exception as java.lang.ClassCastException: org.json.JSONObject cannot be cast to org.json.JSONArray
@amolnawale2177
@amolnawale2177 4 жыл бұрын
hi Nisha, i moved to Rest Assured framework later on and it worked with that approach.
@kevinxp919
@kevinxp919 6 жыл бұрын
Hi Naveen, Could you please explain the get Array method? It is very confused for me, Appreciated.
@premmurthy3837
@premmurthy3837 6 жыл бұрын
Hi Naveen,Thanks for the Video ,Pls share how deal with nested array of JSON
@anupamdas1053
@anupamdas1053 Жыл бұрын
Thanks!!
@vikrantshekhar5270
@vikrantshekhar5270 5 жыл бұрын
Hi,can you please tell me about how to handle authentication in header
@punithrs1323
@punithrs1323 5 жыл бұрын
How to add authentication headers to GET call in the url? Especially I have to use GET call to get response from BitBucket where I have a bearer token ID. so how do I use it?
@bhaskarreddy9042
@bhaskarreddy9042 6 жыл бұрын
Hi Naveen I am waiting for delete, post and put methods api automation.
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
Here u go : kzbin.info/www/bejne/oYebhn6GnZJ7eK8&
@ashimnayak1234
@ashimnayak1234 6 жыл бұрын
Hi Naveen Thanks for Sharing your knowledge.Can you tell me how can I automate basic auth in @BeforeMethod
@RABANAND
@RABANAND 6 жыл бұрын
Could you please explain why the JSON object is cast to object before reading the GET response?
@farhatparveenkhan8773
@farhatparveenkhan8773 6 жыл бұрын
Hi Naveen I am waiting for delete, post and put methods api automation. Is it any paid session for it. Let me know asap, desperately I am looking for it from your site
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
Here u go : kzbin.info/www/bejne/oYebhn6GnZJ7eK8&
@shashwat4670
@shashwat4670 6 жыл бұрын
The RestClient object is not resolvable to any type in windows. Can you suggest any resolution....
@rihaskh
@rihaskh 4 жыл бұрын
I am getting this exception "java.io.IOException: Stream closed " .while creating multiple test cases .Plese hel me
@KnightTraders
@KnightTraders 6 жыл бұрын
Hi Naveen, Can you help me how to find the size of JSON Array?
@sdetworld5654
@sdetworld5654 5 жыл бұрын
i am unable to execute testcase because i am getting Testng Result Listening job.it never stops.i googled but i did not get any solution .
@raghuveermh6869
@raghuveermh6869 6 жыл бұрын
Hi Naveen, I am getting Null pointer Exception in the line where we are checking the status code, Please tell how to resovle this
@shwetankmishra4531
@shwetankmishra4531 6 жыл бұрын
I think he explained the same in his video that where we are matching the value then both(Actual and expected value) should be of same datatype.
@debajyotimohapatra175
@debajyotimohapatra175 5 жыл бұрын
Hi Naveen, Could please tell how to pass basic auth (Username and password)
@KnightTraders
@KnightTraders 6 жыл бұрын
Can you please give me a syntax to identify array size?
@ashwiniborhade3382
@ashwiniborhade3382 Жыл бұрын
hi @naveenautomationlabs ,I am getting below error while GET call.. java.lang.NullPointerException: Cannot invoke "String.length()" because "this.input" is null at java.base/java.net.URI$Parser.parse(URI.java:3165) at java.base/java.net.URI.(URI.java:623) at java.base/java.net.URI.create(URI.java:904) at org.apache.http.client.methods.HttpGet.(HttpGet.java:66) at com.QA.client.RestClient.get(RestClient.java:23) at com.qa.test.GetAPITest.testcase(GetAPITest.java:43) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133) at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598) at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173) at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46) at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824) at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at org.testng.TestRunner.privateRun(TestRunner.java:794) at org.testng.TestRunner.run(TestRunner.java:596) at org.testng.SuiteRunner.runTest(SuiteRunner.java:377) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:332) at org.testng.SuiteRunner.run(SuiteRunner.java:276) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1212) at org.testng.TestNG.runSuitesLocally(TestNG.java:1134) at org.testng.TestNG.runSuites(TestNG.java:1063) at org.testng.TestNG.run(TestNG.java:1031) at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77) can u please suggext what will the error?
@LearningTogetherWithAbhi
@LearningTogetherWithAbhi 7 жыл бұрын
Good Going. We will be waiting for more videos on REST Web-services Automation
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
Here u go : kzbin.info/www/bejne/oYebhn6GnZJ7eK8&
What is JSON? A Quick Overview!
28:14
Naveen AutomationLabs
Рет қаралды 69 М.
Automate Rest POST Call using HTTP Client - Rest API Automation - Part-5
57:20
Naveen AutomationLabs
Рет қаралды 75 М.
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 57 МЛН
Automate Rest GET Call using HTTP Client - Rest API Automation - Part-3
52:11
Naveen AutomationLabs
Рет қаралды 184 М.
Introduction of Restful API Design - WebServices Automation - Part-2
59:26
Naveen AutomationLabs
Рет қаралды 244 М.
What is API Gateway? || Naveen AutomationLabs
40:20
Naveen AutomationLabs
Рет қаралды 29 М.
Http Get And Post In C#
19:37
Nick Proud
Рет қаралды 96 М.
GIT Basics - My First Repo In GIT || PUSH & PULL In GIT
53:37
Naveen AutomationLabs
Рет қаралды 164 М.