Web services | REST | 07 | Automation | API Testing | GET Request | JAVA - HTTP URL CONNECTION Tamil
ฝัง
- เผยแพร่เมื่อ 15 เม.ย. 2019
- Testing the APIs manually is an important skill to master but automating the API testing is more important than that. In this video, we will see how to automate API testing.
We will learn,
1) What are all the ways to automate API testing using JAVA?
2) Types of third-party libraries like Apache HTTP client, Rest Assured, Google Http Client, Unirest and so on.
3) How to get the status code via java?
4) How to get the response message via Java?
5) fetching the response body.
Links Explained in the video:
dummy.restapiexample.com/
Follow me on Instagram: bit.ly/2Ez36rH
Facebook: bit.ly/2TqPlis
#APITesting #Automation #REST #LearnAutomationOnline
The way of your explanation is brilliant . More to go . All the very best.
More Helpful Arul bro. Please comeback!!!
thank u sir
Anna post man tool, response type we can select html/json/xml format. Java.net(HttpUrlConnection class) output response default format Json format ah?. Specified format la code molama retrieve panna mudiyuma Anna?
i'm getting this error when i'm execute morethan time. kindly help me sir.
the status code is: 429
Exception in thread "main" Response message: Too Many Requests
Why we use Buffered Reader here.. And will it append all the data from loop..where stringbuffer needs append function
Bro readline output ah direct ah print pannaley complete ah print aaguthu then y we go for loop concepts?
hi sir. Your Video was so nice. please share the details for PATCH request also and share that how to test these GET, PATCH, POST, DELETE in postman.
Refer the Playlist tab for postman tutorials. Patch is similar to put. If you have the API only you can test for patch.
Hi,Arul If i run the same script again and again in eclipse,i'm getting the below message:
Status Message is:Too Many Requests
first time i got a message : 200 OK. But next time i got it 429:Too many requests. Can i know the reason please.
It’s a demo api. There’s a limit they are setting for the number of requests to be allowed within a period.
what is the diff bt webdriverIO vs selnium ?
Doubt: I too got the output while doing the GET program. My doubt is how we get output without accessing postman? While I execute the program, my postman is seems idle, then how? Even if postman is NOT installed in my machine, still will I get the output?
there is no link between postman and ur javacode, postman u can do manually that's it. same we did without postman.
Hi Arul,
When I try this URI in my personal laptop, am able to get the response. But on my corporate network(private network), am getting error as "java.net.UnknownHostException: dummy.restapiexample.com".
I can understand am behind firewall and due to proxy am getting this issue. How to handle this. Do we need any configuration setup or any code to achieve this.
Note: am getting response when I hit the same URI in browser. Thanks in advance
U have to add this host to your host file entry. Then it will work.
Hai arulprasath...I am following all ur testing videos...gained good knowledge ...I am planning to apply for a job..have no experience...8years career gap...all companies expecting experienced tester..how to overcome this
Hi, you can learn manual testing and since u don't have experience u prefer certification like istqb and then u start applying.
3:15
bro can u share the related docs
to practice other comments in apis
Have given for Google http and rest assured. Unirest I have explained in detail in the next videos. Apache http client has so many examples online. In the below website also you can refer.
www.baeldung.com/google-http-client
www.baeldung.com/rest-assured-tutorial
Bro project support pannuveengala? Api
By project support may I know what you mean?
RestAssured third party library video creation link ,please share me
I haven't posted videos rest assured . It's very similar to unirest
You have created dummy apis on ur own in one of your videos. Can yu send that url
th-cam.com/video/4g2X7_Z9BE4/w-d-xo.html
Can you please source code used in this tutorial
Sorry I don't have them.